traccar do not start after changeing the traccar.xml

jos7 months ago

I dos any one know if this is the way to go:

<entry key='sms.http.url'>https://service.speakup.nl/msgbroker/?username=username&amp;password=password&amp;originator=0658726563</entry>
<entry key='sms.http.template'>
    recipients={phone}&amp;message={message}
</entry>
Anton Tananaev7 months ago

I don't know what the API is for your provider, but most likely this is incorrect.

jos7 months ago

The provider is expecting a url like this:

https://service.speakup.nl/msgbroker/?username=[username]&password=[password]&originator=[originator]&recipients=[recipients]&message=[message]

The username, password and originator is alwys the same so i can put this in the url.
the recipients is the 06 number of the gps tracker
message is the message i whant to send to the gps tracker.
so i whas thinking that sms.http.url can be the first part of the url
And in the sms template the rest of the fariable like phone number and message.
and in the

Anton Tananaev7 months ago

Then what you configured is obviously incorrect. We don't support this currently.

jos6 months ago

I have the sms api and it is working with a post.
SMS api: https://api.speakup.nl/msgbroker/docs
First i have to login then i get a bearer token and with that token i can send a sms.
What i se in de documention is that this way, first login and use the token to send sms messages not supported in the traccar.

Anton Tananaev6 months ago

Yes, but you can probably get a token manually first and then configure it in Traccar.

jos6 months ago

I did not test that but for safte reasons i think i always get a new token.
and the token will expire after x time

Anton Tananaev6 months ago

I don't see anything about the token expiration in their documentation.

jos6 months ago

every time i login i get en new code

Anton Tananaev6 months ago

And?

jos6 months ago

Is that no problem?
so i login one time take the token put it in traccar and if there is somthing not i always have to know, mebay it is the token.
Is that the best way to go??

Anton Tananaev6 months ago

The best in what way? If it works, then it work.

jos6 months ago

The best way is that the systems dos it for me way, becos the system knows when it is not working the system gets a error message if the token is not ok, or if the message is not send.
so way not let the system login an take the token put it in the right plase and sends the sms wait for the 200 OK and done
If i make a feature request will it be made?

Anton Tananaev6 months ago

It's unlikely that we will implement something like this.

jos6 months ago

Ok, so the way to go is login take the token put it in the xml file.
I will take e new trunk so the chanse that the token wil change is smalle.

Thank you