Day increase/decrease calculation
Posted: Fri Aug 02, 2019 11:38 am
I would like to display how much the daylength has increased/decreased.
Something like this:
Sunrise 05:17, Sunset 21:15, Length 15:58 (-1:35)
In the wiki from "released August 17, 2017" I have found this example:
{*([mbsystem-daylengthmax=mins.0]-[mbsystem-daylength=mins.0])/60*0t}:{*([mbsystem-daylengthmax=mins.0]-[mbsystem-daylength=mins.0])%60*00t}
This returns the number of minutes the current day is shorter than the longest day of the year.
Can someone help me setup a string that works the whole year around?
Both when the days decreasing/increasing and insert/remove the minus sign (-1:35) / (1:35)
Regards
Michael
http://frederiksberg-vejret.dk
Something like this:
Sunrise 05:17, Sunset 21:15, Length 15:58 (-1:35)
In the wiki from "released August 17, 2017" I have found this example:
{*([mbsystem-daylengthmax=mins.0]-[mbsystem-daylength=mins.0])/60*0t}:{*([mbsystem-daylengthmax=mins.0]-[mbsystem-daylength=mins.0])%60*00t}
This returns the number of minutes the current day is shorter than the longest day of the year.
Can someone help me setup a string that works the whole year around?
Both when the days decreasing/increasing and insert/remove the minus sign (-1:35) / (1:35)
Regards
Michael
http://frederiksberg-vejret.dk