Jump to content

Geofencing to run a program only at night


TriLife
Go to solution Solved by Jimbo.Automates,

Recommended Posts

Posted

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
Posted

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

  • Like 1
  • Thanks 2
Posted
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
Guest
This topic is now closed to further replies.

×
×
  • Create New...