5,838
edits
m (→The Web Tags for Cumulus: correction) |
|||
Line 2,328: | Line 2,328: | ||
|Returns 1 if the sun is shining, otherwise 0 (Solar sensor needed) | |Returns 1 if the sun is shining, otherwise 0 (Solar sensor needed) | ||
|} | |} | ||
*<code> | * Footnote: PHP code extract<code> $MoonAgeDays = <#MoonAge dp=0> +0; | ||
$moonDecimalPart = <#MoonAge dp=4> - $MoonAgeDays; | $moonDecimalPart = <#MoonAge dp=4> - $MoonAgeDays; | ||
$MoonAgeHours = round($moonDecimalPart * 24, 0); | $MoonAgeHours = round($moonDecimalPart * 24, 0); |
edits