Yes, I will add the required flag in the next version.
This would require some kind of integration with the Google Maps APIs as the Automatic APIs do not provide this kind of information…
Looking at the Google WEB APis (as I do not want to be iOS or Android Specific), it does not look as this information is available either (ETA on a current trip).
I will dig further, but it does not look as no 2 is something I can implement easily. Let me know if you find
anything on your end.
Regards
P.S. Another issue is that SmartThings does not currently support websockets. Websockets are required to ping the actual vehicle location…
Have you looked at the Dash API? It appears websockets are not a requirement.
I have compared the two systems and much prefer that Dash can use a more capable, versatile, and cheaper OBDII device than the Automatic one (i.e. Scantool MX, LX). It seems the only thing the Automatic offers that the other scan tools don’t is 8 hours of trip memory should your phone not be connected.
LX is available at $50, will work with all other OBD2 software, including diagnostics, all PIDs, measurement, and code clearing. There really is no comparison between to the two devices when it comes to capabilities.
Webhooks
A webhook is a client application defined callback. In DASH, we let applications register a single url and we’ll POST events to this url in real-time. When these events are triggered, Dash will call your registered webhook url and deliver a Payload.
Just show me which APIs one needs to call to get the actual vehicle location…
I used webhooks with Automatic as well, and I get all the real time events from Automatic with lat, lon (see my posts above for the list of RT events).
However, I cannot get the real time vehicle location at a given time (if no events are generated at that time).
Hi @yvesracine. Unfortunately, I am not sure my presence worked… I don’t see any indication in the Activity log or device eventTripAddress attribute in the device.
I did a rule machine conditional test and it says it’s not present.
Also, I installed the real time app and I didn’t get a push notification when location:updated changed. This could be related to my first issue.
Hi @Mbhforum, the location:updated event is not triggered by Automatic (according to my tests).
If you have enabled the RT events processing at Automatic (as indicated in my email and at my readme), then
you should see the event “trip:completed”. This RT event would then update your eventTripEndAddress field
which I use in my code to update the presence sensor.
If you do not see any RT events in the recently tab, then it means that the RT events processing is probably not set properly.
Please PM your logs next time so I can see what’s going on at your location.