|
saratogaWX
|
 |
« on: September 02, 2006, 02:52:11 PM » |
|
Version 1.03 of the buoy-data mesomap is now available at http://saratoga-weather.org/scripts.phpChanges: Added run/pause/step controls for rotating display to the mesomap. The controls can be positioned in the mybuoy config file with a default of below the rotating legend display. Added buoy-data-config.txt file for configuration without changing the buoy-data.php file. Added new wind arrows from 'krelvinaz' at www.TNETWeather.com in both 14x14 and 9x9 sizes. Added California contributed files from SLOweather for California buoys (Monterey to Los Angeles) 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
|
|
|
|
saratogaWX
|
 |
« Reply #1 on: November 17, 2006, 08:23:54 PM » |
|
A user of the buoy-data script reported multiple "Notice:" errors on his installation. ( see http://www.weather-watch.com/smf/index.php/topic,20051.0.html for details) The source for buoy-data.php was updated to use isset() for all associative array tests (on $_REQUEST and other program arrays). Also null defaults added for parsing the configuration file for optional parameters. Uncomment line 13 // error_reporting(E_ALL); // uncomment to turn on full error reporting
to enable full PHP error checking, and it should come out clean  The code is fixed and V1.04 is released -- the only change in the buoy-data-V1-04.zip file is the buoy-data.php script itself. Download from: http://saratoga-weather.org/scripts-buoy.phpThanks to jwyman for spotting this issue -- please let me know if you find other scripts of mine that have problems! 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
|
|
|
|
saratogaWX
|
 |
« Reply #2 on: November 28, 2006, 09:05:12 PM » |
|
I've updated the buoy-data.php script to now output fully XHTML 1.0-Strict compliant XHTML (as validated by validator.w3.org ). The version 1.05 is included in the full .zip distribution file and available as a separate download. The text-based Run/Pause/Step controls are now form-based buttons too. Docs/download .zip : http://saratoga-weather.org/scripts-buoy.phpDownload script only: http://saratoga-weather.org/buoy-data.php?sce=viewBest 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
|
|
|
|
saratogaWX
|
 |
« Reply #3 on: December 21, 2006, 08:46:13 PM » |
|
Some folks have been experiencing a lack of observations in the buoy-data.php display. Check the bottom of your NDBC-buoydataE.txt (or NDBC-buoydataM.txt if metric units used) in the same directory as the buoy-data.php script for the line <br /> <b>Fatal error</b>: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in <b>/var/www/html/ndbc/radial_search.php</b> on line <b>525</b><br /> This indicates a problem with the NDBC website and should clear after a refresh or two. 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
|
|
|
|
saratogaWX
|
 |
« Reply #4 on: September 20, 2007, 07:58:57 PM » |
|
Seems to be the season for NOAA website changes. A recent change to www.ndbc.noaa.gov has the buoy-data.php script reporting 'no data available' for all buoys. Fortunately, the fix is an easy one. You can change // extract buoy data lines from page preg_match_all('|<P><B><font color=#FF0000>Not All(.*)</pre>|Usi',$html,$betweenspan); to // extract buoy data lines from page preg_match_all('|<p class="red"><strong>(.*)</pre>|Usi',$html,$betweenspan); in your copy of the script, or download V1.08 from http://saratoga-weather.org/buoy-data.php?sce=viewThe Zip file package has also been updated, but the one line change in buoy-data.php is the only code change (except for the version number info). 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
|
|
|
|
saratogaWX
|
 |
« Reply #5 on: September 23, 2007, 07:17:21 PM » |
|
There was a bit more to update with the script to fix a time display issue, so now there's new version available. I've updated the distribution files with the V1.09 buoy-data.php script, and with contributions of mybuoy control files/graphics from Bob at http://www.nybodyboarding.com/Jim at http://www.jcweather.us/ and Chris at http://www.capeweather.com/Download from http://saratoga-weather.org/scripts-buoy.php#buoydataIf you've done your settings in the buoy-data-config.txt file, then you can just replace the buoy-data.php and your settings will be preserved  New contributions to control files/graphics are always welcome! See the current set at http://saratoga-weather.org/buoy-data-contributed.phpBest 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
|
|
|
|
saratogaWX
|
 |
« Reply #6 on: February 21, 2008, 08:07:45 PM » |
|
I've updated the buoy-data.php script to v1.12 and it now allows a MUCH simpler method to include: In the <head></head> section put <?php $doPrintBUOY = false; include("buoy-data.php"); print $BUOY_CSS; ?> then in the <body></body> section put <?php print $BUOY_MAP; ?> <?php print $BUOY_TABLE ?> Note, you can put stuff between the two print statements so you can separate the mesomap from the table (or omit printing either one as you please). The sample buoy-test.php and buoy-test-split.php have also been updated. The .zip file was updated with the new samples, but you can probably use just the new buoy-data.php script itself. Both are available at http://saratoga-weather.org/scripts-buoy.php#buoydata (along with new instructions). Note: anyone who had used the sample buoy-test.php or buoy-test-split.php as a model for include on your website should update the buoy-data.php script and use the above method for include. One website was abused (overloaded) by an exploit attempt using the prior sample code. Folks using the URL-include method were are not affected by this possible exploit. Thanks to MCHALLIS for spotting the problem! Best regards, Ken
|
|
|
|
« Last Edit: February 21, 2008, 08:11:45 PM by saratogaWX »
|
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
|
|
|
|
BfdWx
|
 |
« Reply #7 on: February 21, 2008, 09:05:29 PM » |
|
Works like a charm Ken, thanks for the update!
|
|
|
|
|
Logged
|
|
|
|
|