Owntracks integration - Phonetrack client 404 error

Hi everyone,

I’ve been using Nextcloud Maps to log my locations for a while. I also wanted to use the Owntrack integration in Gladys, but with my client which is « PhoneTrack », supposedly compatible.

I followed the tutorial, generated the API key and configured the client, but I get a 404 response from the Gladys Plus server.

Does anyone else here also use this client? Otherwise @pierre-gilles, would you have any logs to share to help understand what’s being rejected on the server side (if you have the time)?

Thanks :slight_smile:

I’m following up on the question: without Gladys Plus, is it impossible to do forwarding in Gladys? To send location information?

Hi @lmilcent :slight_smile:

Back on the community from what I can see :smiley: I hope your move went well!

Did you follow this tutorial?

If you get a 404, 2 options:

  • Either your instance is not connected to Gladys Plus
  • Or you made a mistake in the URL and you get a 404

Why not use Owntracks?

[quote="Prof_T

1 Like

I had never really left, just been a bit less active… and with a 6-hour time difference!
Anyway, you must be used to that :wink:
The move went well, I’m quite surprised I’m struggling so much to find Zigbee smart plug models in the US form factor. There are quite a few Wi‑Fi models, but relatively few Zigbee ones compared to what I could find in Europe.

Yes @pierre-gilles, I did follow the tutorial :wink:
My instance is indeed on Gladys Plus, I had to generate the API from the interface anyway. I’ll check the link or redo the procedure to verify.

I tested it some time ago, but the app wasn’t very actively developed anymore and it used quite a bit of battery.
PhoneTrack allowed me to log my positions better without using too much battery.
I’ll try with PhoneTrack and see if I can get something working before considering switching again.

I found the solution. I had to send a request in « POST » and « JSON » mode.
It’s working :slight_smile:

1 Like

That’s the main reason I stopped using it. Could you give us some feedback after you’ve used it for a while? I’m really interested :innocent:

1 Like

I’ve been using PhoneTrack for a few months, maybe even a year or more

1 Like

@pierre-gilles, I just realized an improvement to make related to this topic.

When a user is not an administrator, they cannot generate an OpenAPI token and therefore configure their positions with Owntrack or phonetrack.
My profile is an admin, but I cannot generate a token for a particular user.

Workaround: change the other profile to admin, generate the API token, then change it back to a regular user (I’m trying it now).

I just tested the solution :

  1. Louis grants admin rights to « simpleUser »
  2. simpleUser logs in to Gladys Assistant and generates an API key
  3. Louis removes admin rights from « simpleUser »
  4. simpleUser retains access rights to the page (was not logged out in the meantime). He can still navigate the admin area, see the backups, etc. Even after refreshing the page.

Is this expected behavior @pierre-gilles ? For my part (professional bias?) I see this as a security flaw, although limited to particular cases.

Not a bad idea, that’s something that could indeed be improved!

I created a GitHub issue:

Indeed, that’s not normal, I’ll investigate :slight_smile:

1 Like