Jump to content

Geofencing to run a program only at night


TriLife
Go to solution Solved by Jimbo.Automates,

Recommended Posts

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.

Link to comment
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

  • Like 1
Link to comment
Guest
This topic is now closed to further replies.

×
×
  • Create New...