krambriw wrote:I understand, I think it is not too difficult, I'll look into it.
Best regards, Walter
krambriw wrote:- we shall base the calculation on civil twilight (dusk / dawn) ( Civil twilight starts/ends when the Sun's center is 6 degrees below the horizon) ?
krambriw wrote:- with a positive offset of 30 min, should lamps be turned on 30 mins after dusk?
- with a positive offset of 30 min, should lamps be turned off 30 mins before dawn?
Can you calculate all of the options
SunTracker would be the mechanism used to continue and/or stop a macro
if eg.plugins.Suntracker.BrightEnough(30, 'Astronomical Twilight'):
print "Still bright enough"
print "Time to turn on lights"
eg.plugins.Suntracker.BrightEnough(0, 'Civil Twilight', True)
eg.plugins.Suntracker.BrightEnough(0, 'Civil Twilight', False)
An option for True and for False with StopMacro is needed
different actions/events need to happen depending on if it is Light or Dark
krambriw wrote:An option for True and for False with StopMacro is needed
Why? I do not get it...
eg.plugins.Suntracker.InsideRange("", 0, 'Civil Dawn', 'Civil Dusk', True, False)
Users browsing this forum: No registered users and 1 guest