lfennell
Member
Offline
Posts: 4
|
 |
« on: May 31, 2012, 11:12:02 PM » |
|
I'm new to the Ajax templates, using VWS Weatherflash feeds. I got everything going pretty easily but the awesome thermometer will not display. It doesn't seem to be picking up the temperature variable in the code. See www.fennellweather.com/wxindex.php and thanks in advance.
|
|
|
|
|
Logged
|
|
|
|
|
saratogaWX
|
 |
« Reply #1 on: June 01, 2012, 01:30:59 PM » |
|
Your thermometer.php is returning Parse error: syntax error, unexpected ':' in /home/lfennell/public_html/thermometer.php on line 43 Have you tried using a fresh copy of thermometer.php from the distribution .zip file? Normally, you don't need to change that file at all.. all the configuration comes from Settings.php and Settings-weather.php Best regards, Ken
|
|
|
|
|
Logged
|
Ken True/Saratoga, CA, USA main site: saratoga-weather.orgDavis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
|
|
|
lfennell
Member
Offline
Posts: 4
|
 |
« Reply #2 on: June 02, 2012, 06:41:26 PM » |
|
Hi Ken,
I appreciate your time. I uploaded a fresh copy of thermometer.php and the problem still exists. Line 43 is commented out, so there shouldn't be any syntax error. Let me know what you see now. Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
saratogaWX
|
 |
« Reply #3 on: June 02, 2012, 07:44:11 PM » |
|
Hi, I see by viewing http://www.fennellweather.com/thermometer.php?t= the message Warning: Cannot modify header information - headers already sent by (output started at /home/lfennell/public_html/Settings.php:3) in /home/lfennell/public_html/thermometer.php on line 509 I suspect you may have one or more blank lines before the <?php line in Settings.php .. delete them and re-upload Settings.php and your thermometer should work. It is creating a PNG image for display, but the extra blank line(s) in Settings.php cause the PHP error message which blocks the browser from presenting the thermometer image. To be clear, the Settings.php (and Settings-weather.php) files, need to have <?php as the first characters on the first line in the file, and have ?> as the last characters in the file (with no extra blank lines either before the first line or after the last line). Best regards, Ken
|
|
|
|
|
Logged
|
Ken True/Saratoga, CA, USA main site: saratoga-weather.orgDavis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
|
|
|
lfennell
Member
Offline
Posts: 4
|
 |
« Reply #4 on: June 03, 2012, 08:33:59 AM » |
|
That did it Ken!
One more thing, the current conditions icon above the thermometer isn't displaying. Where is it defined in the templates?
Thanks again for all the help.
|
|
|
|
|
Logged
|
|
|
|
|
saratogaWX
|
 |
« Reply #5 on: June 05, 2012, 02:13:00 PM » |
|
Hi, Looks like you're missing the VWS-defs.php file on your site .. that's why virtually nothing is showing on the dashboard. Upload it from the VWS-plugin.zip to your website. The Conditions icon/text is normally set by VWS in ^climate_cconds1^ (assuming you have VWS set to use a nearby METAR for sky conditions). If not, then in Settings-weather.php, uncomment the # $SITE['conditionsMETAR'] = 'KSJC'; // set to nearby METAR for current conditions icon/text # comment out conditionsMETAR to use built-in VWS icon/text conditions setting for ^climate_ccond1^ and ^climate_icon1^
(remove the '#' before $SITE['conditionsMETAR'] = 'KSJC'; and replace the 'KSJC' with a nearby METAR. You can use the find-metar tool on my site to configure both the $SITE['conditionsMETAR'] and the metars to use in the wxmetar.php page. Best regards, Ken
|
|
|
|
|
Logged
|
Ken True/Saratoga, CA, USA main site: saratoga-weather.orgDavis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
|
|
|
lfennell
Member
Offline
Posts: 4
|
 |
« Reply #6 on: June 05, 2012, 06:12:44 PM » |
|
Perfect, you nailed it again. From the instructions, I understood that I needed to maintain the directory structure for the VWS Plugin, so I actually had the files in a sub-directory on my site called VWS-Plugin. I moved the files to the root directory and everything came to life!
Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
saratogaWX
|
 |
« Reply #7 on: June 05, 2012, 07:38:09 PM » |
|
Glad that's all sorted out now  I've added your site to the list of sites. Best regards, Ken
|
|
|
|
|
Logged
|
Ken True/Saratoga, CA, USA main site: saratoga-weather.orgDavis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
|
|
|
|