Author Topic: Weather Blues v2 - backlog  (Read 3308 times)

Offline CrasHBoneS

  • Jr. Member
  • **
  • Posts: 43
    • http://meteobellaria.altervista.org
Weather Blues v2 - backlog
« on: August 12, 2012, 09:12:56 AM »
In this post I will write all the modification to weather blues v2 template file

today_txt.php file

Before
</tr><tr class="td_data">
   <?php echo '<td>'.$Tr_press.'</td><td>'.$pressTH.' '.$pressunit.'</td><td>'.$TpressTH.'</td>'; ?>
</tr><tr class="td_data">
   <?php echo '<td>'.$Tr_press.'</td><td>'.$pressTL.' '.$pressunit.'</td><td>'.$TpressTL.'</td>'; ?>

After
</tr><tr class="td_data">
   <?php echo '<td>'.$Tr_pressTH.'</td><td>'.$pressTH.' '.$pressunit.'</td><td>'.$TpressTH.'</td>'; ?>
</tr><tr class="td_data">
   <?php echo '<td>'.$Tr_pressTL.'</td><td>'.$pressTL.' '.$pressunit.'</td><td>'.$TpressTL.'</td>'; ?>

Offline CrasHBoneS

  • Jr. Member
  • **
  • Posts: 43
    • http://meteobellaria.altervista.org
Re: Weather Blues v2 - backlog
« Reply #1 on: August 13, 2012, 07:57:30 AM »
thisyear_txt.php

Before

</tr><tr class="td_data">
   <?php echo '<td>'.$Tr_rmonth.'</td><td>'.$rmonth.' '.$rainunit.'</td><td>&nbsp;</td>'; ?>

After

</tr><tr class="td_data">
   <?php echo '<td>'.$Tr_ryear.'</td><td>'.$ryear.' '.$rainunit.'</td><td>&nbsp;</td>'; ?>
« Last Edit: August 13, 2012, 08:08:06 AM by CrasHBoneS »

Offline CrasHBoneS

  • Jr. Member
  • **
  • Posts: 43
    • http://meteobellaria.altervista.org
Re: Weather Blues v2 - backlog
« Reply #2 on: August 13, 2012, 08:10:22 AM »
records_txt.php

Does not appear the time the record has been recorded
There is a "F" after every webtag

Before
</tr><tr class="td_data">
   <?php echo '<td>'.$Tr_tempH.'</td><td>'.$tempH.' '.$tempunit.'</td><td>'.$TtempHF.'</td>'; ?>

After
</tr><tr class="td_data">
   <?php echo '<td>'.$Tr_tempH.'</td><td>'.$tempH.' '.$tempunit.'</td><td>'.$TtempH.'</td>'; ?>

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Weather Blues v2 - backlog
« Reply #3 on: August 13, 2012, 10:04:11 AM »
Hi Crash,

The F at the end of many timestamp is not an error, it is a "F"ormatted timestamp.
Some webtag timestamp have "at" in front of time, and/or "on" for date!

These "new" webtags are for standarize things and help translation needs as "at" and "on"
could be translated (replaced) to suit any needs.

At begining of wt_data_inc.php file, they're 2 variable to configure: pre_date and pre_time.

Regards,
Jacques
Please, consider supporting this site 

Offline joew

  • Jr. Member
  • **
  • Posts: 36
    • TigerDenWX
Re: Weather Blues v2 - backlog
« Reply #4 on: August 15, 2012, 12:12:33 AM »
On Monthly data window data wraps long lines causing data to exceed window and flows out of boundries.

thismonth_txt.php

Before
Line 11:  <col width="150" />

After
Line 11:  <col width="140" />

Offline CrasHBoneS

  • Jr. Member
  • **
  • Posts: 43
    • http://meteobellaria.altervista.org
Re: Weather Blues v2 - backlog
« Reply #5 on: August 15, 2012, 02:47:21 PM »
trends.php

at the bottom of the file are duplicated these lines

   <script type="text/javascript" src="lib/jquery-1.4.3.min.js"></script>
   <script type="text/javascript" src="lib/jquery.nivo.slider.pack.js"></script>

the page does not load trends images, deleting these 2 lines the page loads trends images


in the page weatherbyyou.com/demo/Weather_blues_v2/trends.php
the 2 line above are not duplicated at the bottom

Offline CrasHBoneS

  • Jr. Member
  • **
  • Posts: 43
    • http://meteobellaria.altervista.org
Re: Weather Blues v2 - backlog
« Reply #6 on: August 15, 2012, 04:12:06 PM »
gauges.php

Code: [Select]
<script language="JavaScript1.2" type="text/javascript">
 var mo = new Array("","","","");
 var tempunits = "<?php echo $tempunit?>";
 var tempos = new Array("<?php echo $RCtemp.'","'.$RCtempTL.'", "'.$RCtempTH.'", "'.$temptrendtext.'", "'.$temptrendenglish?>");
 var tempis = new Array("<?php echo $RCintemp?>","","","");
 var tempex1 = new Array("","","","");
 var tempex2 = new Array("","","","");
 var tempdp = new Array("<?php echo $RCdew?>","","","");
 var temphi = new Array("<?php echo $RCheatindex?>","","","");
 var tempwc = new Array("<?php echo $RCwchill?>","","","");
 var humos = new Array("<?php echo $RChum?>","","","");
 var humis = new Array("<?php echo $RCinhum?>","","","");
 var humex1 = new Array("","","","");
 var humex2 = new Array("","","","");
 var cloudbase = "<?php echo $cloudbase?>";
 var raintoday = new Array("<?php echo $RCrfall.'", "'.$rainunit.'", "'.$RCrrate.'", "'.$RCrrateTM?>");
 var winddata = new Array("<?php echo $RCwgust.'", "'.$bearing.'", "'.$RCwspeed.'", "'.$avgbearing.'", "'.$RCwgustTM.' '.$windunit.'", "'.$bearingTM.'&#38;#176; at '.$TwgustTM?>");
 var hwdir = new Array(<?php echo $wdirdata?>);
 var hwspd = new Array(<?php echo $wspddata?>);
 var wsu = "<?php echo $windunit?>";
 var bardata = new Array("<?php echo $RCpress.'", "'.$pressunit.'", "'.$presstrend.'", "'.$RCpressTH.'", "'.$RCpressTL.'", "'.$presstrendenglish?>");
 var TempColor = "";
 var HumColor = "";
 var RainColor = "";
 var WindAvgColor = "";
 var WindGustColor = "";
 var WindHistColor = "";
 var CloudTextColor = "";
 var AnalogBaroTextColor = "";
 var AnalogBaroNeedleColor = "";
 var ExtraSensor1Name = "";
 var ExtraSensor2Name = "";
</script>

weather blues template gauges.php does not read the value from wt_data_inc.php and so does not display correct value

Code: [Select]
<script type="text/javascript">
 var mo = new Array("","","","");
 var tempunits = "&deg;C";
 var tempos = new Array("0","999.0","-999.0","Steady","Steady");
 var tempis = new Array("0","","","");
 var tempex1 = new Array("","","","");
 var tempex2 = new Array("","","","");
 var tempdp = new Array("0","","","");
 var temphi = new Array("0.0","","","");
 var tempwc = new Array("0","","","");
 var humos = new Array("0","","","");
 var humis = new Array("00","","","");
 var humex1 = new Array("","","","");
 var humex2 = new Array("","","","");
 var cloudbase = "0 ft";
 var raintoday = new Array("0","mm","0","0.0");
 var winddata = new Array("0","0","0","0","0 km/h,0&#176; at 00:00");
 var hwdir = new Array(0);
 var hwspd = new Array(0,0);
 var wsu = "km/h";
 var bardata = new Array("0000","hPa","Steady","0.0","9999.0","Steady");
 var TempColor = "";
 var HumColor = "";
 var RainColor = "";
 var WindAvgColor = "";
 var WindGustColor = "";
 var WindHistColor = "";
 var CloudTextColor = "";
 var AnalogBaroTextColor = "";
 var AnalogBaroNeedleColor = "";
 var ExtraSensor1Name = "";
 var ExtraSensor2Name = "";
</script>

Offline CrasHBoneS

  • Jr. Member
  • **
  • Posts: 43
    • http://meteobellaria.altervista.org
Re: Weather Blues v2 - backlog
« Reply #7 on: August 17, 2012, 05:11:34 PM »
records_txt.php

Does not display the name which all time high monthly rain occured

Before:

</tr><tr class="td_data">
   <?php echo '<td>'.$Tr_rfallmH.'</td><td>'.$rfallmH.' '.$rainunit.'</td><td>'.$TrfallmHF.'</td>';
?>

After
</tr><tr class="td_data">
   <?php echo '<td>'.$Tr_rfallmH.'</td><td>'.$rfallmH.' '.$rainunit.'</td><td>'.$TrfallmH.'</td>'; ?>