if not eg.globals.sunIsUp:
print "Sun is down"
eg.StopMacro()
if eg.globals.sunIsUp:
print "Sun is up"
eg.StopMacro()
krambriw wrote:Dear Livin,
Thanks a lot for your kind words! I think your idea is very interesting and something extremely useful as well
Some first thoughts about interesting features
- during the day, capture weather conditions and create a weighted counter sum that will be used in calculation in frequency/length of the sprinkler intervals that will be started after sunset
- try to "look ahead" by using weather forecasts (makes no sense to start if the fore cast for tomorrow is rain)
- temperature measurement, to be used in determining the first start time for the first sprinkle (makes no sense to put out water on the grass if temp still is to high?)
- cost tariff support (if water is cheaper after a certain time?)
- individual zone support of the device with "shadow" compensation factor i.e. some zones might be more in shadow, thus requiring less watering
- etc
Kind regards, Walter
bSunStatus = eg.plugins.Suntracker.GetContentsOfVariable()
if bSunStatus:
print "Sun is up"
eg.StopMacro()
Users browsing this forum: No registered users and 0 guests