I am running Ajax-Dashboard.php with USA template. I am using VWS for my weather software connected to LaCrosse weather station, and just have 3 problems to resolve(strange problems). The link to the site is http://www.weathermayhem.com/Testing/
1. The current conditions icon seems to work fine during the day, but at night it changes to just partly cloudy, day time. Can't figure out what I am missing here, Where is the <span class="ajax" id="ajaxconditionicon2"> info coming from??? I would like for this to get conditions from meters as the weather station current conditions info is in accurate.
Unfortunately, VWS doesn't provide updates on the current conditions in the two WeatherFlash files (wflash.txt, wflash2.txt), so the ajaxVWSwx.js doesn't include code to update the ajaxconditionicon2 -- it is solely determined by PHP based on either the value in
$WX['climate_cconds1'] = 'Scattered Clouds'; // Current Conditions Station 1
or from a nearby METAR if VWS is not set to produce the climate_cconds1 tag. The routine in VWS-defs.php will parse the text, and pick the likely icon to display based on the text with day/night determined by the station reporting time v.s. sunrise/sunset.
I suggest you add a <meta> tag to the page showing the dashboard that causes the browser to refresh every 10 minutes or so and that should fix the display, since there is no AJAX update available for the conditions icon.
2. The wind direction seems to be changing and having a mind of its own, when the winds are SW it will show NW???
The icon shows the direction the wind is coming from and is based on VWS's
$WX['vxv001'] = 'NE'; // Wind Direction
It is updated by AJAX from wflash[3] (degrees) converted to the nearest 16 cardinal directions and used to update the text and wind direction image. It only displays what VWS reports .. if there's an issue with what is displayed by VWS and the apparent direction of the wind by observation, I'd check the orientation and functioning of the wind vane itself.
3. In internet Explorer 9, which seems to be the only one doing it and none of the others, every once in awhile when you refresh the page or click a link an error will pop up regarding VWStags.php
unexpected $end in /Testing/VWStags.php on line (several different lines). This just happens intermittently and not sure why.
If anybody has any solutions please let me know, this new website is going to be released on Aug. 1st so time is ticking.
Thanks
Weathermayhem
The "unexpected $end" message can happen when the PHP page is being loaded by a browser at the same time that the VWStags.php is being uploaded by FTP to the website (and is not quite complete). Since VWS doesn't seem to offer a 'put-temp, rename' option on it's FTP, I'm not sure how to solve this permanently. It all depends on having a fast FTP upload from VWS.
Hope this helps... you've done a nice job in re-purposing the template code for your own look/feel. Congratulations!
Best regards,
Ken