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
Traccar and opengts integration: RulesFactory (geozone e-mail notification) doesn't work. #1131
Comments
Probably there is some API you need to call to send notifications, but because Traccar works with OpenGTS system through database only, there is no way to do it. You can try to ask on OpenGTS forums to explain how this feature works. |
http://sourceforge.net/p/opengts/discussion/579835/thread/e51238ef/ I posted it here, no reply. The problem is it's handled at the DCS server level, the "receiver" invokes the event rules when it detects that the position update moves in/out of a Geozone. With Traccar, we're bypassing the DCS server and hitting the DB server directly. Hypothetically, if traccar impersonated a tk102b and submitted it via TCP to opengts using tk102b instead of hitting the DB, it would work fine. I'm thinking the only way to actually do this reliably is for someone to code a stand alone module that just reads the Geozones out of the DB, and as a once a minute cronjob just sees what in its records has moved in/out of such a zone. Not very scalable I guess, but should work fine for a few hundred devices anyways. I'm open for any last ditch ideas and certainly appreciate all your input. However at this point, I think it's beyond my capabilities. |
Does OpenGTS support any HTTP-based protocol? |
There appears to be one called "gprmc". I know the formatting here is bad, so please see the top of page 36 here: http://opengts.sourceforge.net/OpenGTS_Config.pdf 9.1.2) Default "gprmc" Configuration: |
I don't like NMEA format. Ideally it should be something like OsmAnd protocol: |
I appreciate your assistance and reply. I have done some research and currently this is the only DCS that OpenGTS has that is HTTP-based and included in the open source version. |
Where can I find all DCS options available for OpenGTS? |
Section 8.1 here lists some (PDF page 30): Most TK102/TK103 tracking devices (using the common TK102/TK103 protocols). How about the Sanav GC-101 http protocol? Or does this have the same GPRMC problem? Format: There are plenty more, but they are not in the "free" version of opengts. Go figure. By far the most popular is TK102/TK103 (tk10x) These are likely well known, but I can send a protocol doc if needed. This is actually the coban protocol here, but it copies the xenun closely enough it works fine: There is also opendmtp. I don't know how much maintenance it's received in recent years, but its supported: In addition to the http one previously mentioned. Thank you! |
I have implemented HTTP forwarding. Now you can put something like this in the config file: <entry key='forward.enable'>true</entry> <entry key='forward.url'>http://example.com:8080/gprmc/Data?id={uniqueId}&code=0x0000&gprmc={gprmc}</entry> |
hi tananaev, sorry to bring this up again, i've tried adding this (changed only the domain though) to the traccar.xml file just in the server config section. but had no success.
Thank you :) |
Have you changed the URL to point to your OpenGTS server? |
yes, i have. |
So this is how it looks.
|
Have you tried to submit data to that URL manually and see if it works? |
hi, thanks for your response.
so the above is a url sent from GPS2OpenGTS android application. and it seems to work fine.. I cannot fathom how to add manual values to the url you have used. |
That's not a valid URL and also it doesn't match the configuration that you are using for Traccar. Can you please use proper formatting for stuff that you put in the comments. |
Hello Mr. Anton, i tested it and its working for geo-fence / geo-zone email notification,
But no success =/ |
<entry key='forward.enable'>true</entry> |
Sorry for my mistake, didnt saw it was closed :x |
If I update a device's location via traccar to GTS, the gui is perfectly fine but the e-mail notifications on a Geozone arrival/departure (geofencing e-mail notification) does not invoke nor work.
If I use a OpenGTS DCS server, for the same device, this notification works ok.
Is there any way to make Traccar perform whatever process the OpenGTS DCS does when it receives a message so these e-mails work? Or, does anybody know where to start looking to make this work?
The text was updated successfully, but these errors were encountered: