Replies: 3 comments 6 replies
|
Hi @ErikDB87 first, I have never used openHAB so this is a little guess work here. If both report to openHAB maybe have a look how the HomeAssistant integration works. There is propably a way to do this also in openHAB. https://www.dedicatedcode.com/projects/reitti///latest/integrations/home-assistant/ There it takes the latest known location, pack it into a json which is compatible with the owntracks format and send this periodically into reitti every x seconds. X should be something around 30 seconds. The only important part to know there is that the timestamp of a point is the identifier. So, this needs to change on every request. Let me know if this helped. If you figure it out we can add that also to the docs. |
|
Thanks for your answer, @dgraf-gh! From your link I deduced the necessary info for an HTTP Post request. And then I saw that this documention was already provided: https://www.dedicatedcode.com/projects/reitti/4.0/api/ingest/ I hadn't really looked at that page, as I assumed "Ingest" was an app or a data format, like OwnTracks or GPX. I now realize it's just a verb. 😄 From this documentation, I also deduce that the |
My suggestion for the docs would be to fold https://www.dedicatedcode.com/projects/reitti/4.0/api/ingest/ into https://www.dedicatedcode.com/projects/reitti/4.0/api/. Or to convert the latter to an overview page, listing the different sub-subjects. Now all the 'API' pages seem on the same level. (Of course it's on me to have investigated what 'ingest' just was...) Also, https://www.dedicatedcode.com/projects/reitti/4.0/api/ingest/ mentions About the openHAB angle: an integration like with Home Assistant wouldn't really fit with how openHAB is structured. I'll just make a 'rule', which sends a HTTP POST request based on values that get updated. |
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
I'm setting up Reitti for myself and my girlfriend, and I'm trying to figure out the cleanest way to feed it location data given a slightly non-standard setup.
My own phone (Android) runs OwnTracks and reports straight to my openHAB instance, so that would work out of the box with Reitti. But my girlfriend uses an iPhone, which smothers OwnTracks, so I added in geolocation from iCloud. In openHAB I then 'combine' both sources.
I'm able to create JSON's in whatever needed format, and make some HTTP request, but I haven't found documentation about how that would work with the API. I only read about 'importing' data, which seems to be different from 'getting live data'...
Could anyone help me out, and/or point me in the right direction?
Thanks in advance!
All reactions