I am working on adding some additional detail to the daily NOAA reports, specifically trying to add heating and cooling days. So far I have been able to get the heating and cooling days on a per day basis using the following:
Code: Select all
#if#{*[th0temp-avg=F]<65*}#then#{*round( 65-[th0temp-avg=F])*00}#else#0#fi#
Code: Select all
#if#{*[th0temp-avg=F]>65*}#then#{*round([th0temp-avg=F]-65 )*00}#else#0#fi#
Code: Select all
#if#{*[th0temp-mavg=F.000001]>65.0*}#then#{*round([th0temp-mavg=F.000001]-65.0)*[DD]*00}#else#0#fi#
Code: Select all
#if#{*50.2>65*}#then#{*round(50.2-65 )*01*00}#else#0#fi#
When running this in my browser:
Code: Select all
http://ip-of-meteobrige/cgi-bin/template.cgi?template={*round(65-[th0temp-mavg=F])*[DD]*00}
Just curious if I am simply missing something or a possible bug might exist.
g