Day increase/decrease calculation

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
cphMichael
Junior Boarder
Junior Boarder
Posts: 36
Joined: Wed Oct 19, 2016 2:26 pm

Day increase/decrease calculation

Post by cphMichael »

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
Post Reply