Use Owntracks with Gladys 4!

Hello everyone!

I worked today on the integration Owntracks → Gladys 4, via Gladys Plus.

For those who don’t know Owntracks, it’s a great open-source app that allows you to track your geolocation and send it all to a server. In Gladys, it’s practical because it allows you to retrieve your personal geolocation and create scenarios based on it.

(Or just keep a history of your positions, personally, I’ve been tracking my geolocation for 3 years, it’s great to find out where you’ve been!)

I don’t know if you remember, but in Gladys 3, it was quite complex to configure Owntracks: you had to set up an MQTT broker open to the internet (while securing it), it wasn’t fun.

With the Open API of Gladys Plus, it is now turnkey, there’s nothing more to do :slight_smile:

I wrote a tutorial in the documentation:

To subscribe to Gladys Plus, it’s here: https://gladysassistant.com/fr/pricing/

Feel free to ask if you have any questions!

Practice this for home departure/return scenarios… some of my nuts are no longer detected… :confused:. I can’t wait for v4.

It looks really nice, but do we really have to go through Gladys Plus?
In other words, is there no other « turnkey » way to send your info to Gladys?

I’m not forcing you to do anything ^^ I provide a service to make it easy to set up, because it’s quite complex for a novice to set up the entire architecture with a public MQTT broker as was the case in v3. After all, if you have the skills to set all that up, you can always do it :slight_smile:

But yes, it will always be less turnkey to do it manually. Of course, the goal of Gladys Plus is to simplify the lives of users, that’s the purpose of the service ^^

Hmm :confused:,
so there’s no way to go through the future broker Gladys and a future integration of owntrack in Gladys directly :slight_smile: ?

The future broker Gladys?

Yes, absolutely, there is already an MQTT integration in Gladys 4, you just need to add a function to handle Owntracks messages :slight_smile: Of course, it will be less turnkey since you will need to deploy an online MQTT broker.

I prioritized the Gladys Plus integration because I had committed to this feature, and there are users who are interested! (Including me, I admit I really needed it ^^)

I was talking about this:
https://community.gladysassistant.com/t/mqtt-comment-fonctionne-le-module-mqtt/5000/13

I would see it at launch :slight_smile:

In any case, great work

I would have liked to test this, but for my part, I have some login issues and probably permission issues…

I still have v3 running at my place with the old gateway address: I’ve disconnected all that in Gladys.

I tried to log in via the form in v4, but it just hangs: no visible errors (I haven’t checked the logs) and back to the page with the two tables.

Same for me, I can’t log in to Gladys Plus.

Ok There must be a small bug in your case, could you check the browser logs so we can fix this? :slight_smile:

What exactly is your issue? Can’t you log in from Gladys? Or on plus.gladysassistant.com? Do you get an error message? Is your Gladys instance properly connected?

Hello,

A small suggestion in the Map view, now that we can locate ourselves via OwnTracks, would it be possible to zoom the map closer to us?

Good idea, we can indeed set a more zoomed level.
After that, we would need to set a zoom level that includes everyone on the map.

Example: If you are at home, and your wife is traveling in the south of France, it should be zoomed to the level of France, not just your city. To be seen if leaflet allows this easily.

Zoom in on Madame :rofl::joy:
The simplest solution seems to be to zoom in on the connected user. And if you want to see everyone, you manually zoom out.
What do you think?

That could be a first option!

Hi, actually both, whether it’s on my Gladys 4 interface or Gladys Plus. However, no issues with Gladys Gateway… Well, it tells me that I don’t have an instance on the gateway, but that’s normal.

Sorry, I just realized that this message wasn’t really appropriate here…

On the connected user, it’s not necessarily logical, you know where you are, right?

It’s just to zoom in a bit, so as not to have the whole world. But it might be more logical to center on your house. It all depends on what we want to see through this view in the long term.
What do you think is the most judicious?

You should tell me which lines you want.

Can we discuss this in another topic? :slight_smile: Tell me exactly the bugs you encounter, the error messages you have, and if you see any information in the browser console, I’ll take a look.

Thanks again for the feedback you provide, being alone in development, it’s hard to have all the cases that arise and I do my best to fix it as soon as possible :slight_smile: :folded_hands:

I sent you a direct message with some short videos.