Author Topic: Today's Set Records for the Month  (Read 6901 times)

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Today's Set Records for the Month
« on: December 21, 2012, 04:39:23 PM »
Hi Jacques,

I'd like to add a portion to my [Today] page, showing IF todays weather has set a Monthly Record...??
Many people always ask themselves: "Was today the coldest, wettest, most windy day in December"...???  :)
A quick look at the today page can give them the answer...!!!

I've added the part at the bottom of the page, however I'm not sure which webtag to use??
I can't use 'Records' since this will only be aplicable for the entire time the station is online (since May 7, 2012).
So I need to use a webtag that is related to the Month High/Low etc.
Also, it his the correct way to implement the records (webtag) + indication light..?? It only shows a big red X.....
<tr class="td_data">               
<td><img src="images/led_vert1<#MonthTempH>.png" alt="O" title="indication"  /></td>
<td>Highest Temperature</td>
</tr>
 

Thanks,

Arthur

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Today's Set Records for the Month
« Reply #1 on: December 21, 2012, 06:15:13 PM »
Hi Arthur,

That is the problem with html template, you have to include all possible webtags
instead of having a "switching" method that watch many webtags!

In php, we can check all possible records:

if $HighTempRecordSet = '1';
if $LowTempRecordSet = '1;
if $HighTempRangeRecordSet = '1;
if $LowTempRangeRecordSet = '1';
if $HighAppTempRecordSet = '1';
if $LowAppTempRecordSet = '1';
if $HighHeatIndexRecordSet = '1';
if $LowWindChillRecordSet = '1';
if $HighDewPointRecordSet = '1';
if $LowDewPointRecordSet = '1';
if $HighMinTempRecordSet = '1';
if $LowMaxTempRecordSet = '1';
if $HighWindGustRecordSet = '1';
if $HighWindSpeedRecordSet = '1';
if $HighRainRateRecordSet = '1';
if $HighHourlyRainRecordSet = '1';
if $HighDailyRainRecordSet = '1';
if $HighMonthlyRainRecordSet = '1';
if $LongestDryPeriodRecordSet = '1';
if $LongestWetPeriodRecordSet = '1';
if $HighHumidityRecordSet = '1';
if $LowHumidityRecordSet = '1';
if $HighPressureRecordSet = '1';
if $LowPressureRecordSet = '1';
if $HighWindrunRecordSet = '1';

... but a problem... record stay 'on' until you see it on you Cumulus records screen!

Regards,
Jacques
Please, consider supporting this site 

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Today's Set Records for the Month
« Reply #2 on: December 21, 2012, 07:27:30 PM »
Hi Jacques,

Thanks for the reply.

What I don't understand is when a record is recorded today, it immediately shows in the 'this month' record page....

Things work fine with the 'Alarm' settings on my main page and Weather Console page.

No way to add a tag that displays till midnight when a record is set today??

Thanks,

Arthur