I decided to correct the display of the polar day and night in the skin. In the weather service, upon the onset of a polar day, the value of the duration of daylight hours in minutes - durm - becomes 1440 and does not increase further. Apparently if the polar night is zero? I took measurements and got the problem. I can't use comparison with zero. At the first moment there is always zero
Code:
[mdurm]Measure=PluginPlugin=WebParserUrl=[mNow]RegExp="(?siU)#pole#"StringIndex=1StringIndex2=1;DynamicVariables=1[mdurmcalc]Measure=CalcFormula=[mdurm];Formula=1440DynamicVariables=1UpdateDivider=5IfCondition =mdurmcalc=0IfTrueAction = [!SetOption DaySunRise Text "Polar night"] [!HideMeter DayLength]IfCondition2 =mdurmcalc=1440IfTrueAction2 = [!SetOption DaySunRise Text "Polar day"] [!HideMeter DayLength]
Statistics: Posted by Kotofanchik — Today, 9:50 am