Page 1 of 1

[mbsystem-isnight] and [mbsystem-isday] **solved**

Posted: Sun Dec 30, 2018 4:19 am
by ConligWX
Hi there.

MeteoBridge Nano SD running SW Version: Meteobridge 3.8 (Dec 27 2018, build 1830), FW 1.3

when using these two values in a template and processing the they report with a decimal point.

1.0 or 0.0

Documentation on the wiki say it should be 1 or 0
isday: returns "1" when there is daylight, otherwise "0" (civil sunrise/sunset is used as reference).
isnight: returns "0" when there is daylight, otherwise "1" (civil sunrise/sunset is used as reference).
am I doing something wrong or is this a bug?

Re: [mbsystem-isnight] and [mbsystem-isday]

Posted: Mon Dec 31, 2018 1:43 pm
by ConligWX
OK I have found a way of getting this working the correct way i need it too:

mbsystem-isday.0 = 1 or 0
mbsystem-isnight.0 = 0 or 1

How do we get the Wiki page updated to say:

Code: Select all

isday: returns "1.0" when there is daylight, otherwise "0.0" (civil sunrise/sunset is used as reference).
isnight: returns "0.0" when there is daylight, otherwise "1.0" (civil sunrise/sunset is used as reference).