Maybe I am missing something simple, everything seems ok on my iphone but nothing ever shows up on the HE side of things. Should Authentication be on or off?
Authentication isn't needed since it's using the oAUTH link from Hubitat.
Once you sent a location from the phone, did you open the HE OwnTracks app, and select that user under "Installation -> Select family member(s)". Once that is done, and "Done" is clicked, it will create a child device that will get updated on each location update from the phone.
thats the problem, the user never shows up.
Actually I might have a problem on the phone side but Im not sure what. I get an http 401 error. The only thing I changed in the app were setting it to http, entering a user name, putting in the token url, and toggling the authorize off and the cmd on?
Can you confirm the URL from teh mobile app installation is correct in the phone app?
It looks like this:
https://cloud.hubitat.com/api/***/apps/***/webhook?access_token=***
Yes I have double checked it several times. I copied it straight from the HE app to the owntracks app
So I deleted everthing on the HE side and started over, and now it seems to be working.
I spoke to soon, now I am getting an error 500. It was cycling rapidlly between idle and connected, but now it does neither.
I think it's on by default, but maybe check that Remote Configuration is enabled in the mobile app? If it was working at first that's likely not the issue...
Maybe post the logs from the mobile app, and what does the Status page in the app look like, are errors showing up there?
I assume you know this, but each time you re-install an app it gets a new ID which will change the "Host" URL. So if you uninstalled the app at any point and then reinstalled you'll need to make sure you get the new URL from the new instance of the app.
Why am I bringing this up just in case? Guess who forgot about this one time and didn't update the URL...
I reset everything again, and basically things look like they work at first, it connects and the user shows up in HE. But after I make any changes on the HE side and close the app then I start to get the error 500.
It does look like it connected to the app and chaged some of the settings, but did not add any regions in the app.
Also getting these errors in the HE logs
app:11982024-01-03 09:44:47.180 PMerrorjava.lang.IllegalArgumentException: The JSON input text should neither be null nor empty. on line 590 (method webhookEventHandler)
app:1198
Is that an iOS phone?
Correct, its an iphone 12 on the latest IOS
Can you look at the log on the phone side to see if it shows any errors?
This:
Is the app saying there was no incoming message in the data from the phone side. Next version will more gracefully handle that issue, but there is an issue on your phone side.
So far so good on Android 11. No issues at all. Once I get all of the regions set I'll install it on my brides iphone. Thanks @lpakula.
I do have a general question regarding owntracks though. Is there a way to change to imperial measurements instead of metric. I don't see an option for this.
Not currently. Let me work on adding it to the next version.
Thank you!
I hated to ask being the USA is about the only country not using the metric system.
Yup! I finished up the driver, just looking how painful it would be to do the app side (everything gets saved in metric since that's what the mobile side is expecting.)
I'm not against an "imperial" switch that only converts what is displayed in the state variables on the HE side. It's not difficult when setting up the mobile app using the metric system. That's all I was going to do for my personal use but didn't want to have to make the changes every time the driver is updated.
Because the metric system is obviously a communist or alien plot. Or maybe communist aliens!! Protect yourselves by only using inches!!
The US Imperial System, where not even a pint (16 oz) is a pint (~20 oz), and when it comes to beer, that is sacrilege!
Ahhh.. finally a post that makes sense. It's the only thing that can explain the madness in Canada where temperature and speed are metric, but the human body is measured in pounds and inches!
There will be a slider in the HE app that will toggle what the driver displays, as well as what you see in the app. You will be able to use imperial for the setup, changing region geofences, etc. The mobile app will remain metric though. Almost there!