TriLife Posted June 2, 2023 Posted June 2, 2023 Greetings, I've started playing with Geofencing. Quite exciting. Tested it just turning on a light when I come home. That works well However, i need that light to turn only between sunset and sunrise the next day. So I wrote the program Geo-Light If time sunset-sunrise Then turn on light Wait 15mins Turn off light. And in GeoFence I call Geo-Light... Except Geo-Light runs whenever sunset comes around🙄 without waiting for me to drive close to home... Is there a better way then setting a Variable when geofencing is triggered and adding that test in the IF statement of the program? Cheers.
Solution Jimbo.Automates Posted June 2, 2023 Solution Posted June 2, 2023 Just disable the program so it can't run automatically.But personally I'd just have UDMobile set a variable and add that to your if conditions because you may want to know that for other programs as well.Sent from my Pixel 6 Pro using Tapatalk 1 2
TriLife Posted June 2, 2023 Author Posted June 2, 2023 1 hour ago, Jimbo.Automates said: Just disable the program so it can't run automatically. But personally I'd just have UDMobile set a variable and add that to your if conditions because you may want to know that for other programs as well. Sent from my Pixel 6 Pro using Tapatalk SOLVED! Thanks @Jimbo.Automates 1
Recommended Posts