Why do you have quotes in your URL? You should get rid of them.
If you decode your HEX, you will see what you are actually sending to the server:
GET /?id=0004A30B001A321C HTTP/1.1 User-Agent: Wget/1.16 (linux-gnueabihf) Accept: */* Host: localhost:5055 Connection: Keep-Alive
As you can see, it doesn't have any data except id.
Hello Anton,
thank you very much for your response.
strange!
I deleted the Device an added it new.
Pasteing this in firefox:http://172.30.1.166:5055/?id=0004A30B001A321C&lat=47.6011867&lon=11.4408763×tamp=2016-11-05%2016:55:21&hdop=3&altitude=747&speed=0
Hurray!
Everything is working as expected!
Going back to wget .... same error as before.
Trying Firefox again... no
Looking at the mySQl table positions:
... wget failed at id 50 !
... Firefox did a good job at id 51
Looking at the mySQl table devices:
... positionid Sticks to id 50 !
No chance to get an Update in Frontend.
"Last Update " Timevalue is incrementing but positionid does not.
So there are two errors.
First: I have to debug my wget on raspberry.
Second:traccar should increment positionid in devices-table if there is new valid data.
thank you very much for your support.
mateng
Got It !
Passing URL like this to wget did the job.wget "http://172.30.1.166:5055/?id=0004A30B001A321C&lat=47.6011867&lon=11.4408763×tamp=2016-11-05%2016:55:21&hdop=3&altitude=747&speed=0"
Look at the "
mateng
Nice, thanks for sharing the information.
Greetings.
Got the problem with posting geodata too.
I`m using curl to do POST request:
As a result I got the position of my device changed, but all parameters(like lat/lon, etc) is '0'.
What am I doing wrong?
The problem is exactly the same. Here is what you actually send:
POST /?id=104641 HTTP/1.1 Host: demo.traccar.org:5055 User-Agent: curl/7.47.0 Accept: */*
Got it! Thank you for quick answer.
Hello!
...this does not work for me :-(
I configured traccar on my RaspberryPi using the mysql option.
Everything seems fine but posting all data to the database.
I tried several formats like this:
or {value} and "value"
The serve-log says:
Here is an export from position table:
I have no clue what's going wrong.
mateng