Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

SOLVED: Issue with humidity units on records page

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
User avatar
Freezeville
Posts: 22
Joined: Sun 06 Apr 2014 3:14 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 7 Professional
Location: Maine, USA
Contact:

SOLVED: Issue with humidity units on records page

Post by Freezeville »

I just now noticed this. I'm using the latest version of Cumulus with my Davis VP2 and I just noticed that on the All Time Records page the humidity is being shown as degrees F rather than percent. It's that way on all of the Month pages in the All Time Records page also. On all of the other pages it's percent as it should be. Only on the All Time Records pages is it incorrect. I'm thinking it's a Cumulus issue, but in case it's not, I'm using the Weather Eden template. I don't recall ever seeing this before and I think I would have noticed it by now, running the same setup since June 2013. I did recently update to the newest Cumulus version. The page on my site where this can be seen is at http://home.myfairpoint.net/~jody2011/multirecords.php#

Thanks, and Cumulus is the best!
Last edited by Freezeville on Wed 10 Dec 2014 8:40 pm, edited 1 time in total.
water01
Posts: 3246
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: This is for Steve: Issue with humidity units on records

Post by water01 »

This has nothing to do with Cumulus it is a fault in the multirecords.php# code as can be seen here

Code: Select all

	<tr class="td_data">
		<td>Highest Humidity</td>
		<td class="right_align"><span id="HumH">98</span> &deg;F</td>
		<td id="HumHT">at 5h20 on 29 June 2013</td>
	</tr>
	<tr class="td_data">
		<td>Lowest Humidity</td>
		<td class="right_align"><span id="HumL">13</span> &deg;F</td>
		<td id="HumLT">at 14h05 on 6 March 2014</td>
	</tr>
You need to change the

Code: Select all

&deg;F
to %
Last edited by water01 on Mon 08 Dec 2014 8:29 am, edited 1 time in total.
David
Image
User avatar
Freezeville
Posts: 22
Joined: Sun 06 Apr 2014 3:14 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 7 Professional
Location: Maine, USA
Contact:

Re: This is for Steve: Issue with humidity units on records

Post by Freezeville »

Oh if it were that easy... I know nothing about php coding, or HTML for that matter, but I can tell you that there is no file anywhere in my Cumulus folder with either of the following strings:
<td class="right_align"><span id="HumL">13</span> &deg;F</td>
<td class="right_align"><span id="HumH">98</span> &deg;F</td>

because after searching arduously for it myself using the Notepad2 search function (Ctrl-F), I let Windows search for that string in every file in the Cumulus folder and it does not exist. So I'm not sure what to do next. Perhaps I will post in the Weather Eden forum.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: This is for Steve: Issue with humidity units on records

Post by beteljuice »

every file in the Cumulus folder and it does not exist.
Of course not ...
You are using WeatherByYou templates - NOT Cumulus out-of-the-box.

There are NO 'standard' Cumulus templates in .php ;)
Image
......................Imagine, what you will KNOW tomorrow !
duke

Re: This is for Steve: Issue with humidity units on records

Post by duke »

And in the post above, David told you which php file to look in.
multirecords.php
You need to edit it locally with a suitable editor and then upload to your website.
User avatar
Freezeville
Posts: 22
Joined: Sun 06 Apr 2014 3:14 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 7 Professional
Location: Maine, USA
Contact:

Re: This is for Steve: Issue with humidity units on records

Post by Freezeville »

beteljuice wrote:
every file in the Cumulus folder and it does not exist.
Of course not ...
You are using WeatherByYou templates - NOT Cumulus out-of-the-box.

There are NO 'standard' Cumulus templates in .php ;)
And well I know this, however, my Weather Eden template folder is within my Cumulus folder and when you direct Windows Search to search for a string in a file, it also includes every file in all of the subfolders... Therefore, all of my WeatherByYou Weather Eden files, as well as every file on that PC that has anything to do with my weather setup, was searched for not only that string, but I also did several searches on smaller parts of that string, in hopes of finding something, but I got nothing. I just now searched that file again (multirecords.php) using the search function in notepad2 (an html and php editor) and also found nothing even remotely similar to that string. Then I manually looked through the file (using just my eyes) and still I find nothing even remotely resembling that string.
User avatar
Freezeville
Posts: 22
Joined: Sun 06 Apr 2014 3:14 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 7 Professional
Location: Maine, USA
Contact:

Re: This is for Steve: Issue with humidity units on records

Post by Freezeville »

duke wrote:And in the post above, David told you which php file to look in.
multirecords.php
You need to edit it locally with a suitable editor and then upload to your website.
And, as I just told beteljuice, if I could find anything remotely like that string in that (or any other) file, I would do just that. I do know that much and I know how to do it. I simply cannot find the string in the file, nor anything that seems to relate in any way to any temp or humidity values anywhere in that file. Perhaps the file gets those from some other file and that's where the trouble is?
User avatar
Freezeville
Posts: 22
Joined: Sun 06 Apr 2014 3:14 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 7 Professional
Location: Maine, USA
Contact:

Re: This is for Steve: Issue with humidity units on records

Post by Freezeville »

Looking in the source of the web page, I can easily find that string, but it does not occur in any of the files on the PC before being processed by Cumulus, so I must assume that it gets "assembled" from more than one file during processing. Therefore I do not know where to look or what to look for, since neither the string nor any part of it is in the original files. I just downloaded a fresh copy of the Weather Eden installation zip file from the site and replaced all of my php files from it and the error is still there.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: This is for Steve: Issue with humidity units on records

Post by beteljuice »

I don't know how Jacques builds his templates, but it will be a variable substitution of some sort in the php file.
This is probably directly by php, or possibly later by javascript.

very roughly: <td class="right_align"><span id="HumL">$HumL</span> $tempunit</td>

Do a search for "HumL" to put you in the right area, then overwrite the incorrect variable with %
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
Freezeville
Posts: 22
Joined: Sun 06 Apr 2014 3:14 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 7 Professional
Location: Maine, USA
Contact:

Re: This is for Steve: Issue with humidity units on records

Post by Freezeville »

beteljuice wrote:I don't know how Jacques builds his templates, but it will be a variable substitution of some sort in the php file.
This is probably directly by php, or possibly later by javascript.

very roughly: <td class="right_align"><span id="HumL">$HumL</span> $tempunit</td>

Do a search for "HumL" to put you in the right area, then overwrite the incorrect variable with %
I did that just now and although strings with "HumL" are there, there's no obvious way to see how it's being done within those strings, not to me anyway. He does use "tempunit" as his substitution, but for humidity values, well there's a % sign in there but it's in an Echo statement and I think that just writes something directly onto the web page. I see no % sign anywhere else, nor anything that looks like a substitution for the variable. Maybe he's just writing "%" directly to the web page and there's some error somewhere. I also don't see anything that looks incorrect; the "%" signs are within Echo statements that also mention humidity, so Idk. Although I don't get into web coding, I do have a vague idea of what things are when looking at source code. Very vague however :) I'm gonna get someone from that forum to take a look at this thread and see if someone can possibly help me, but if anyone on this one has any ideas, I'm still looking.

Thanks.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: This is for Steve: Issue with humidity units on records

Post by beteljuice »

You could post the template php code for that section rather than the o/p ;)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
Freezeville
Posts: 22
Joined: Sun 06 Apr 2014 3:14 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 7 Professional
Location: Maine, USA
Contact:

Re: This is for Steve: Issue with humidity units on records

Post by Freezeville »

beteljuice wrote:You could post the template php code for that section rather than the o/p ;)
OK, I'm posting it below. I did post to the WeatherByYou forum and asked Jacques or anyone to look at this thread. So here is the multirecords.php code:

<?php
$tpl_version = "1.2";
if (isset($_GET['ver'])) {
echo $tpl_version;
exit;
// Date: 2013-11-19
}
session_start(); // start PHP session
// Check if a language has been selected
if (isset($_POST['langue'])) {
$lang = $_POST['langue'];
$_SESSION['langue'] = $lang; // store session data
}
elseif(isset($_SESSION['langue'])){
$lang = $_SESSION['langue']; // Default language
}
else {
$lang = 'en'; // Default language
$_SESSION['langue'] = $lang;
}
// Include text and data file
require('lang/text_standard_en.php'); // Fall-back language: English
require('lang/text_standard_'.$lang.'.php');
include('include/local_lang.php');
include('wt_data_inc.php');
include('wt_months_inc.php');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
<meta name="description" content="Weather Eden - Complete Weather website template for Cumulus software!" />
<meta name="keywords" content="Cumulus, Catalan, French, English, Spanish, German" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="author" content="weatherbyyou.com" />
<title><?php echo $location.' - '.$TT_year; ?></title>
<link type='text/css' rel='stylesheet' href='eden.css' />
<script type="text/javascript">
var monts_title = new Array("Records for the month of January","Records for the month of February","Records for the month of March","Records for the month of April","Records for the month May","Records for the month June","Records for the month July","Records for the month August","Records for the month September","Records for the month October","Records for the month November","Records for the month December", "<?php echo $TT_records; ?>");
var hightemp = new Array(<?php echo '"'.$ByMonth01TempH.'","'.$ByMonth02TempH.'","'.$ByMonth03TempH.'","'.$ByMonth04TempH.'","'.$ByMonth05TempH.'","'.$ByMonth06TempH.'","'.$ByMonth07TempH.'","'.$ByMonth08TempH.'","'.$ByMonth09TempH.'","'.$ByMonth10TempH.'","'.$ByMonth11TempH.'","'.$ByMonth12TempH.'","'.$tempH.'"'; ?>);
var hightempT = new Array(<?php echo '"'.$ByMonth01TempHTF.'","'.$ByMonth02TempHTF.'","'.$ByMonth03TempHTF.'","'.$ByMonth04TempHTF.'","'.$ByMonth05TempHTF.'","'.$ByMonth06TempHTF.'","'.$ByMonth07TempHTF.'","'.$ByMonth08TempHTF.'","'.$ByMonth09TempHTF.'","'.$ByMonth10TempHTF.'","'.$ByMonth11TempHTF.'","'.$ByMonth12TempHTF.'","'.$TtempHF.'"'; ?>);
var lowtemp = new Array(<?php echo '"'.$ByMonth01TempL.'","'.$ByMonth02TempL.'","'.$ByMonth03TempL.'","'.$ByMonth04TempL.'","'.$ByMonth05TempL.'","'.$ByMonth06TempL.'","'.$ByMonth07TempL.'","'.$ByMonth08TempL.'","'.$ByMonth09TempL.'","'.$ByMonth10TempL.'","'.$ByMonth11TempL.'","'.$ByMonth12TempL.'","'.$tempL.'"'; ?>);
var lowtempT = new Array(<?php echo '"'.$ByMonth01TempLTF.'","'.$ByMonth02TempLTF.'","'.$ByMonth03TempLTF.'","'.$ByMonth04TempLTF.'","'.$ByMonth05TempLTF.'","'.$ByMonth06TempLTF.'","'.$ByMonth07TempLTF.'","'.$ByMonth08TempLTF.'","'.$ByMonth09TempLTF.'","'.$ByMonth10TempLTF.'","'.$ByMonth11TempLTF.'","'.$ByMonth12TempLTF.'","'.$TtempLF.'"'; ?>);
var highDP = new Array(<?php echo '"'.$ByMonth01DewPointH.'","'.$ByMonth02DewPointH.'","'.$ByMonth03DewPointH.'","'.$ByMonth04DewPointH.'","'.$ByMonth05DewPointH.'","'.$ByMonth06DewPointH.'","'.$ByMonth07DewPointH.'","'.$ByMonth08DewPointH.'","'.$ByMonth09DewPointH.'","'.$ByMonth10DewPointH.'","'.$ByMonth11DewPointH.'","'.$ByMonth12DewPointH.'","'.$dewpointH.'"'; ?>);
var highDPT = new Array(<?php echo '"'.$ByMonth01DewPointHTF.'","'.$ByMonth02DewPointHTF.'","'.$ByMonth03DewPointHTF.'","'.$ByMonth04DewPointHTF.'","'.$ByMonth05DewPointHTF.'","'.$ByMonth06DewPointHTF.'","'.$ByMonth07DewPointHTF.'","'.$ByMonth08DewPointHTF.'","'.$ByMonth09DewPointHTF.'","'.$ByMonth10DewPointHTF.'","'.$ByMonth11DewPointHTF.'","'.$ByMonth12DewPointHTF.'","'.$TdewpointHF.'"'; ?>);
var lowDP = new Array(<?php echo '"'.$ByMonth01DewPointL.'","'.$ByMonth02DewPointL.'","'.$ByMonth03DewPointL.'","'.$ByMonth04DewPointL.'","'.$ByMonth05DewPointL.'","'.$ByMonth06DewPointL.'","'.$ByMonth07DewPointL.'","'.$ByMonth08DewPointL.'","'.$ByMonth09DewPointL.'","'.$ByMonth10DewPointL.'","'.$ByMonth11DewPointL.'","'.$ByMonth12DewPointL.'","'.$dewpointL.'"'; ?>);
var lowDPT = new Array(<?php echo '"'.$ByMonth01DewPointLTF.'","'.$ByMonth02DewPointLTF.'","'.$ByMonth03DewPointLTF.'","'.$ByMonth04DewPointLTF.'","'.$ByMonth05DewPointLTF.'","'.$ByMonth06DewPointLTF.'","'.$ByMonth07DewPointLTF.'","'.$ByMonth08DewPointLTF.'","'.$ByMonth09DewPointLTF.'","'.$ByMonth10DewPointLTF.'","'.$ByMonth11DewPointLTF.'","'.$ByMonth12DewPointLTF.'","'.$TdewpointLF.'"'; ?>);
var highapptemp = new Array(<?php echo '"'.$ByMonth01AppTempH.'","'.$ByMonth02AppTempH.'","'.$ByMonth03AppTempH.'","'.$ByMonth04AppTempH.'","'.$ByMonth05AppTempH.'","'.$ByMonth06AppTempH.'","'.$ByMonth07AppTempH.'","'.$ByMonth08AppTempH.'","'.$ByMonth09AppTempH.'","'.$ByMonth10AppTempH.'","'.$ByMonth11AppTempH.'","'.$ByMonth12AppTempH.'","'.$apptempH.'"'; ?>);
var highapptempT = new Array(<?php echo '"'.$ByMonth01AppTempHTF.'","'.$ByMonth02AppTempHTF.'","'.$ByMonth03AppTempHTF.'","'.$ByMonth04AppTempHTF.'","'.$ByMonth05AppTempHTF.'","'.$ByMonth06AppTempHTF.'","'.$ByMonth07AppTempHTF.'","'.$ByMonth08AppTempHTF.'","'.$ByMonth09AppTempHTF.'","'.$ByMonth10AppTempHTF.'","'.$ByMonth11AppTempHTF.'","'.$ByMonth12AppTempHTF.'","'.$TapptempHF.'"'; ?>);
var lowapptemp = new Array(<?php echo '"'.$ByMonth01AppTempL.'","'.$ByMonth02AppTempL.'","'.$ByMonth03AppTempL.'","'.$ByMonth04AppTempL.'","'.$ByMonth05AppTempL.'","'.$ByMonth06AppTempL.'","'.$ByMonth07AppTempL.'","'.$ByMonth08AppTempL.'","'.$ByMonth09AppTempL.'","'.$ByMonth10AppTempL.'","'.$ByMonth11AppTempL.'","'.$ByMonth12AppTempL.'","'.$apptempL.'"'; ?>);
var lowapptempT = new Array(<?php echo '"'.$ByMonth01AppTempLTF.'","'.$ByMonth02AppTempLTF.'","'.$ByMonth03AppTempLTF.'","'.$ByMonth04AppTempLTF.'","'.$ByMonth05AppTempLTF.'","'.$ByMonth06AppTempLTF.'","'.$ByMonth07AppTempLTF.'","'.$ByMonth08AppTempLTF.'","'.$ByMonth09AppTempLTF.'","'.$ByMonth10AppTempLTF.'","'.$ByMonth11AppTempLTF.'","'.$ByMonth12AppTempLTF.'","'.$TapptempLF.'"'; ?>);
var lowchill = new Array(<?php echo '"'.$ByMonth01WChillL.'","'.$ByMonth02WChillL.'","'.$ByMonth03WChillL.'","'.$ByMonth04WChillL.'","'.$ByMonth05WChillL.'","'.$ByMonth06WChillL.'","'.$ByMonth07WChillL.'","'.$ByMonth08WChillL.'","'.$ByMonth09WChillL.'","'.$ByMonth10WChillL.'","'.$ByMonth11WChillL.'","'.$ByMonth12WChillL.'","'.$wchillH.'"'; ?>);
var lowchillT = new Array(<?php echo '"'.$ByMonth01WChillLTF.'","'.$ByMonth02WChillLTF.'","'.$ByMonth03WChillLTF.'","'.$ByMonth04WChillLTF.'","'.$ByMonth05WChillLTF.'","'.$ByMonth06WChillLTF.'","'.$ByMonth07WChillLTF.'","'.$ByMonth08WChillLTF.'","'.$ByMonth09WChillLTF.'","'.$ByMonth10WChillLTF.'","'.$ByMonth11WChillLTF.'","'.$ByMonth12WChillLTF.'","'.$TwchillHF.'"'; ?>);
var highheatindex = new Array(<?php echo '"'.$ByMonth01HeatIndexH.'","'.$ByMonth02HeatIndexH.'","'.$ByMonth03HeatIndexH.'","'.$ByMonth04HeatIndexH.'","'.$ByMonth05HeatIndexH.'","'.$ByMonth06HeatIndexH.'","'.$ByMonth07HeatIndexH.'","'.$ByMonth08HeatIndexH.'","'.$ByMonth09HeatIndexH.'","'.$ByMonth10HeatIndexH.'","'.$ByMonth11HeatIndexH.'","'.$ByMonth12HeatIndexH.'","'.$heatindexH.'"'; ?>);
var highheatindexT = new Array(<?php echo '"'.$ByMonth01HeatIndexHTF.'","'.$ByMonth02HeatIndexHTF.'","'.$ByMonth03HeatIndexHTF.'","'.$ByMonth04HeatIndexHTF.'","'.$ByMonth05HeatIndexHTF.'","'.$ByMonth06HeatIndexHTF.'","'.$ByMonth07HeatIndexHTF.'","'.$ByMonth08HeatIndexHTF.'","'.$ByMonth09HeatIndexHTF.'","'.$ByMonth10HeatIndexHTF.'","'.$ByMonth11HeatIndexHTF.'","'.$ByMonth12HeatIndexHTF.'","'.$TheatindexHF.'"'; ?>);
var highmintemp = new Array(<?php echo '"'.$ByMonth01MinTempH.'","'.$ByMonth02MinTempH.'","'.$ByMonth03MinTempH.'","'.$ByMonth04MinTempH.'","'.$ByMonth05MinTempH.'","'.$ByMonth06MinTempH.'","'.$ByMonth07MinTempH.'","'.$ByMonth08MinTempH.'","'.$ByMonth09MinTempH.'","'.$ByMonth10MinTempH.'","'.$ByMonth11MinTempH.'","'.$ByMonth12MinTempH.'","'.$mintempH.'"'; ?>);
var highmintempT = new Array(<?php echo '"'.$ByMonth01MinTempHTF.'","'.$ByMonth02MinTempHTF.'","'.$ByMonth03MinTempHTF.'","'.$ByMonth04MinTempHTF.'","'.$ByMonth05MinTempHTF.'","'.$ByMonth06MinTempHTF.'","'.$ByMonth07MinTempHTF.'","'.$ByMonth08MinTempHTF.'","'.$ByMonth09MinTempHTF.'","'.$ByMonth10MinTempHTF.'","'.$ByMonth11MinTempHTF.'","'.$ByMonth12MinTempHTF.'","'.$TmintempHF.'"'; ?>);
var lowmaxtemp = new Array(<?php echo '"'.$ByMonth01MaxTempL.'","'.$ByMonth02MaxTempL.'","'.$ByMonth03MaxTempL.'","'.$ByMonth04MaxTempL.'","'.$ByMonth05MaxTempL.'","'.$ByMonth06MaxTempL.'","'.$ByMonth07MaxTempL.'","'.$ByMonth08MaxTempL.'","'.$ByMonth09MaxTempL.'","'.$ByMonth10MaxTempL.'","'.$ByMonth11MaxTempL.'","'.$ByMonth12MaxTempL.'","'.$maxtempL.'"'; ?>);
var lowmaxtempT = new Array(<?php echo '"'.$ByMonth01MaxTempLTF.'","'.$ByMonth02MaxTempLTF.'","'.$ByMonth03MaxTempLTF.'","'.$ByMonth04MaxTempLTF.'","'.$ByMonth05MaxTempLTF.'","'.$ByMonth06MaxTempLTF.'","'.$ByMonth07MaxTempLTF.'","'.$ByMonth08MaxTempLTF.'","'.$ByMonth09MaxTempLTF.'","'.$ByMonth10MaxTempLTF.'","'.$ByMonth11MaxTempLTF.'","'.$ByMonth12MaxTempLTF.'","'.$TmaxtempLF.'"'; ?>);
var highhum = new Array(<?php echo '"'.$ByMonth01HumH.'","'.$ByMonth02HumH.'","'.$ByMonth03HumH.'","'.$ByMonth04HumH.'","'.$ByMonth05HumH.'","'.$ByMonth06HumH.'","'.$ByMonth07HumH.'","'.$ByMonth08HumH.'","'.$ByMonth09HumH.'","'.$ByMonth10HumH.'","'.$ByMonth11HumH.'","'.$ByMonth12HumH.'","'.$humH.'"'; ?>);
var highhumT = new Array(<?php echo '"'.$ByMonth01HumHTF.'","'.$ByMonth02HumHTF.'","'.$ByMonth03HumHTF.'","'.$ByMonth04HumHTF.'","'.$ByMonth05HumHTF.'","'.$ByMonth06HumHTF.'","'.$ByMonth07HumHTF.'","'.$ByMonth08HumHTF.'","'.$ByMonth09HumHTF.'","'.$ByMonth10HumHTF.'","'.$ByMonth11HumHTF.'","'.$ByMonth12HumHTF.'","'.$ThumHF.'"'; ?>);
var lowhum = new Array(<?php echo '"'.$ByMonth01HumL.'","'.$ByMonth02HumL.'","'.$ByMonth03HumL.'","'.$ByMonth04HumL.'","'.$ByMonth05HumL.'","'.$ByMonth06HumL.'","'.$ByMonth07HumL.'","'.$ByMonth08HumL.'","'.$ByMonth09HumL.'","'.$ByMonth10HumL.'","'.$ByMonth11HumL.'","'.$ByMonth12HumL.'","'.$humL.'"'; ?>);
var lowhumT = new Array(<?php echo '"'.$ByMonth01HumLTF.'","'.$ByMonth02HumLTF.'","'.$ByMonth03HumLTF.'","'.$ByMonth04HumLTF.'","'.$ByMonth05HumLTF.'","'.$ByMonth06HumLTF.'","'.$ByMonth07HumLTF.'","'.$ByMonth08HumLTF.'","'.$ByMonth09HumLTF.'","'.$ByMonth10HumLTF.'","'.$ByMonth11HumLTF.'","'.$ByMonth12HumLTF.'","'.$ThumLF.'"'; ?>);
var hightemprange = new Array(<?php echo '"'.$ByMonth01HighDailyTempRange.'","'.$ByMonth02HighDailyTempRange.'","'.$ByMonth03HighDailyTempRange.'","'.$ByMonth04HighDailyTempRange.'","'.$ByMonth05HighDailyTempRange.'","'.$ByMonth06HighDailyTempRange.'","'.$ByMonth07HighDailyTempRange.'","'.$ByMonth08HighDailyTempRange.'","'.$ByMonth09HighDailyTempRange.'","'.$ByMonth10HighDailyTempRange.'","'.$ByMonth11HighDailyTempRange.'","'.$ByMonth12HighDailyTempRange.'","'.$HighDailyTempRange.'"'; ?>);
var hightemprangeT = new Array(<?php echo '"'.$ByMonth01HighDailyTempRangeTF.'","'.$ByMonth02HighDailyTempRangeTF.'","'.$ByMonth03HighDailyTempRangeTF.'","'.$ByMonth04HighDailyTempRangeTF.'","'.$ByMonth05HighDailyTempRangeTF.'","'.$ByMonth06HighDailyTempRangeTF.'","'.$ByMonth07HighDailyTempRangeTF.'","'.$ByMonth08HighDailyTempRangeTF.'","'.$ByMonth09HighDailyTempRangeTF.'","'.$ByMonth10HighDailyTempRangeTF.'","'.$ByMonth11HighDailyTempRangeTF.'","'.$ByMonth12HighDailyTempRangeTF.'","'.$HighDailyTempRangeDF.'"'; ?>);
var lowtemprange = new Array(<?php echo '"'.$ByMonth01LowDailyTempRange.'","'.$ByMonth02LowDailyTempRange.'","'.$ByMonth03LowDailyTempRange.'","'.$ByMonth04LowDailyTempRange.'","'.$ByMonth05LowDailyTempRange.'","'.$ByMonth06LowDailyTempRange.'","'.$ByMonth07LowDailyTempRange.'","'.$ByMonth08LowDailyTempRange.'","'.$ByMonth09LowDailyTempRange.'","'.$ByMonth10LowDailyTempRange.'","'.$ByMonth11LowDailyTempRange.'","'.$ByMonth12LowDailyTempRange.'","'.$LowDailyTempRange.'"'; ?>);
var lowtemprangeT = new Array(<?php echo '"'.$ByMonth01LowDailyTempRangeTF.'","'.$ByMonth02LowDailyTempRangeTF.'","'.$ByMonth03LowDailyTempRangeTF.'","'.$ByMonth04LowDailyTempRangeTF.'","'.$ByMonth05LowDailyTempRangeTF.'","'.$ByMonth06LowDailyTempRangeTF.'","'.$ByMonth07LowDailyTempRangeTF.'","'.$ByMonth08LowDailyTempRangeTF.'","'.$ByMonth09LowDailyTempRangeTF.'","'.$ByMonth10LowDailyTempRangeTF.'","'.$ByMonth11LowDailyTempRangeTF.'","'.$ByMonth12LowDailyTempRangeTF.'","'.$LowDailyTempRangeDF.'"'; ?>);
var rainrate = new Array(<?php echo '"'.$ByMonth01RainRateH.'","'.$ByMonth02RainRateH.'","'.$ByMonth03RainRateH.'","'.$ByMonth04RainRateH.'","'.$ByMonth05RainRateH.'","'.$ByMonth06RainRateH.'","'.$ByMonth07RainRateH.'","'.$ByMonth08RainRateH.'","'.$ByMonth09RainRateH.'","'.$ByMonth10RainRateH.'","'.$ByMonth11RainRateH.'","'.$ByMonth12RainRateH.'","'.$rrateM.'"'; ?>);
var rainrateT = new Array(<?php echo '"'.$ByMonth01RainRateHTF.'","'.$ByMonth02RainRateHTF.'","'.$ByMonth03RainRateHTF.'","'.$ByMonth04RainRateHTF.'","'.$ByMonth05RainRateHTF.'","'.$ByMonth06RainRateHTF.'","'.$ByMonth07RainRateHTF.'","'.$ByMonth08RainRateHTF.'","'.$ByMonth09RainRateHTF.'","'.$ByMonth10RainRateHTF.'","'.$ByMonth11RainRateHTF.'","'.$ByMonth12RainRateHTF.'","'.$TrrateMF.'"'; ?>);
var hourlyrain = new Array(<?php echo '"'.$ByMonth01HourlyRainH.'","'.$ByMonth02HourlyRainH.'","'.$ByMonth03HourlyRainH.'","'.$ByMonth04HourlyRainH.'","'.$ByMonth05HourlyRainH.'","'.$ByMonth06HourlyRainH.'","'.$ByMonth07HourlyRainH.'","'.$ByMonth08HourlyRainH.'","'.$ByMonth09HourlyRainH.'","'.$ByMonth10HourlyRainH.'","'.$ByMonth11HourlyRainH.'","'.$ByMonth12HourlyRainH.'","'.$rfallhH.'"'; ?>);
var hourlyrainT = new Array(<?php echo '"'.$ByMonth01HourlyRainHTF.'","'.$ByMonth02HourlyRainHTF.'","'.$ByMonth03HourlyRainHTF.'","'.$ByMonth04HourlyRainHTF.'","'.$ByMonth05HourlyRainHTF.'","'.$ByMonth06HourlyRainHTF.'","'.$ByMonth07HourlyRainHTF.'","'.$ByMonth08HourlyRainHTF.'","'.$ByMonth09HourlyRainHTF.'","'.$ByMonth10HourlyRainHTF.'","'.$ByMonth11HourlyRainHTF.'","'.$ByMonth12HourlyRainHTF.'","'.$TrfallhHF.'"'; ?>);
var dailyrain = new Array(<?php echo '"'.$ByMonth01DailyRainH.'","'.$ByMonth02DailyRainH.'","'.$ByMonth03DailyRainH.'","'.$ByMonth04DailyRainH.'","'.$ByMonth05DailyRainH.'","'.$ByMonth06DailyRainH.'","'.$ByMonth07DailyRainH.'","'.$ByMonth08DailyRainH.'","'.$ByMonth09DailyRainH.'","'.$ByMonth10DailyRainH.'","'.$ByMonth11DailyRainH.'","'.$ByMonth12DailyRainH.'","'.$rfallH.'"'; ?>);
var dailyrainT = new Array(<?php echo '"'.$ByMonth01DailyRainHTF.'","'.$ByMonth02DailyRainHTF.'","'.$ByMonth03DailyRainHTF.'","'.$ByMonth04DailyRainHTF.'","'.$ByMonth05DailyRainHTF.'","'.$ByMonth06DailyRainHTF.'","'.$ByMonth07DailyRainHTF.'","'.$ByMonth08DailyRainHTF.'","'.$ByMonth09DailyRainHTF.'","'.$ByMonth10DailyRainHTF.'","'.$ByMonth11DailyRainHTF.'","'.$ByMonth12DailyRainHTF.'","'.$TrfallHF.'"'; ?>);
var monthlyrain = new Array(<?php echo '"'.$ByMonth01MonthlyRainH.'","'.$ByMonth02MonthlyRainH.'","'.$ByMonth03MonthlyRainH.'","'.$ByMonth04MonthlyRainH.'","'.$ByMonth05MonthlyRainH.'","'.$ByMonth06MonthlyRainH.'","'.$ByMonth07MonthlyRainH.'","'.$ByMonth08MonthlyRainH.'","'.$ByMonth09MonthlyRainH.'","'.$ByMonth10MonthlyRainH.'","'.$ByMonth11MonthlyRainH.'","'.$ByMonth12MonthlyRainH.'","'.$rfallmH.'"'; ?>);
var monthlyrainT = new Array(<?php echo '"'.$ByMonth01MonthlyRainHTF.'","'.$ByMonth02MonthlyRainHTF.'","'.$ByMonth03MonthlyRainHTF.'","'.$ByMonth04MonthlyRainHTF.'","'.$ByMonth05MonthlyRainHTF.'","'.$ByMonth06MonthlyRainHTF.'","'.$ByMonth07MonthlyRainHTF.'","'.$ByMonth08MonthlyRainHTF.'","'.$ByMonth09MonthlyRainHTF.'","'.$ByMonth10MonthlyRainHTF.'","'.$ByMonth11MonthlyRainHTF.'","'.$ByMonth12MonthlyRainHTF.'","'.$TrfallmHF.'"'; ?>);
var dryperiod = new Array(<?php echo '"'.$ByMonth01LongestDryPeriod.'","'.$ByMonth02LongestDryPeriod.'","'.$ByMonth03LongestDryPeriod.'","'.$ByMonth04LongestDryPeriod.'","'.$ByMonth05LongestDryPeriod.'","'.$ByMonth06LongestDryPeriod.'","'.$ByMonth07LongestDryPeriod.'","'.$ByMonth08LongestDryPeriod.'","'.$ByMonth09LongestDryPeriod.'","'.$ByMonth10LongestDryPeriod.'","'.$ByMonth11LongestDryPeriod.'","'.$ByMonth12LongestDryPeriod.'","'.$LongestDryPeriod.'"'; ?>);
var dryperiodT = new Array(<?php echo '"'.$ByMonth01LongestDryPeriodTF.'","'.$ByMonth02LongestDryPeriodTF.'","'.$ByMonth03LongestDryPeriodTF.'","'.$ByMonth04LongestDryPeriodTF.'","'.$ByMonth05LongestDryPeriodTF.'","'.$ByMonth06LongestDryPeriodTF.'","'.$ByMonth07LongestDryPeriodTF.'","'.$ByMonth08LongestDryPeriodTF.'","'.$ByMonth09LongestDryPeriodTF.'","'.$ByMonth10LongestDryPeriodTF.'","'.$ByMonth11LongestDryPeriodTF.'","'.$ByMonth12LongestDryPeriodTF.'","'.$TLongestDryPeriodF.'"'; ?>);
var wetperiod = new Array(<?php echo '"'.$ByMonth01LongestWetPeriod.'","'.$ByMonth02LongestWetPeriod.'","'.$ByMonth03LongestWetPeriod.'","'.$ByMonth04LongestWetPeriod.'","'.$ByMonth05LongestWetPeriod.'","'.$ByMonth06LongestWetPeriod.'","'.$ByMonth07LongestWetPeriod.'","'.$ByMonth08LongestWetPeriod.'","'.$ByMonth09LongestWetPeriod.'","'.$ByMonth10LongestWetPeriod.'","'.$ByMonth11LongestWetPeriod.'","'.$ByMonth12LongestWetPeriod.'","'.$LongestWetPeriod.'"'; ?>);
var wetperiodT = new Array(<?php echo '"'.$ByMonth01LongestWetPeriodTF.'","'.$ByMonth02LongestWetPeriodTF.'","'.$ByMonth03LongestWetPeriodTF.'","'.$ByMonth04LongestWetPeriodTF.'","'.$ByMonth05LongestWetPeriodTF.'","'.$ByMonth06LongestWetPeriodTF.'","'.$ByMonth07LongestWetPeriodTF.'","'.$ByMonth08LongestWetPeriodTF.'","'.$ByMonth09LongestWetPeriodTF.'","'.$ByMonth10LongestWetPeriodTF.'","'.$ByMonth11LongestWetPeriodTF.'","'.$ByMonth12LongestWetPeriodTF.'","'.$TLongestWetPeriodF.'"'; ?>);
var highgust = new Array(<?php echo '"'.$ByMonth01GustH.'","'.$ByMonth02GustH.'","'.$ByMonth03GustH.'","'.$ByMonth04GustH.'","'.$ByMonth05GustH.'","'.$ByMonth06GustH.'","'.$ByMonth07GustH.'","'.$ByMonth08GustH.'","'.$ByMonth09GustH.'","'.$ByMonth10GustH.'","'.$ByMonth11GustH.'","'.$ByMonth12GustH.'","'.$gustM.'"'; ?>);
var highgustT = new Array(<?php echo '"'.$ByMonth01GustHTF.'","'.$ByMonth02GustHTF.'","'.$ByMonth03GustHTF.'","'.$ByMonth04GustHTF.'","'.$ByMonth05GustHTF.'","'.$ByMonth06GustHTF.'","'.$ByMonth07GustHTF.'","'.$ByMonth08GustHTF.'","'.$ByMonth09GustHTF.'","'.$ByMonth10GustHTF.'","'.$ByMonth11GustHTF.'","'.$ByMonth12GustHTF.'","'.$TgustMF.'"'; ?>);
var highwind = new Array(<?php echo '"'.$ByMonth01WindH.'","'.$ByMonth02WindH.'","'.$ByMonth03WindH.'","'.$ByMonth04WindH.'","'.$ByMonth05WindH.'","'.$ByMonth06WindH.'","'.$ByMonth07WindH.'","'.$ByMonth08WindH.'","'.$ByMonth09WindH.'","'.$ByMonth10WindH.'","'.$ByMonth11WindH.'","'.$ByMonth12WindH.'","'.$wspeedH.'"'; ?>);
var highwindT = new Array(<?php echo '"'.$ByMonth01WindHTF.'","'.$ByMonth02WindHTF.'","'.$ByMonth03WindHTF.'","'.$ByMonth04WindHTF.'","'.$ByMonth05WindHTF.'","'.$ByMonth06WindHTF.'","'.$ByMonth07WindHTF.'","'.$ByMonth08WindHTF.'","'.$ByMonth09WindHTF.'","'.$ByMonth10WindHTF.'","'.$ByMonth11WindHTF.'","'.$ByMonth12WindHTF.'","'.$TwspeedHF.'"'; ?>);
var highwindrun = new Array(<?php echo '"'.$ByMonth01WindRunH.'","'.$ByMonth02WindRunH.'","'.$ByMonth03WindRunH.'","'.$ByMonth04WindRunH.'","'.$ByMonth05WindRunH.'","'.$ByMonth06WindRunH.'","'.$ByMonth07WindRunH.'","'.$ByMonth08WindRunH.'","'.$ByMonth09WindRunH.'","'.$ByMonth10WindRunH.'","'.$ByMonth11WindRunH.'","'.$ByMonth12WindRunH.'","'.$windrunH.'"'; ?>);
var highwindrunT = new Array(<?php echo '"'.$ByMonth01WindRunHTF.'","'.$ByMonth02WindRunHTF.'","'.$ByMonth03WindRunHTF.'","'.$ByMonth04WindRunHTF.'","'.$ByMonth05WindRunHTF.'","'.$ByMonth06WindRunHTF.'","'.$ByMonth07WindRunHTF.'","'.$ByMonth08WindRunHTF.'","'.$ByMonth09WindRunHTF.'","'.$ByMonth10WindRunHTF.'","'.$ByMonth11WindRunHTF.'","'.$ByMonth12WindRunHTF.'","'.$TwindrunHF.'"'; ?>);
var highpress = new Array(<?php echo '"'.$ByMonth01PressH.'","'.$ByMonth02PressH.'","'.$ByMonth03PressH.'","'.$ByMonth04PressH.'","'.$ByMonth05PressH.'","'.$ByMonth06PressH.'","'.$ByMonth07PressH.'","'.$ByMonth08PressH.'","'.$ByMonth09PressH.'","'.$ByMonth10PressH.'","'.$ByMonth11PressH.'","'.$ByMonth12PressH.'","'.$pressH.'"'; ?>);
var highpressT = new Array(<?php echo '"'.$ByMonth01PressHTF.'","'.$ByMonth02PressHTF.'","'.$ByMonth03PressHTF.'","'.$ByMonth04PressHTF.'","'.$ByMonth05PressHTF.'","'.$ByMonth06PressHTF.'","'.$ByMonth07PressHTF.'","'.$ByMonth08PressHTF.'","'.$ByMonth09PressHTF.'","'.$ByMonth10PressHTF.'","'.$ByMonth11PressHTF.'","'.$ByMonth12PressHTF.'","'.$TpressHF.'"'; ?>);
var lowpress = new Array(<?php echo '"'.$ByMonth01PressL.'","'.$ByMonth02PressL.'","'.$ByMonth03PressL.'","'.$ByMonth04PressL.'","'.$ByMonth05PressL.'","'.$ByMonth06PressL.'","'.$ByMonth07PressL.'","'.$ByMonth08PressL.'","'.$ByMonth09PressL.'","'.$ByMonth10PressL.'","'.$ByMonth11PressL.'","'.$ByMonth12PressL.'","'.$pressL.'"'; ?>);
var lowpressT = new Array(<?php echo '"'.$ByMonth01PressLTF.'","'.$ByMonth02PressLTF.'","'.$ByMonth03PressLTF.'","'.$ByMonth04PressLTF.'","'.$ByMonth05PressLTF.'","'.$ByMonth06PressLTF.'","'.$ByMonth07PressLTF.'","'.$ByMonth08PressLTF.'","'.$ByMonth09PressLTF.'","'.$ByMonth10PressLTF.'","'.$ByMonth11PressLTF.'","'.$ByMonth12PressLTF.'","'.$TpressLF.'"'; ?>);
function changeData(month) {
document.getElementById('MonthName').innerHTML = monts_title[month];
document.getElementById('TempH').innerHTML = hightemp[month];
document.getElementById('TempHT').innerHTML = hightempT[month];
document.getElementById('TempL').innerHTML = lowtemp[month];
document.getElementById('TempLT').innerHTML = lowtempT[month];
document.getElementById('DewPointH').innerHTML = highDP[month];
document.getElementById('DewPointHT').innerHTML = highDPT[month];
document.getElementById('DewPointL').innerHTML = lowDP[month];
document.getElementById('DewPointLT').innerHTML = lowDPT[month];
document.getElementById('AppTempH').innerHTML = highapptemp[month];
document.getElementById('AppTempHT').innerHTML = highapptempT[month];
document.getElementById('AppTempL').innerHTML = lowapptemp[month];
document.getElementById('AppTempLT').innerHTML = lowapptempT[month];
document.getElementById('WChillL').innerHTML = lowchill[month];
document.getElementById('WChillLT').innerHTML = lowchillT[month];
document.getElementById('HeatIndexH').innerHTML = highheatindex[month];
document.getElementById('HeatIndexHT').innerHTML = highheatindexT[month];
document.getElementById('MinTempH').innerHTML = highmintemp[month];
document.getElementById('MinTempHT').innerHTML = highmintempT[month];
document.getElementById('MaxTempL').innerHTML = lowmaxtemp[month];
document.getElementById('MaxTempLT').innerHTML = lowmaxtempT[month];
document.getElementById('HumH').innerHTML = highhum[month];
document.getElementById('HumHT').innerHTML = highhumT[month];
document.getElementById('HumL').innerHTML = lowhum[month];
document.getElementById('HumLT').innerHTML = lowhumT[month];
document.getElementById('HighDailyTempRange').innerHTML = hightemprange[month];
document.getElementById('HighDailyTempRangeT').innerHTML = hightemprangeT[month];
document.getElementById('LowDailyTempRange').innerHTML = lowtemprange[month];
document.getElementById('LowDailyTempRangeT').innerHTML = lowtemprangeT[month];
document.getElementById('RainRateH').innerHTML = rainrate[month];
document.getElementById('RainRateHT').innerHTML = rainrateT[month];
document.getElementById('HourlyRainH').innerHTML = hourlyrain[month];
document.getElementById('HourlyRainHT').innerHTML = hourlyrainT[month];
document.getElementById('DailyRainH').innerHTML = dailyrain[month];
document.getElementById('DailyRainHT').innerHTML = dailyrainT[month];
document.getElementById('MonthlyRainH').innerHTML = monthlyrain[month];
document.getElementById('MonthlyRainHT').innerHTML = monthlyrainT[month];
document.getElementById('LongestDryPeriod').innerHTML = dryperiod[month];
document.getElementById('LongestDryPeriodT').innerHTML = dryperiodT[month];
document.getElementById('LongestWetPeriod').innerHTML = wetperiod[month];
document.getElementById('LongestWetPeriodT').innerHTML = wetperiodT[month];
document.getElementById('GustH').innerHTML = highgust[month];
document.getElementById('GustHT').innerHTML = highgustT[month];
document.getElementById('WindH').innerHTML = highwind[month];
document.getElementById('WindHT').innerHTML = highwindT[month];
document.getElementById('WindRunH').innerHTML = highwindrun[month];
document.getElementById('WindRunHT').innerHTML = highwindrunT[month];
document.getElementById('PressL').innerHTML = lowpress[month];
document.getElementById('PressLT').innerHTML = lowpressT[month];
document.getElementById('PressH').innerHTML = highpress[month];
document.getElementById('PressHT').innerHTML = highpressT[month];
}
var dayname = new Array ('<?php echo $Tr_sun."','".$Tr_mon."','".$Tr_tue."','".$Tr_wed."','".$Tr_thu."','".$Tr_fri."','".$Tr_sat; ?>');
var monthname = new Array ('<?php echo $Tr_jan."','".$Tr_feb."','".$Tr_mar."','".$Tr_apr."','".$Tr_may."','".$Tr_jun."','".$Tr_jul."','".$Tr_aug."','".$Tr_sep."','".$Tr_oct."','".$Tr_nov."','".$Tr_dec; ?>');
</script>
</head>
<body>
<div id='outer-wrapper'>
<div id='wrap2'>
<div id='header-wrapper'>
<div class='topmenu'>
<?php
include('menu_inc.php');
?>
</div>
<div id='header'>
<div class='widget'>
<h1><?php echo $location; ?></h1>
<h2><?php echo $longlocation; ?></h2>
</div>
</div>
</div>
<div id='body-content'>
<div class='content-top'></div>
<div id='content-wrapper'>
<div id="body-wrapper">
<div id='main'>
<!-- Template center bloc -->
<div id="content_top"></div>
<div id="content">
<h1><span id="MonthName">All Time Records</span></h1>
<div id="sub_menu">
<ul style="margin-bottom: 0px;">
<li><a href="#" class="sub_item" onclick="changeData(0)"><?php echo $Tr_jan; ?></a></li>
<li><a href="#" class="sub_item" onclick="changeData(1)"><?php echo $Tr_feb; ?></a></li>
<li><a href="#" class="sub_item" onclick="changeData(2)"><?php echo $Tr_mar; ?></a></li>
<li><a href="#" class="sub_item" onclick="changeData(3)"><?php echo $Tr_apr; ?></a></li>
<li><a href="#" class="sub_item" onclick="changeData(4)"><?php echo $Tr_may; ?></a></li>
<li><a href="#" class="sub_item" onclick="changeData(5)"><?php echo $Tr_jun; ?></a></li>
<li><a href="#" class="sub_item" onclick="changeData(6)"><?php echo $Tr_jul; ?></a></li>
</ul>
<ul style="margin-top: 10px;">
<li><a href="#" class="sub_item" onclick="changeData(7)"><?php echo $Tr_aug; ?></a></li>
<li><a href="#" class="sub_item" onclick="changeData(8)"><?php echo $Tr_sep; ?></a></li>
<li><a href="#" class="sub_item" onclick="changeData(9)"><?php echo $Tr_oct; ?></a></li>
<li><a href="#" class="sub_item" onclick="changeData(10)"><?php echo $Tr_nov; ?></a></li>
<li><a href="#" class="sub_item" onclick="changeData(11)"><?php echo $Tr_dec; ?></a></li>
<li><a href="#" class="sub_item" onclick="changeData(12)">All Time</a></li>
</ul>
</div>
<!-- WEATHER DATA BEGIN -->
<div id="inner">
<p><em><?php echo $Tr_recordsbegandate.' '.$recordsbegandate.'. '.$Tr_recorbd_text; ?></em></p>
<?php
include('multirecords_txt.php');
?>
<p class="credits" style="margin:20px 25px 0px 0px; padding-bottom:20px; text-align:right">
<?php echo $Tr_update.' : '.$update.'<br />'.$Tr_version; ?>
<a href="http://sandaysoft.com/products/cumulus">Cumulus</a> <?php echo $version.' ('.$build.')'; ?>
</p>
</div>
</div>
</div>
<div class='sidebar-wrapper'>
<p style="margin-top: 0px; text-align: center">
<!-- This show current date, format: Monday, 1 may 2012 -->
<strong><?php echo $Tr_daynames[date('w') + 1].', '.date('j').' '.$Tr_monthnames[date('n')].' '.$year; ?></strong>
</p>
<div class='sidebar'>
<div class='widget'>
<h2>Observations</h2>
<div class='sidebar-content'>
<table cellspacing="0" style="padding:10px 0px; line-height: 22px" summary="Most recent observations">
<tr>
<td style="text-align:right"><?php echo $now_temp; ?> :</td>
<td style="text-align:left"><strong><?php echo $temp; ?></strong><small><?php echo $tempunit; ?></small></td>
</tr><tr>
<td style="text-align:right"><?php echo $now_hum; ?> :</td>
<td style="text-align:left"><strong><?php echo $hum; ?></strong><small>%</small></td>
</tr><tr>
<td style="text-align:right"><?php echo $Tr_wind; ?> :</td>
<td style="text-align:left"><strong><?php echo $wspeed; ?></strong> <small><?php echo $windunit; ?></small></td>
</tr><tr>
<td style="text-align:right"><?php echo $Tr_windd; ?> :</td>
<td style="text-align:left"><strong><?php echo $currentwdir; ?></strong></td>
</tr>
</table>
<p style="text-align: center">Last read at <?php echo $timehhmmss; ?></p>
</div>
<h2><?php echo $Tr_forecast; ?></h2>
<div class='sidebar-content'>
<img src="style/forecast/forecast_<?php echo $isdaylight.'_'.$forecastnumber; ?>.png" alt="<?php echo $Tr_forecast.': '.$forecastenc; ?>" title="<?php echo $Tr_forecast.': '.$forecastenc; ?>" />
<p>Forecast image<br /><em>(next 12 hours)</em></p>
</div>
<h2><?php echo $Tr_moonphase; ?></h2>
<div class='sidebar-content'>
<div id="moonbox">
<img src="images/moon.bmp" style="padding: 50px 0px 22px 20px" alt="Moon phase icon" title="Current Moon Phase" />
</div>
<p style="margin: 0px;">Phase : <strong><?php echo $moonphase; ?></strong><br />
<?php echo $Tr_MoonPercent; ?> <strong><?php echo $MoonPercentAbs; ?>%</strong></p>
</div>
</div>
</div>
<div class='sidebar_bottom'></div>
</div>
<!-- spacer for skins that want sidebar and main to be the same height-->
</div>
</div>
<!-- end content-wrapper -->
</div>
<div id='footer-wrapper'>
<div id='footer'>
<div class='footerlink'>
<div class="footerLeft">
Copyright 2013 - Weather Eden<br />
Template adaptation by: - <a href="http://weatherbyyou.com"> Weather by You!</a>
</div>
<div class="footerLeft">
<h3 style="text-align: center"><?php echo $location; ?></h3>
</div>
Copyright 2009 - <a href='http://edensgarden-btemplates.blogspot.ca/'>Edens Garden</a>
<br/>
<a href='http://www.rayhosting.com/' title='Web Hosting Delhi'>Blogspot Theme</a>
Design by: <a href='http://www.raycreationsindia.com/free-b ... .aspx'>Ray Creations</a>
</div>
</div>
<!-- end outer-wrapper -->
</div>
</div>
</div>
<script type='text/javascript'>
function SetHeight() {
document.getElementById("body-wrapper").style.height = document.getElementById("main").clientHeight + 'px';
}
SetHeight();
</script>
</body>
</html>
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: This is for Steve: Issue with humidity units on records

Post by beteljuice »

Interesting ...

So he's using php to write javascript ...

Reading between the lines so to speak it seems you should be looking in multirecords_txt.php
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
Freezeville
Posts: 22
Joined: Sun 06 Apr 2014 3:14 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 7 Professional
Location: Maine, USA
Contact:

Re: This is for Steve: Issue with humidity units on records

Post by Freezeville »

beteljuice wrote:Interesting ...

So he's using php to write javascript ...

Reading between the lines so to speak it seems you should be looking in multirecords_txt.php
OK, looking at that file, I think I may have found it. I'm posting the code here, with where I think the error is shown in red bold. See if you think I'm right, and if I am, can you please tell me how to fix it?

Code follows:

<?php
$tpl_version = "1.1";
if (isset($_GET['ver'])) {
echo $tpl_version;
exit;
// Date: 2013-11-19
}
?>
<!-- WEATHER DATA BEGIN -->
<table id="tbl_3cols" border="0" cellpadding="0" cellspacing="0" summary="Observations for this month">
<tr>
<td colspan="4" class="tableseparator"><?php echo $TT_TempAndHum; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_MonthTempH; ?></td>
<td class="right_align"><span id="TempH"><?php echo $tempH; ?></span><?php echo' '.$tempunit; ?></td>
<td id="TempHT"><?php echo $TtempHF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_MonthTempL; ?></td>
<td class="right_align"><span id="TempL"><?php echo $tempL; ?></span><?php echo' '.$tempunit; ?></td>
<td id="TempLT"><?php echo $TtempLF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_MonthDewPointH; ?></td>
<td class="right_align"><span id="DewPointH"><?php echo $dewpointH; ?></span><?php echo' '.$tempunit; ?></td>
<td id="DewPointHT"><?php echo $TdewpointHF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_MonthDewPointL; ?></td>
<td class="right_align"><span id="DewPointL"><?php echo $dewpointL; ?></span><?php echo' '.$tempunit; ?></td>
<td id="DewPointLT"><?php echo $TdewpointLF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_MonthAppTempH; ?></td>
<td class="right_align"><span id="AppTempH"><?php echo $apptempH; ?></span><?php echo' '.$tempunit; ?></td>
<td id="AppTempHT"><?php echo $TapptempHF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_MonthAppTempL; ?></td>
<td class="right_align"><span id="AppTempL"><?php echo $apptempL; ?></span><?php echo' '.$tempunit; ?></td>
<td id="AppTempLT"><?php echo $TapptempLF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_MonthWChillL; ?></td>
<td class="right_align"><span id="WChillL"><?php echo $wchillH; ?></span><?php echo' '.$tempunit; ?></td>
<td id="WChillLT"><?php echo $TwchillHF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_MonthHeatIndexH; ?></td>
<td class="right_align"><span id="HeatIndexH"><?php echo $heatindexH; ?></span><?php echo' '.$tempunit; ?></td>
<td id="HeatIndexHT"><?php echo $TheatindexHF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_maxtempL; ?></td>
<td class="right_align"><span id="MinTempH"><?php echo $mintempH; ?></span><?php echo' '.$tempunit; ?></td>
<td id="MinTempHT"><?php echo $TmintempHF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_mintempH; ?></td>
<td class="right_align"><span id="MaxTempL"><?php echo $maxtempL; ?></span><?php echo' '.$tempunit; ?></td>
<td id="MaxTempLT"><?php echo $TmaxtempLF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_humH; ?></td>
<td class="right_align"><span id="HumH"><?php echo $humH; ?></span><?php echo' '.$tempunit; ?></td>
<td id="HumHT"><?php echo $ThumHF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_humL; ?></td>
<td class="right_align"><span id="HumL"><?php echo $humL; ?></span><?php echo' '.$tempunit; ?></td>

<td id="HumLT"><?php echo $ThumLF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_HighDailyTempRange; ?></td>
<td class="right_align"><span id="HighDailyTempRange"><?php echo $HighDailyTempRange; ?></span><?php echo' '.$tempunit; ?></td>
<td id="HighDailyTempRangeT"><?php echo $HighDailyTempRangeDF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_LowDailyTempRange; ?></td>
<td class="right_align"><span id="LowDailyTempRange"><?php echo $LowDailyTempRange; ?></span><?php echo' '.$tempunit; ?></td>
<td id="LowDailyTempRangeT"><?php echo $LowDailyTempRangeDF; ?></td>
</tr>
<tr>
<td colspan="4" class="tableseparator"><?php echo $TT_Rainfall; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_rrateM; ?></td>
<td class="right_align"><span id="RainRateH"><?php echo $rrateM; ?></span><?php echo' '.$rainunit; ?></td>
<td id="RainRateHT"><?php echo $TrrateMF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_rfallhH; ?></td>
<td class="right_align"><span id="HourlyRainH"><?php echo $rfallhH; ?></span><?php echo' '.$rainunit; ?></td>
<td id="HourlyRainHT"><?php echo $TrfallhHF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_rfallH; ?></td>
<td class="right_align"><span id="DailyRainH"><?php echo $rfallH; ?></span><?php echo' '.$rainunit; ?></td>
<td id="DailyRainHT"><?php echo $TrfallHF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_rfallmH; ?></td>
<td class="right_align"><span id="MonthlyRainH"><?php echo $rfallmH; ?></span><?php echo' '.$rainunit; ?></td>
<td id="MonthlyRainHT"><?php echo $TrfallmHF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_LongestDryPeriod; ?></td>
<td class="right_align"><span id="LongestDryPeriod"><?php echo $LongestDryPeriod; ?></span><?php echo' '.$TT_day; ?></td>
<td id="LongestDryPeriodT"><?php echo $TLongestDryPeriodF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_LongestWetPeriod; ?></td>
<td class="right_align"><span id="LongestWetPeriod"><?php echo $LongestWetPeriod; ?></span><?php echo' '.$TT_day; ?></td>
<td id="LongestWetPeriodT"><?php echo $TLongestWetPeriodF; ?></td>
</tr>
<tr>
<td colspan="4" class="tableseparator"><?php echo $TT_Wind; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_gustM; ?></td>
<td class="right_align"><span id="GustH"><?php echo $gustM; ?></span><?php echo' '.$windunit; ?></td>
<td id="GustHT"><?php echo $TgustMF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_wspeedH; ?></td>
<td class="right_align"><span id="WindH"><?php echo $wspeedH; ?></span><?php echo' '.$windunit; ?></td>
<td id="WindHT"><?php echo $TwspeedHF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_windrunH; ?></td>
<td class="right_align"><span id="WindRunH"><?php echo $windrunH; ?></span><?php echo' '.$windrununit; ?></td>
<td id="WindRunHT"><?php echo $TwindrunHF; ?></td>
</tr>
<tr>
<td colspan="4" class="tableseparator"><?php echo $TT_Press; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_pressL; ?></td>
<td class="right_align"><span id="PressL"><?php echo $pressL; ?></span><?php echo' '.$pressunit; ?></td>
<td id="PressLT"><?php echo $TpressLF; ?></td>
</tr>
<tr class="td_data">
<td><?php echo $Tr_pressH; ?></td>
<td class="right_align"><span id="PressH"><?php echo $pressH; ?></span><?php echo' '.$pressunit; ?></td>
<td id="PressHT"><?php echo $TpressHF; ?></td>
</tr>
</table>
User avatar
Freezeville
Posts: 22
Joined: Sun 06 Apr 2014 3:14 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 7 Professional
Location: Maine, USA
Contact:

Re: This is for Steve: Issue with humidity units on records

Post by Freezeville »

Oh, and also, perhaps you may see more places with similar errors in case I missed any. I could only find those two but there could be more.
Post Reply