Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add sunset and sunrise variables... #1507
That's some well programmed PR :)
Mhhh... another idea for a solution on the long run.
Currently variables are implemented either as strings or floats. So on actions e.g. "Clock#Time=All,%sunset%" is usable, but not a comparation like "%sunset%>18:00".
If all time variables are internally handled as timestamps and with some macros for string conversation, there would be no further distinction between both cases needed...
In this way, the suggested offset could be added or subtracted in the script.