Detection entrée/sortie de zone géographique (lat/long)

Hello,

I’m following up on this post if it interests anyone, I had started on the subject Handle_Owntracks_MQTT_messages and I digressed :slight_smile:

So for the moment I’m at:

  • Updating the user’s position based on an MQTT Topic
  • Displaying the Zones that are in the database
  • Creating a zone in the « plan » view (only front-end)
  • Editing a zone in the plan view (only front-end)
  • Deleting a zone in the plan view (only front-end)

ToDo

  • Should create an « Owntracks » service in the UI explaining how the service works (With Gladys Plus/or with MQTT) (as requested in the ticket)
  • Impact the database with the area events (create, edit, delete)
  • Means to set a name, a color and a radius (in progress with a popup)
  • In the scenes, I can select a trigger “when user XX enters zone YY”
  • In the scenes, I can select a trigger “when user XX exits zone YY”

Technically:

  • Update of Leaflet to 1.7
  • Use of Leaflet-draw to manage the creation of markers&co

I have a branch here.

I’m not very comfortable with this, so it’s not a topic that’s moving fast. Let me know if it’s to be discarded or if someone wants to lend a hand or even take over the subject to move forward faster.