There are scripts that can emulate devices, but most of the time we test using unit tests.
So for emulating devices. What are you using for emulating tcp connection.
Check scripts in the "tools" folder in the repo.
You're a big help, Thanks!!
Oh, and hey. If you dont mind.
https://github.com/dt-ap/traccar-react
I built a prototype for a modern traccar web. It's using some very opiniated library though.
Do you have a demo somewhere?
No. Its easy actually if you have a running server.
Just clone it. Install the depedencies via npm. Yarn does not work (do not know why).
Copy the .env file, then rename it to .env.local. Fill the url and ws url (ex: http://working.server.com:8082/
).
For now, it's only able to login user and show tracked device position.
Hi dit,
I'm trying to get it setup but I'm having issues with CORS.
Do I have to make any changes to my tracking server?
If you want to add CORS headers, you need to add corresponding configuration parameters.
Thanks Anton I just had a quick search and found that config setting.
Is there any security implications of allowing this?
Hi karl.
There is an exploit (read it on the internet), if you allow CORS from all domain. But if you are only prototyping, you should not worry about that, for now.
Hi Traccar admins, thanks for working hard building this project!!
I've got couple of questions to you.
If I want to change something (Ex: data schema, codecs, or business process) then I need to run it on my local development.
So, how do you connect the GPS tracker to the local server when in development ?? Via local network??
And how do you test the many OBD devices?? Do you plug it in real cars?? Mocking it??
I really want to know, how traccar developers/maintainer, test their device and server logic when in development, especially if multiple developers works on it. Many Thanks!