![]() New setting: $fullMessagesMode = true // fetches the complete message for each alert.This new feature compliments the feature that lets you change the zone code by adding a query on the URL ie: atom-advisory.php?zone=TXZ062 ie: "Source: NWS Watches, Warnings or Advisories for zone TXZ062". When there is an active alert, it automatically displays a "source" url link at the bottom of the advisories page that links directly to the rss page where the script got the alerts.ie: "Current Watches, Warnings and Advisories for Midland (TXZ062) Texas Issued by the National Weather Service". When there is an alert, it automatically displays a header title at the top of the advisories page that includes the zone name and zone code.Added a link ".view the complete message" on each alert so you can read the complete message on the NWS web site.When there is an Urgency: "Immediate" alert, the word "Immediate" will be in red highlights to stand out better. The CAP codes provide: Last updated time, Effective time, Expires time, Urgency, Severity, Certainty, Status, Message type, Alert Category, and Areas affected. Displays new information called "CAP codes".Modified to use the Experimental XML/CAP 1.1 Feeds (these alerts are available now and are going to be the standard rss alerts beginning in Dec.Cache file name of 'atom-advisory-ssZnnn.txt' use to prevent possible interference with existing 'rss-advisory-ssZnnn.txt' files used by the older RSS scripts.The original RSS script has been greatly improved by Mike Challis and we've reissued the script as ' atom-advisory.php'. The script contains the documentation for setting up operation. You can try a test of this with your Zone (located from RSS County/Zone feed) using this website where ssZnnn is your Zone. not recommended for PHP5+): Page with summary info:ĭetail display page (advdetail.php in this example) :įile method (recommended for PHP4 or PHP5+): Page with summary info: The File method works with allow_url_fopen in either on or off mode. ![]() The URL method only works if allow_url_include is on in your PHP settings. There are two ways of including the script in your pages depending on whether your hoster has allow_url_include option set to on or off. The links will open the page specified in the script to display the details. summary=Y If present, the script will output only the titles and links for the alerts found. You should specify this if you invoke the script from within your webpage i.e. inc=Y If present, the script will not output surrounding HTML for the page returned. The script has three optional arguments for the URL: zone=ssZnnn This allows override of the default Zone for the RSS feed to use. The ATOM/CAP feeds from NOAA include Advisory, Statement, Watch, and Warning type messages, but do not seem to include "Outlook" type statements (so no "Hazardous Weather Outlook" is available via the RSS feeds from ). This PHP script accesses and formats the Zone advisory ATOM/CAP XML feeds from to allow easy inclusion into your website. Thanks for your kind support!Ī Version History is available - check back from time to time to see if there are updates to scripts you have downloaded earlier.Īnnouncements of version updates and new scripts are made onĪnd saratogaWXPHP Twitter account as they become available. If you find one or more of the scripts useful to you, please consider making a donation to help offset the routine expenses of operation of this website. Many of these scripts are now available on GitHub at You will need to configure them for your own particular weather station website.Ī RSS Feed is available to help keep you informed on updates to the scripts. I accept no liability for any damages that may ensue from their use. Please note that you use these scripts at your own risk. The scripts referenced here are used in the operation of this weather station, and may be freely copied and used to support your station. PHP for thermometer graphic (WD/VWS/Cumulus).Envt.Canada Lighting Danger (English/French).NOAA ATOM/CAP multifeed processor (PHP5).Aerisweather Forecast with icons - multilingual.Wunderground forecast with icons - multilingual.DarkSky Forecast with icons - multilingual.WXSIM Forecast with icons RSS 2.0 feed multi-lingual.WXSIM Forecast with icons - multi-lingual.Canada Forecast/Advisory (English/French)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |