Blog  /  2008  /  June  /  10  /  An experiment in posting west OK weather alerts.
An experiment in posting west OK weather alerts.
I'm doing an experiment with the WestOKJournal Twitter feed. I found the Oklahoma feed NOAA provides for warnings and other notices.



How do I make this work? I use an old Windows 2K workstation sitting in the corner of my office. It runs batch files scheduled for various times a day. These batch files use cURL to access some ASP code on my web server to post information to Twitter.

Reference Notes:
  • NOAA Experimental XML Feeds and Web Displays of Watches, Warnings, and Advisories
  • NOAA Oklahoma CAP XML File
  • NOAA County-Public Forecast Zones Correlation File (filter on cap:geocode)
  • NOAA Products List File (filter on cap:events)
  • Common Alertings Protocol (CAP) is an non-proprietary standard data format for the interchange of hazard warning and reports.
  • Posting for each node in cap:info:
    • cap:area/cap:geocode (area number see forecast zones correlation file)
    • cap:area/cap:areaDesc (county name)
    • cap:event (see NOAA products list)
    • cap:headline
    • cap:web (link to full text of alert)
    • cap:effective (alert starts date/time)
    • cap:expires (alert ends date/time)
  • Twitter API
  • cURL (command line tool)
  • Filtering for counties: Beckham, Custer, Washita, and Roger Mills
  • Filtering for events: Tornado Warning, Severe Thunderstorm Warning, Flash Flood Warning, Blizzard Warning, Storm Warning, High Wind Warning, Dust Storm Warning, Ice Storm Warning, and Child Abduction Emergency. I might add Tornado and Thunderstorm Watches later.
Comments 
blog comments powered by Disqus
Old Comment System 
Had to make a few more tweaks to make this work correctly. Unfortunately I had to wait until there was sever weather to fix. Adjusting time, Wx service posting in GMT, adjusted to CDT. Also repeated notices of same product type are posted. Filtered that too. Adjusted script to run every 15 min.
Cool. Thanks for posting this info. I was curious as to what you were using to do this.