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

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
User avatar
ConligWX
Platinum Boarder
Platinum Boarder
Posts: 329
Joined: Wed Nov 14, 2018 12:48 pm
Location: Conlig, Co. Down, UK
Contact:

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

Post 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?
User avatar
ConligWX
Platinum Boarder
Platinum Boarder
Posts: 329
Joined: Wed Nov 14, 2018 12:48 pm
Location: Conlig, Co. Down, UK
Contact:

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

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