Skip to content
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

How to pass on data to Traccar easily #35

Closed
simongregersen opened this issue Mar 29, 2013 · 6 comments
Closed

How to pass on data to Traccar easily #35

simongregersen opened this issue Mar 29, 2013 · 6 comments

Comments

@simongregersen
Copy link

Hello!

I'm currently developing a solution in Python receving tracking data via SMS. The program is then passing the tracking data on to Traccar for visualization and storage. Currently, I'm using a socket connection with port 5000 to pass on the information - it works most of the time. I'm having some trouble with this solution and my question is, if there's an easier way to send the tracking data to Traccar? The python program and the traccar server is running on the same Windows computer. Can you help me out?

Thank you for your time!

Best regards,
Simon

@lioralbaz
Copy link

I recommend you build your map program. All you need is Google map API to display location on the map.

@tananaev
Copy link
Member

You can use MySQL database (http://www.traccar.org/docs/mysql.jsp) and write data directly into database from your Python program.

@tananaev
Copy link
Member

lioralbaz, what are your arguments? and what are you even doing here if you are recommending people not to use Traccar.

@simongregersen
Copy link
Author

Thank you very much tananaev. Though, I got one problem left.

I just set up a solution with traccar using a MySQL-database and then the python program sends the tracking data to this database. Though, I've observed a problem. When I load up the position from the bottom "Archive"-field my data is shown correctly. When I press the name of my tracking device in the left column "Devices" the latest position-data isn't shown as the data I just send directly to the database with my Python program, though! This "latest position" is still the one I passed on to my traccar-server in the normal way and not the newest one even though the time is later than this one.

The "latest" shown position is: 2013-03-31 13:17:18 even though I send new tracking data 2013-03-31 13:46:00, which I'm able to find in the Archive.

Can you help me out? Thank you very much for your time!

@tananaev
Copy link
Member

You need to update 'devices' table, there is latest position id there.

@simongregersen
Copy link
Author

Oh yeaah, of course. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants