New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
forward URL #1811
Comments
Yes, https://github.com/tananaev/traccar/blob/master/src/org/traccar/WebDataHandler.java#L99 |
You mentioned that "if device uses IMEI number as an id" ... do you mean there are devices where the ID is not IMEI? In that case when you add a new device, what is to be used for Identifier? That may depend on the device I guess but can you name any so that I can look it up to understand it better. Thanks |
For example most devices with TK103 protocol use 12-digit identifier instead of IMEI. |
oh alight, thanks :-) |
Btw does the |
It's a status code for OpenGTS. |
ok thanks. and the uniqueId will "either" be the IMEI or the 12-digit identifier depending upon the device type I guess |
Yes. Some other types of devices can use other identifiers as well. |
cool thanks 👍 |
So any suggestion for "transforming" the forward url? Or do you think it would be best if I call another page on the web server, then manipulate the URL the way I want and then post it to the online db using ajax? Or could there be a better way? Thanks |
Well, I guess you need to write some code either way. You can just modify Traccar to send in the format that you need. |
okay, so if I just need to change the forward url to send the parameters in a json string, either with IMEI or the Identifier (whichever is available), which part of the code do I modify? Thanks |
I already provided a link above. |
right thanks but I only want the forward url format to be changed rest remaining the same |
Is there something wrong with the link I provided? |
well not really. I'll figure that out. Thanks |
btw forward.url is executed by a GET or POST request? Thanks |
By default it's GET as far as I remember. |
I was wondering why the positions not coming through GET or POST methods. We had specified only the URL for the script, did not include the parameters! :| Helped by the question details by @m-menon @tananaev and the great devs at Traccar, it may help new users if you could add a note about the URL parameters in the document for "forward.url"
Thanks again for the wonderful project! |
Updated documentation with some more info, thanks. |
Awesome!!! |
Amazing support as always 👍 |
I have an online db into which data case be inserted using the following ajax call. Can I change the transform URL to do the same? Btw I also need the IMEI to be part of the position
How do I get the IMEI to also be a part of gprmc data. I believe the uniqueId is the IMEI? Can I just move the things in bracket in a different way so as to achieve the url format shown in ajax call?
Thanks for the excellent response time & support
M.M
The text was updated successfully, but these errors were encountered: