Page 1 of 1

Geofencing, but ....

Posted: Saturday 05 January 2019 15:37
by ajseesink
I tried to search the forum, but couldn't actually find the answer I'm looking for.

The thing I would like to do is using Geofencing actions. Yes, geofencing is working with the Pilot app I'm using and I know it can be used in the Domoticz App too. by the way, I'm using iOS.

What most of the apps do is using Google maps and draw a circle around your house. The Pilot app does it and for example my Tado app (heating) does the same. The drawback is, these apps won't let you draw a circle that goes beyond 3 Kilometers of your house.

For example I want to create an action like this: " If I'm more then 25 KM away from home, I want to enable <device A>"
Couldn't find any of such things. A calculation of how far I'm away from home and then start an action.

Thanks.
Andre Seesink

Re: Geofencing, but ....

Posted: Saturday 05 January 2019 22:33
by heggink
Hi Andre,

The key is that you use a plugin that gives you distance from your phone to your house. I need the same and did 2 things:
1) develop an icloud plugin that tracks individual phones and
2) adapt the life360 to do the same
I did both because I have both iPhones and droids in the house.

I can send you my life360 plugin and you can find my iCloud plugin in the python list.

Word of caution: the plugins create domoticz distance devices. By default, these are in cm which is rather awkward as the distance gets really big. By mistake (or design ) the distance devices report 100x off ie 40.000 cm is actually 40kms. I never changed it since too lazy to change ask the scripts i already built...

The distance is calculated using gps positions and the vincenty python library.

H

Verstuurd vanaf mijn SM-G955F met Tapatalk


Re: Geofencing, but ....

Posted: Sunday 06 January 2019 1:11
by waaren
ajseesink wrote: Saturday 05 January 2019 15:37 I want to create an action like this: " If I'm more then 25 KM away from home, I want to enable <device A>"
FTTT can activate a domoticz device if you leave or enter a certain area. Maybe that can help ?

Re: Geofencing, but ....

Posted: Monday 07 January 2019 14:57
by ajseesink
Thanks for your answer. I will check out the Python plugin first.

regards
Andre
heggink wrote: Saturday 05 January 2019 22:33 Hi Andre,

The key is that you use a plugin that gives you distance from your phone to your house. I need the same and did 2 things:
1) develop an icloud plugin that tracks individual phones and
2) adapt the life360 to do the same
I did both because I have both iPhones and droids in the house.

I can send you my life360 plugin and you can find my iCloud plugin in the python list.

Word of caution: the plugins create domoticz distance devices. By default, these are in cm which is rather awkward as the distance gets really big. By mistake (or design Image) the distance devices report 100x off ie 40.000 cm is actually 40kms. I never changed it since too lazy to change ask the scripts i already built...

The distance is calculated using gps positions and the vincenty python library.

H

Verstuurd vanaf mijn SM-G955F met Tapatalk

Re: Geofencing, but ....

Posted: Monday 07 January 2019 15:00
by ajseesink
Thanks for answering.
I'm not quite into the IFTTT for domoticz yet, will check this out.
Guess every mobile phone needs to have that installed. Just like every other solution that can possibly be used.

regards
Andre Seesink

waaren wrote: Sunday 06 January 2019 1:11
ajseesink wrote: Saturday 05 January 2019 15:37 I want to create an action like this: " If I'm more then 25 KM away from home, I want to enable <device A>"
FTTT can activate a domoticz device if you leave or enter a certain area. Maybe that can help ?

Re: Geofencing, but ....

Posted: Monday 07 January 2019 19:43
by Minglarn
heggink wrote:Hi Andre,

The key is that you use a plugin that gives you distance from your phone to your house. I need the same and did 2 things:
1) develop an icloud plugin that tracks individual phones and
2) adapt the life360 to do the same
I did both because I have both iPhones and droids in the house.

I can send you my life360 plugin and you can find my iCloud plugin in the python list.

Word of caution: the plugins create domoticz distance devices. By default, these are in cm which is rather awkward as the distance gets really big. By mistake (or design Image) the distance devices report 100x off ie 40.000 cm is actually 40kms. I never changed it since too lazy to change ask the scripts i already built...

The distance is calculated using gps positions and the vincenty python library.

H

Verstuurd vanaf mijn SM-G955F met Tapatalk
Interesting.
How does the script work?
Is it a php script?

If possible. Could you send me the script

Regards Minglarn.

Skickat från min SM-N950F via Tapatalk


Re: Geofencing, but ....

Posted: Monday 07 January 2019 19:56
by heggink
Both are python. One (icliud) is already listed on the wiki, the other is listed as well (life360) but I changed it to add a distance device. Which one are you looking for?

Verstuurd vanaf mijn SM-G955F met Tapatalk


Re: Geofencing, but ....

Posted: Monday 07 January 2019 20:42
by Minglarn
Life360.

Have the whole family ast Life360.

Skickat från min SM-N950F via Tapatalk


Re: Geofencing, but ....

Posted: Monday 07 January 2019 21:53
by heggink
Can you pm me with an email address? Will send you a zip op my plugin.

Verstuurd vanaf mijn SM-G955F met Tapatalk


Re: Geofencing, but ....

Posted: Monday 07 January 2019 23:08
by RobbiHo
Have a look at Locative-app for IOS.
It works with json. In the past I used it to turn on/off a switch when I was several meters (300+) from my home. For what I know you van make the range as big as you want.
Haven’t tried it since I closed all the ports on my router and started using a VPN.

Re: Geofencing, but ....

Posted: Monday 07 January 2019 23:17
by Siewert308SW
Assuming you all are talking about Apple products.
On Android the the Domoticz and Geofence for domoticz didn't work as aspected.
Those two report more often not then it does report.
So took the good old Tasker App and wrote a simple task for a radius of 200m.
It works like charm...

Re: Geofencing, but ....

Posted: Wednesday 09 January 2019 11:11
by havnegata
Siewert308SW wrote:Assuming you all are talking about Apple products.
On Android the the Domoticz and Geofence for domoticz didn't work as aspected.
Those two report more often not then it does report.
So took the good old Tasker App and wrote a simple task for a radius of 200m.
It works like charm...
Can you please share this taskImage

Re: Geofencing, but ....

Posted: Wednesday 09 January 2019 17:56
by Siewert308SW
havnegata wrote: Wednesday 09 January 2019 11:11
Siewert308SW wrote:Assuming you all are talking about Apple products.
On Android the the Domoticz and Geofence for domoticz didn't work as aspected.
Those two report more often not then it does report.
So took the good old Tasker App and wrote a simple task for a radius of 200m.
It works like charm...
Can you please share this taskImage
For sure:
Be aware is use VPN so my ip is my local network IP as i'm always connected true VPN to my home network.
Thuis___DomoFence_On_Off.prf.xml
(1.43 KiB) Downloaded 247 times

Re: Geofencing, but ....

Posted: Friday 11 January 2019 22:37
by havnegata
Great, thanks!

Re: Geofencing, but ....

Posted: Thursday 04 June 2020 17:21
by Sicco
Siewert308SW wrote: Wednesday 09 January 2019 17:56
havnegata wrote: Wednesday 09 January 2019 11:11
Siewert308SW wrote:Assuming you all are talking about Apple products.
On Android the the Domoticz and Geofence for domoticz didn't work as aspected.
Those two report more often not then it does report.
So took the good old Tasker App and wrote a simple task for a radius of 200m.
It works like charm...
Can you please share this taskImage
For sure:
Be aware is use VPN so my ip is my local network IP as i'm always connected true VPN to my home network.
Thuis___DomoFence_On_Off.prf.xml
Hi Siewert,
Can you help me how to implement geofence in Tasker more in detail?
Thanks Sicco