Weather by You!

Templates and Projects support => Php templates => Topic started by: Stefan on June 05, 2014, 04:41:04 PM

Title: Sunset Template: please help with a few errors
Post by: Stefan on June 05, 2014, 04:41:04 PM
Hello.  I give up:  Although my weather site is up and running (to include the real time gauges in  sunset template), there are a few errors; also i have a few questions if you would please indulge me  :)

http://www.taylorsvillewx.info

1.  [I am using Dreamweaver CS 5.5 as my page editor and] there are syntax errors starting on line 486 through line 555 [wt_data_inc.php] - the web host is running PHP5.3. 
The offending syntax has to do with single or double quotes.  example:

  '<#TpressH format="h'h'nn">'

Do i need to update my web host to PHP 5.4?  Please help me solve the error.

2.  Current solar Max is always 0 - Cumulus is reporting this data correctly but the website does not pick it up.  (Note that solar radiation is updating correctly despite solar max remaining at 0).

3.  Is Sun Up is always No - Again, Cumulus reports sun is up/sunrise accurately but the website always says No.  Also, Heat index says no...not sure if that is correct.

4. How might i add data from the following [5] sensors [stainless steel gauges] to my sunset template:
Soil temp 1
Soil temp 2
Leaf Wetness
2nd Humidity
2nd Temp

Thank you very much for your time!

Stefan

Title: Re: Sunset Template: please help with a few errors
Post by: Mr.Meteo on June 07, 2014, 08:32:57 AM
Hi Stefan,

1 . Data files (wt_..._inc.php) are specific for Cumulus use,
before processing, files are not "compilant"

2. Solar Max seems to be ok this morning!

3. For 'no' to Sun Up and Heat Index, you could check Inside
index_txt.php page to locate line:
if ($IsSunUp == "0")
and see in (processed) file wt_data_inc.php how your numbers
are formated (should be "0" or "1").

4 . Edit file index_txt.php to add lines you need, first, locate sensors
 you need (ie. $LeafTemp1 = "7,0";) in wt_data_inc.php file
and use these "variable name" ($LeafTemp1) in your page.

Remember that your files will be "non-standard" and will be
not to update Inside TMM without extra works.

Regards,
Jacques
Title: Re: Sunset Template: please help with a few errors
Post by: Mkmadihew on November 12, 2014, 01:31:25 AM
I appreciate your posts very much.