Webtags (preserving history): Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
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)
|}
|}
* Footnote: PHP code extract<code> $MoonAgeDays = <#MoonAge dp=0> +0;
<code>
* Footnote: PHP code extract:
$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);
5,838

edits

Navigation menu