Hi folks,
i would like to know if this is the right script for Leuven Template?
I have an issue regarding the record all time from my station and i thing it might not be the right script for it
<tr><td style="font-weight: bold; "><?php echo langtransstr('Rcrd since'); ?><br />
<sup> Jan 2014</sup></td>
<td style="border: 1px solid; border-radius:5px; border-color: #FF0000; background-color: #F3E5E5"><?php echo wsNumber($ws['myRecordDayMaxTemp']).$uomTemp;?><br/><?php echo $ws['maxtempyearfromdata'];?></td>
<td style="border: 1px solid; border-radius:5px; border-color: #0000FF; background-color: #D0E2FF"><?php echo wsNumber($ws['myRecordDayMinTemp']).$uomTemp;?><br/><?php echo $ws['mintempyearfromdata'];?></td>
</tr>
Thank you for helping me!
Steven
Good morning Steven,
It is fairly difficult to help if there is no link to your website. If i click the small gobe on the left of your post (beneath the avatar) it does not lead to your weather-website (
http://www.meteoinfostalphonse.ca/) but gives an "account suspended" message.
As I understand this and other posts at the WW forum yesterday correctly:
1. you want to add extra fields to your mainpage ?
2. you want those fields to appear in the "dashboard" (with the thermometer and so on)?
3. these fields are not in the standard set of fields as uploaded by testags for the Leuven-Template ?
4. these fields are static fields, so NOT changing evry few seconds such as wind-direction ?
To not further confuse between saratoga and leuven files, i will refer to the leuven testtags as
testags2 !
Solution for the current 2.6 release:
1. add those fields to testtags2.txt
$ws['wsUptime'] = '%windowsuptime%';
#$ws['myRecordDayMaxTemp'] = '%maxtempfortodayfromyourdata%';
#$ws['myRecordDayMinTemp'] = '%mintempfortodayfromyourdata%';
#$ws['tempMaxRecordTime'] = '%yearmaxtempfortodayfromyourdata%';
#$ws['tempMin RecordTime'] = '%yearmintempfortodayfromyourdata%';
# and so on adding all fields needed
2. Place the changed testtags2.txt in the C:\wdisplay\webfiles folder.
Be aware that it is a PHP file so a typo can result in total stop of the website. That is why I added a # as a first position at the added fields. They are handled as comments first.
3. When the new yuploaded testtags2.php at your site looks OK, remove the # in the testtags2.txt and
4. put it again in C:\wdisplay\webfiles
Now the real tricky part: you have to add code to the dashboard such as you posted above. An example of the results with such additional info can be seen at:
http://wxcalgary.com/weather2-6/index.phpAs this and your site are in Canada, the "normal" times are loaded from your EC forecast data, not available outside Canada.
There are numerous adapted dashboard scripts floating around. So if you see one your like, you should use the contact page and ask the site owner.
I atttached one of the different dashboard scripts which maybe is what you are looking for, the changed code is in between the "< ! -- today yesterday min max values -- >" comment marks.
1. Make a copy/backup of your current
wsAjaxDashboard.php2. Unzip and replace with this version.
Wim