Sunrise/sunset in LUA
Posted: Wednesday 09 March 2016 18:19
Can I detect Sunrise and Sunset in a LUA script? I realize it is easy in Blockly, but I can't figure it out in LUA.
I found timeofday['SunriseInMinutes'] and timeofday['SunsetInMinutes'], but how do I get the time of day in minutes to compare with?
I found timeofday['SunriseInMinutes'] and timeofday['SunsetInMinutes'], but how do I get the time of day in minutes to compare with?