noaa-alerts 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +17 -0
- data/.travis.yml +6 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +37 -0
- data/Rakefile +2 -0
- data/lib/alert.rb +20 -0
- data/lib/client.rb +31 -0
- data/lib/noaa-alerts.rb +6 -0
- data/lib/noaa-alerts/version.rb +3 -0
- data/noaa-alerts.gemspec +24 -0
- data/spec/fixtures/vcr_cassettes/Noaa/_initialize/Noaa_Alert/description/.yml +186 -0
- data/spec/fixtures/vcr_cassettes/Noaa/_initialize/Noaa_Alert/locations/.yml +186 -0
- data/spec/fixtures/vcr_cassettes/Noaa/_initialize/alerts/.yml +186 -0
- data/spec/noaa_alerts_spec.rb +27 -0
- metadata +120 -0
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Cameron Cundiff
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# Noaa::Alerts
|
2
|
+
|
3
|
+
A library for consuming and formatting NOAA National Weather Service alerts.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'noaa-alerts'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install noaa-alerts
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
require 'noaa-alerts'
|
22
|
+
noaa = Noaa::Client.new('ny')
|
23
|
+
|
24
|
+
puts noaa.alerts[0].description # => 'THE NATIONAL WEATHER SERVICE IN UPTON NY HAS ISSUED A\n* SEVERE THUNDERSTORM WARNING FOR...'
|
25
|
+
puts noaa.alerts[0].locations.join(', ') # => 'Rockland, Westchester'
|
26
|
+
|
27
|
+
## Requirements
|
28
|
+
|
29
|
+
Requires Ruby 1.9
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
1. Fork it
|
34
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
35
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
36
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
37
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/lib/alert.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require "noaa-alerts/version"
|
2
|
+
|
3
|
+
module Noaa
|
4
|
+
class Alert
|
5
|
+
attr_reader :description, :locations
|
6
|
+
|
7
|
+
def initialize(entry)
|
8
|
+
@description = ""
|
9
|
+
@locations = []
|
10
|
+
handle_entry(entry)
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
|
15
|
+
def handle_entry(entry)
|
16
|
+
@description = entry['info']['description']
|
17
|
+
@locations = entry['info']['area']['areaDesc'].split('; ')
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/client.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require "alert"
|
2
|
+
require "httparty"
|
3
|
+
|
4
|
+
module Noaa
|
5
|
+
class Client
|
6
|
+
attr_reader :alerts
|
7
|
+
|
8
|
+
def initialize(state)
|
9
|
+
@alerts = []
|
10
|
+
get_alerts(state)
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
|
15
|
+
def get_alerts(state)
|
16
|
+
catalog = HTTParty.get("http://alerts.weather.gov/cap/#{state}.php?x=0",
|
17
|
+
format: :xml)
|
18
|
+
handle_catalog(catalog)
|
19
|
+
end
|
20
|
+
|
21
|
+
def handle_catalog(catalog)
|
22
|
+
entries = catalog['feed']['entry']
|
23
|
+
entries = [entries] unless entries.kind_of?(Array)
|
24
|
+
entries.each do |entry|
|
25
|
+
item = HTTParty.get(entry['id'],
|
26
|
+
format: :xml)['alert']
|
27
|
+
@alerts << Noaa::Alert.new(item)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/noaa-alerts.rb
ADDED
data/noaa-alerts.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/noaa-alerts/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Cameron Cundiff"]
|
6
|
+
gem.email = ["ckundo@gmail.com"]
|
7
|
+
gem.description = %q{A Ruby library for consuming NOAA National Weather Service severe weather alerts.}
|
8
|
+
gem.summary = %q{Fetch and format feeds from the NOAA.}
|
9
|
+
gem.homepage = "https://github.com/ckundo/noaa-alerts"
|
10
|
+
|
11
|
+
gem.add_dependency("httparty", "~> 0.8.2")
|
12
|
+
|
13
|
+
gem.add_development_dependency("rake")
|
14
|
+
gem.add_development_dependency("rspec", "~> 2.9.0")
|
15
|
+
gem.add_development_dependency("webmock", "~> 1.8.7")
|
16
|
+
gem.add_development_dependency("vcr", "~> 2.2.2")
|
17
|
+
|
18
|
+
gem.files = `git ls-files`.split($\)
|
19
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
20
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
21
|
+
gem.name = "noaa-alerts"
|
22
|
+
gem.require_paths = ["lib"]
|
23
|
+
gem.version = Noaa::VERSION
|
24
|
+
end
|
@@ -0,0 +1,186 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://alerts.weather.gov/cap/ak.php?x=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Fri, 22 Jun 2012 16:00:38 GMT
|
17
|
+
Server:
|
18
|
+
- Apache/2.2.15 (Red Hat)
|
19
|
+
Cache-Control:
|
20
|
+
- max-age=90
|
21
|
+
Expires:
|
22
|
+
- Fri, 22 Jun 2012 16:02:08 GMT
|
23
|
+
Content-Length:
|
24
|
+
- '4473'
|
25
|
+
Connection:
|
26
|
+
- close
|
27
|
+
Content-Type:
|
28
|
+
- application/rss+xml
|
29
|
+
body:
|
30
|
+
encoding: US-ASCII
|
31
|
+
string: ! "<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>\n\n<!--\nThis
|
32
|
+
atom/xml feed is an index to active advisories, watches and warnings \nissued
|
33
|
+
by the National Weather Service. This index file is not the complete \nCommon
|
34
|
+
Alerting Protocol (CAP) alert message. To obtain the complete CAP \nalert,
|
35
|
+
please follow the links for each entry in this index. Also note the \nCAP
|
36
|
+
message uses a style sheet to convey the information in a human readable \nformat.
|
37
|
+
\ Please view the source of the CAP message to see the complete data \nset.
|
38
|
+
\ Not all information in the CAP message is contained in this index of \nactive
|
39
|
+
alerts.\n-->\n\n<feed\nxmlns = 'http://www.w3.org/2005/Atom'\nxmlns:cap =
|
40
|
+
'urn:oasis:names:tc:emergency:cap:1.1'\nxmlns:ha = 'http://www.alerting.net/namespace/index_1.0'\n>\n<!--
|
41
|
+
http-date = Fri, 22 Jun 2012 03:34:00 GMT -->\n<id>http://alerts.weather.gov/cap/ak.atom</id>\n<logo>http://alerts.weather.gov/images/xml_logo.gif</logo>\n<generator>NWS
|
42
|
+
CAP Server</generator>\n<updated>2012-06-22T07:34:00-08:00</updated>\n<author>\n<name>w-nws.webmaster@noaa.gov</name>\n</author>\n<title>Current
|
43
|
+
Watches, Warnings and Advisories for Alaska Issued by the National Weather
|
44
|
+
Service</title>\n<link href='http://alerts.weather.gov/cap/ak.atom'/>\n<entry>\n<id>http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB2893EB8.RedFlagWarning.124CB2974CC4AK.AFGRFWAFG.0393624c451d3a4acbae46d523e5d5e8</id>\n<updated>2012-06-22T07:34:00-08:00</updated>\n<published>2012-06-22T07:34:00-08:00</published>\n<author>\n<name>w-nws.webmaster@noaa.gov</name>\n</author>\n<title>Red
|
45
|
+
Flag Warning issued June 22 at 7:34AM AKDT until June 24 at 12:00AM AKDT by
|
46
|
+
NWS</title>\n<link href=\"http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB2893EB8.RedFlagWarning.124CB2974CC4AK.AFGRFWAFG.0393624c451d3a4acbae46d523e5d5e8\"/>\n<summary>...RED
|
47
|
+
FLAG WARNING IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT SATURDAY NIGHT FOR
|
48
|
+
LOW HUMIDITY FOR A PORTION OF THE NORTHERN INTERIOR... ...RED FLAG WARNING
|
49
|
+
IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT SATURDAY NIGHT FOR LOW HUMIDITY...
|
50
|
+
THE NATIONAL WEATHER SERVICE IN FAIRBANKS HAS ISSUED A RED FLAG</summary>\n<cap:event>Red
|
51
|
+
Flag Warning</cap:event>\n<cap:effective>2012-06-22T07:34:00-08:00</cap:effective>\n<cap:expires>2012-06-22T23:45:00-08:00</cap:expires>\n<cap:status>Actual</cap:status>\n<cap:msgType>Alert</cap:msgType>\n<cap:category>Met</cap:category>\n<cap:urgency>Expected</cap:urgency>\n<cap:severity>Severe</cap:severity>\n<cap:certainty>Likely</cap:certainty>\n<cap:areaDesc>Yukon
|
52
|
+
Flats and Surrounding Uplands</cap:areaDesc>\n<cap:geocode>\n<valueName>FIPS6</valueName>\n<value>002090
|
53
|
+
002290</value>\n<valueName>UGC</valueName>\n<value>AKZ220</value>\n</cap:geocode>\n<cap:parameter>\n<valueName>VTEC</valueName>\n<value>/X.NEW.PAFG.FW.W.0011.120622T2000Z-120624T0800Z/</value>\n</cap:parameter>\n</entry>\n<entry>\n<id>http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB27AB668.SpecialWeatherStatement.124CB2A56C00AK.AFCSPSAER.ad5cb657342cd6538fe3f951de13f78b</id>\n<updated>2012-06-21T12:10:00-08:00</updated>\n<published>2012-06-21T12:10:00-08:00</published>\n<author>\n<name>w-nws.webmaster@noaa.gov</name>\n</author>\n<title>Special
|
54
|
+
Weather Statement issued June 21 at 12:10PM AKDT by NWS</title>\n<link href=\"http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB27AB668.SpecialWeatherStatement.124CB2A56C00AK.AFCSPSAER.ad5cb657342cd6538fe3f951de13f78b\"/>\n<summary>...WIDESPREAD
|
55
|
+
SNOWMELT AROUND SOUTHCENTRAL ALASKA RESULTING IN ELEVATED WATER LEVELS ON
|
56
|
+
ALL AREA RIVERS... REASON FOR STATEMENT: WARM TEMPERATURES THIS WEEK HAVE
|
57
|
+
CAUSED SOUTHCENTRAL RIVERS AND STREAMS TO BECOME SWOLLEN WITH SNOWMELT. A
|
58
|
+
SIGNIFICANT SNOWPACK REMAINS IN THE UPPER ELEVATIONS DUE TO THE COOLER THAN
|
59
|
+
NORMAL SPRING.</summary>\n<cap:event>Special Weather Statement</cap:event>\n<cap:effective>2012-06-21T12:10:00-08:00</cap:effective>\n<cap:expires>2012-06-23T16:00:00-08:00</cap:expires>\n<cap:status>Actual</cap:status>\n<cap:msgType>Alert</cap:msgType>\n<cap:category>Met</cap:category>\n<cap:urgency>Expected</cap:urgency>\n<cap:severity>Minor</cap:severity>\n<cap:certainty>Observed</cap:certainty>\n<cap:areaDesc>Anchorage;
|
60
|
+
Copper River Basin; Matanuska Valley; Susitna Valley; Western Prince William
|
61
|
+
Sound</cap:areaDesc>\n<cap:geocode>\n<valueName>FIPS6</valueName>\n<value>002020
|
62
|
+
002050 002068 002122 002170 002240 002261</value>\n<valueName>UGC</valueName>\n<value>AKZ101
|
63
|
+
AKZ111 AKZ125 AKZ141 AKZ145</value>\n</cap:geocode>\n<cap:parameter>\n<valueName>VTEC</valueName>\n<value></value>\n</cap:parameter>\n</entry>\n</feed>\n"
|
64
|
+
http_version:
|
65
|
+
recorded_at: Fri, 22 Jun 2012 16:00:38 GMT
|
66
|
+
- request:
|
67
|
+
method: get
|
68
|
+
uri: http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB2893EB8.RedFlagWarning.124CB2974CC4AK.AFGRFWAFG.0393624c451d3a4acbae46d523e5d5e8
|
69
|
+
body:
|
70
|
+
encoding: US-ASCII
|
71
|
+
string: ''
|
72
|
+
headers: {}
|
73
|
+
response:
|
74
|
+
status:
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
Date:
|
79
|
+
- Fri, 22 Jun 2012 16:00:38 GMT
|
80
|
+
Server:
|
81
|
+
- Apache/2.2.15 (Red Hat)
|
82
|
+
Cache-Control:
|
83
|
+
- max-age=90
|
84
|
+
Expires:
|
85
|
+
- Fri, 22 Jun 2012 16:02:08 GMT
|
86
|
+
Content-Length:
|
87
|
+
- '3289'
|
88
|
+
Connection:
|
89
|
+
- close
|
90
|
+
Content-Type:
|
91
|
+
- text/xml
|
92
|
+
body:
|
93
|
+
encoding: US-ASCII
|
94
|
+
string: ! "<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>\n<?xml-stylesheet
|
95
|
+
href='http://alerts.weather.gov/cap/capatomproduct.xsl' type='text/xsl'?>\n\n<!--\nThis
|
96
|
+
atom/xml feed is an index to active advisories, watches and warnings \nissued
|
97
|
+
by the National Weather Service. This index file is not the complete \nCommon
|
98
|
+
Alerting Protocol (CAP) alert message. To obtain the complete CAP \nalert,
|
99
|
+
please follow the links for each entry in this index. Also note the \nCAP
|
100
|
+
message uses a style sheet to convey the information in a human readable \nformat.
|
101
|
+
\ Please view the source of the CAP message to see the complete data \nset.
|
102
|
+
\ Not all information in the CAP message is contained in this index of \nactive
|
103
|
+
alerts.\n-->\n\n<alert xmlns = 'urn:oasis:names:tc:emergency:cap:1.1'>\n\n<!--
|
104
|
+
http-date = Fri, 22 Jun 2012 03:34:00 GMT -->\n<identifier>NOAA-NWS-ALERTS-AK124CB2893EB8.RedFlagWarning.124CB2974CC4AK.AFGRFWAFG.0393624c451d3a4acbae46d523e5d5e8</identifier>\n<sender>w-nws.webmaster@noaa.gov</sender>\n<sent>2012-06-22T07:34:00-08:00</sent>\n<status>Actual</status>\n<msgType>Alert</msgType>\n<scope>Public</scope>\n<note>Alert
|
105
|
+
for Yukon Flats and Surrounding Uplands (Alaska) Issued by the National Weather
|
106
|
+
Service</note>\n<references></references>\n<info>\n<category>Met</category>\n<event>Red
|
107
|
+
Flag Warning</event>\n<urgency>Expected</urgency>\n<severity>Severe</severity>\n<certainty>Likely</certainty>\n<eventCode>\n<valueName>SAME</valueName>\n<value></value>\n</eventCode>\n<effective>2012-06-22T07:34:00-08:00</effective>\n<expires>2012-06-22T23:45:00-08:00</expires>\n<senderName>NWS
|
108
|
+
Fairbanks (Northern Alaska - Fairbanks)</senderName>\n<headline>Red Flag Warning
|
109
|
+
issued June 22 at 7:34AM AKDT until June 24 at 12:00AM AKDT by NWS Fairbanks</headline>\n<description>...RED
|
110
|
+
FLAG WARNING IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT\nSATURDAY NIGHT FOR
|
111
|
+
LOW HUMIDITY\nFOR A PORTION OF THE NORTHERN INTERIOR...\n...RED FLAG WARNING
|
112
|
+
IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT\nSATURDAY NIGHT FOR LOW HUMIDITY...\nTHE
|
113
|
+
NATIONAL WEATHER SERVICE IN FAIRBANKS HAS ISSUED A RED FLAG\nWARNING...WHICH
|
114
|
+
IS IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT\nSATURDAY NIGHT.\n* RELATIVE
|
115
|
+
HUMIDITY...15 PERCENT OR LOWER IN SOME SPOTS\n* 20 FT WINDS...LGT AND VARIABLE\n*
|
116
|
+
TIMING...LOWEST RH VALUES THIS AFTERNOON AND SATURDAY AFTERNOON.</description>\n<instruction>A
|
117
|
+
RED FLAG WARNING MEANS THAT CONDITIONS ARE OCCURRING OR WILL\nOCCUR WHICH
|
118
|
+
COULD LEAD TO THE DEVELOPMENT OF LARGE AND DANGEROUS\nFIRES. IT IS DIRECTED
|
119
|
+
TOWARD FIRE AGENCIES...AND THROUGH THEM...\nTO THE PUBLIC.\nPLEASE ADVISE
|
120
|
+
THE APPROPRIATE OFFICIALS OR FIRE CREWS IN THE\nFIELD OF THIS RED FLAG WARNING.</instruction>\n<parameter>\n<valueName>WMOHEADER</valueName>\n<value></value>\n</parameter>\n<parameter>\n<valueName>UGC</valueName>\n<value>AKZ220</value>\n</parameter>\n<parameter>\n<valueName>VTEC</valueName>\n<value>/X.NEW.PAFG.FW.W.0011.120622T2000Z-120624T0800Z/</value>\n</parameter>\n<parameter>\n<valueName>TIME...MOT...LOC</valueName>\n<value></value>\n</parameter>\n<area>\n<areaDesc>Yukon
|
121
|
+
Flats and Surrounding Uplands</areaDesc>\n<polygon></polygon>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002090</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002290</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ220</value>\n</geocode>\n</area>\n</info>\n</alert>"
|
122
|
+
http_version:
|
123
|
+
recorded_at: Fri, 22 Jun 2012 16:00:38 GMT
|
124
|
+
- request:
|
125
|
+
method: get
|
126
|
+
uri: http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB27AB668.SpecialWeatherStatement.124CB2A56C00AK.AFCSPSAER.ad5cb657342cd6538fe3f951de13f78b
|
127
|
+
body:
|
128
|
+
encoding: US-ASCII
|
129
|
+
string: ''
|
130
|
+
headers: {}
|
131
|
+
response:
|
132
|
+
status:
|
133
|
+
code: 200
|
134
|
+
message: OK
|
135
|
+
headers:
|
136
|
+
Date:
|
137
|
+
- Fri, 22 Jun 2012 16:00:38 GMT
|
138
|
+
Server:
|
139
|
+
- Apache/2.2.15 (Red Hat)
|
140
|
+
Cache-Control:
|
141
|
+
- max-age=90
|
142
|
+
Expires:
|
143
|
+
- Fri, 22 Jun 2012 16:02:08 GMT
|
144
|
+
Content-Length:
|
145
|
+
- '4223'
|
146
|
+
Connection:
|
147
|
+
- close
|
148
|
+
Content-Type:
|
149
|
+
- text/xml
|
150
|
+
body:
|
151
|
+
encoding: US-ASCII
|
152
|
+
string: ! "<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>\n<?xml-stylesheet
|
153
|
+
href='http://alerts.weather.gov/cap/capatomproduct.xsl' type='text/xsl'?>\n\n<!--\nThis
|
154
|
+
atom/xml feed is an index to active advisories, watches and warnings \nissued
|
155
|
+
by the National Weather Service. This index file is not the complete \nCommon
|
156
|
+
Alerting Protocol (CAP) alert message. To obtain the complete CAP \nalert,
|
157
|
+
please follow the links for each entry in this index. Also note the \nCAP
|
158
|
+
message uses a style sheet to convey the information in a human readable \nformat.
|
159
|
+
\ Please view the source of the CAP message to see the complete data \nset.
|
160
|
+
\ Not all information in the CAP message is contained in this index of \nactive
|
161
|
+
alerts.\n-->\n\n<alert xmlns = 'urn:oasis:names:tc:emergency:cap:1.1'>\n\n<!--
|
162
|
+
http-date = Thu, 21 Jun 2012 08:10:00 GMT -->\n<identifier>NOAA-NWS-ALERTS-AK124CB27AB668.SpecialWeatherStatement.124CB2A56C00AK.AFCSPSAER.ad5cb657342cd6538fe3f951de13f78b</identifier>\n<sender>w-nws.webmaster@noaa.gov</sender>\n<sent>2012-06-21T12:10:00-08:00</sent>\n<status>Actual</status>\n<msgType>Alert</msgType>\n<scope>Public</scope>\n<note>Alert
|
163
|
+
for Anchorage; Copper River Basin; Matanuska Valley; Susitna Valley; Western
|
164
|
+
Prince William Sound (Alaska) Issued by the National Weather Service</note>\n<references></references>\n<info>\n<category>Met</category>\n<event>Special
|
165
|
+
Weather Statement</event>\n<urgency>Expected</urgency>\n<severity>Minor</severity>\n<certainty>Observed</certainty>\n<eventCode>\n<valueName>SAME</valueName>\n<value></value>\n</eventCode>\n<effective>2012-06-21T12:10:00-08:00</effective>\n<expires>2012-06-23T16:00:00-08:00</expires>\n<senderName>NWS
|
166
|
+
Anchorage (Southern Alaska - Anchorage)</senderName>\n<headline>Special Weather
|
167
|
+
Statement issued June 21 at 12:10PM AKDT by NWS Anchorage</headline>\n<description>...WIDESPREAD
|
168
|
+
SNOWMELT AROUND SOUTHCENTRAL ALASKA RESULTING IN\nELEVATED WATER LEVELS ON
|
169
|
+
ALL AREA RIVERS...\nREASON FOR STATEMENT:\nWARM TEMPERATURES THIS WEEK HAVE
|
170
|
+
CAUSED SOUTHCENTRAL RIVERS AND\nSTREAMS TO BECOME SWOLLEN WITH SNOWMELT. A
|
171
|
+
SIGNIFICANT SNOWPACK\nREMAINS IN THE UPPER ELEVATIONS DUE TO THE COOLER THAN
|
172
|
+
NORMAL SPRING.\nWARM TEMPERATURES AND HIGH FREEZING LEVELS WILL PERSIST THROUGH\nSATURDAY
|
173
|
+
BEFORE A PATTERN CHANGE ON SUNDAY BRINGS A RETURN OF COOLER\nONSHORE FLOW.
|
174
|
+
\ RIVER LEVELS WILL CONTINUE TO RISE AND LIKELY CREST\nTHIS WEEKEND. ISOLATED
|
175
|
+
THUNDERSTORMS THURSDAY MAY CAUSE FURTHER\nRISES.\nEXPECTED IMPACTS:\nAT THIS
|
176
|
+
TIME...FLOODING IS NOT EXPECTED ALTHOUGH SOME RIVERS AND\nSTREAMS MAY APPROACH
|
177
|
+
BANKFULL OR EXPERIENCE VERY MINOR LOCAL FLOODING\nIN LOW LYING AREAS. WATER
|
178
|
+
LEVELS WILL BE HIGH ENOUGH TO CAUSE LOCAL\nBANK EROSION ESPECIALLY ALONG THE
|
179
|
+
MATANUSKA RIVER. RECREATIONAL\nENTHUSIASTS SHOULD EXERT CAUTION AND BE ALERT
|
180
|
+
FOR HIGH WATER.\nWHETHER YOU ARE DRIVING OR WALKING...IF YOU COME TO A FLOODED\nROAD...TURN
|
181
|
+
AROUND DON`T DROWN.</description>\n<instruction></instruction>\n<parameter>\n<valueName>WMOHEADER</valueName>\n<value></value>\n</parameter>\n<parameter>\n<valueName>UGC</valueName>\n<value>AKZ101-111-125-141-145</value>\n</parameter>\n<parameter>\n<valueName>VTEC</valueName>\n<value></value>\n</parameter>\n<parameter>\n<valueName>TIME...MOT...LOC</valueName>\n<value></value>\n</parameter>\n<area>\n<areaDesc>Anchorage;
|
182
|
+
Copper River Basin; Matanuska Valley; Susitna Valley; Western Prince William
|
183
|
+
Sound</areaDesc>\n<polygon></polygon>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002020</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002050</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002068</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002122</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002170</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002240</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002261</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ101</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ111</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ125</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ141</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ145</value>\n</geocode>\n</area>\n</info>\n</alert>"
|
184
|
+
http_version:
|
185
|
+
recorded_at: Fri, 22 Jun 2012 16:00:38 GMT
|
186
|
+
recorded_with: VCR 2.2.2
|
@@ -0,0 +1,186 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://alerts.weather.gov/cap/ak.php?x=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Fri, 22 Jun 2012 16:00:38 GMT
|
17
|
+
Server:
|
18
|
+
- Apache/2.2.15 (Red Hat)
|
19
|
+
Cache-Control:
|
20
|
+
- max-age=90
|
21
|
+
Expires:
|
22
|
+
- Fri, 22 Jun 2012 16:02:08 GMT
|
23
|
+
Content-Length:
|
24
|
+
- '4473'
|
25
|
+
Connection:
|
26
|
+
- close
|
27
|
+
Content-Type:
|
28
|
+
- application/rss+xml
|
29
|
+
body:
|
30
|
+
encoding: US-ASCII
|
31
|
+
string: ! "<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>\n\n<!--\nThis
|
32
|
+
atom/xml feed is an index to active advisories, watches and warnings \nissued
|
33
|
+
by the National Weather Service. This index file is not the complete \nCommon
|
34
|
+
Alerting Protocol (CAP) alert message. To obtain the complete CAP \nalert,
|
35
|
+
please follow the links for each entry in this index. Also note the \nCAP
|
36
|
+
message uses a style sheet to convey the information in a human readable \nformat.
|
37
|
+
\ Please view the source of the CAP message to see the complete data \nset.
|
38
|
+
\ Not all information in the CAP message is contained in this index of \nactive
|
39
|
+
alerts.\n-->\n\n<feed\nxmlns = 'http://www.w3.org/2005/Atom'\nxmlns:cap =
|
40
|
+
'urn:oasis:names:tc:emergency:cap:1.1'\nxmlns:ha = 'http://www.alerting.net/namespace/index_1.0'\n>\n<!--
|
41
|
+
http-date = Fri, 22 Jun 2012 03:34:00 GMT -->\n<id>http://alerts.weather.gov/cap/ak.atom</id>\n<logo>http://alerts.weather.gov/images/xml_logo.gif</logo>\n<generator>NWS
|
42
|
+
CAP Server</generator>\n<updated>2012-06-22T07:34:00-08:00</updated>\n<author>\n<name>w-nws.webmaster@noaa.gov</name>\n</author>\n<title>Current
|
43
|
+
Watches, Warnings and Advisories for Alaska Issued by the National Weather
|
44
|
+
Service</title>\n<link href='http://alerts.weather.gov/cap/ak.atom'/>\n<entry>\n<id>http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB2893EB8.RedFlagWarning.124CB2974CC4AK.AFGRFWAFG.0393624c451d3a4acbae46d523e5d5e8</id>\n<updated>2012-06-22T07:34:00-08:00</updated>\n<published>2012-06-22T07:34:00-08:00</published>\n<author>\n<name>w-nws.webmaster@noaa.gov</name>\n</author>\n<title>Red
|
45
|
+
Flag Warning issued June 22 at 7:34AM AKDT until June 24 at 12:00AM AKDT by
|
46
|
+
NWS</title>\n<link href=\"http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB2893EB8.RedFlagWarning.124CB2974CC4AK.AFGRFWAFG.0393624c451d3a4acbae46d523e5d5e8\"/>\n<summary>...RED
|
47
|
+
FLAG WARNING IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT SATURDAY NIGHT FOR
|
48
|
+
LOW HUMIDITY FOR A PORTION OF THE NORTHERN INTERIOR... ...RED FLAG WARNING
|
49
|
+
IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT SATURDAY NIGHT FOR LOW HUMIDITY...
|
50
|
+
THE NATIONAL WEATHER SERVICE IN FAIRBANKS HAS ISSUED A RED FLAG</summary>\n<cap:event>Red
|
51
|
+
Flag Warning</cap:event>\n<cap:effective>2012-06-22T07:34:00-08:00</cap:effective>\n<cap:expires>2012-06-22T23:45:00-08:00</cap:expires>\n<cap:status>Actual</cap:status>\n<cap:msgType>Alert</cap:msgType>\n<cap:category>Met</cap:category>\n<cap:urgency>Expected</cap:urgency>\n<cap:severity>Severe</cap:severity>\n<cap:certainty>Likely</cap:certainty>\n<cap:areaDesc>Yukon
|
52
|
+
Flats and Surrounding Uplands</cap:areaDesc>\n<cap:geocode>\n<valueName>FIPS6</valueName>\n<value>002090
|
53
|
+
002290</value>\n<valueName>UGC</valueName>\n<value>AKZ220</value>\n</cap:geocode>\n<cap:parameter>\n<valueName>VTEC</valueName>\n<value>/X.NEW.PAFG.FW.W.0011.120622T2000Z-120624T0800Z/</value>\n</cap:parameter>\n</entry>\n<entry>\n<id>http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB27AB668.SpecialWeatherStatement.124CB2A56C00AK.AFCSPSAER.ad5cb657342cd6538fe3f951de13f78b</id>\n<updated>2012-06-21T12:10:00-08:00</updated>\n<published>2012-06-21T12:10:00-08:00</published>\n<author>\n<name>w-nws.webmaster@noaa.gov</name>\n</author>\n<title>Special
|
54
|
+
Weather Statement issued June 21 at 12:10PM AKDT by NWS</title>\n<link href=\"http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB27AB668.SpecialWeatherStatement.124CB2A56C00AK.AFCSPSAER.ad5cb657342cd6538fe3f951de13f78b\"/>\n<summary>...WIDESPREAD
|
55
|
+
SNOWMELT AROUND SOUTHCENTRAL ALASKA RESULTING IN ELEVATED WATER LEVELS ON
|
56
|
+
ALL AREA RIVERS... REASON FOR STATEMENT: WARM TEMPERATURES THIS WEEK HAVE
|
57
|
+
CAUSED SOUTHCENTRAL RIVERS AND STREAMS TO BECOME SWOLLEN WITH SNOWMELT. A
|
58
|
+
SIGNIFICANT SNOWPACK REMAINS IN THE UPPER ELEVATIONS DUE TO THE COOLER THAN
|
59
|
+
NORMAL SPRING.</summary>\n<cap:event>Special Weather Statement</cap:event>\n<cap:effective>2012-06-21T12:10:00-08:00</cap:effective>\n<cap:expires>2012-06-23T16:00:00-08:00</cap:expires>\n<cap:status>Actual</cap:status>\n<cap:msgType>Alert</cap:msgType>\n<cap:category>Met</cap:category>\n<cap:urgency>Expected</cap:urgency>\n<cap:severity>Minor</cap:severity>\n<cap:certainty>Observed</cap:certainty>\n<cap:areaDesc>Anchorage;
|
60
|
+
Copper River Basin; Matanuska Valley; Susitna Valley; Western Prince William
|
61
|
+
Sound</cap:areaDesc>\n<cap:geocode>\n<valueName>FIPS6</valueName>\n<value>002020
|
62
|
+
002050 002068 002122 002170 002240 002261</value>\n<valueName>UGC</valueName>\n<value>AKZ101
|
63
|
+
AKZ111 AKZ125 AKZ141 AKZ145</value>\n</cap:geocode>\n<cap:parameter>\n<valueName>VTEC</valueName>\n<value></value>\n</cap:parameter>\n</entry>\n</feed>\n"
|
64
|
+
http_version:
|
65
|
+
recorded_at: Fri, 22 Jun 2012 16:00:38 GMT
|
66
|
+
- request:
|
67
|
+
method: get
|
68
|
+
uri: http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB2893EB8.RedFlagWarning.124CB2974CC4AK.AFGRFWAFG.0393624c451d3a4acbae46d523e5d5e8
|
69
|
+
body:
|
70
|
+
encoding: US-ASCII
|
71
|
+
string: ''
|
72
|
+
headers: {}
|
73
|
+
response:
|
74
|
+
status:
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
Date:
|
79
|
+
- Fri, 22 Jun 2012 16:00:38 GMT
|
80
|
+
Server:
|
81
|
+
- Apache/2.2.15 (Red Hat)
|
82
|
+
Cache-Control:
|
83
|
+
- max-age=90
|
84
|
+
Expires:
|
85
|
+
- Fri, 22 Jun 2012 16:02:08 GMT
|
86
|
+
Content-Length:
|
87
|
+
- '3289'
|
88
|
+
Connection:
|
89
|
+
- close
|
90
|
+
Content-Type:
|
91
|
+
- text/xml
|
92
|
+
body:
|
93
|
+
encoding: US-ASCII
|
94
|
+
string: ! "<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>\n<?xml-stylesheet
|
95
|
+
href='http://alerts.weather.gov/cap/capatomproduct.xsl' type='text/xsl'?>\n\n<!--\nThis
|
96
|
+
atom/xml feed is an index to active advisories, watches and warnings \nissued
|
97
|
+
by the National Weather Service. This index file is not the complete \nCommon
|
98
|
+
Alerting Protocol (CAP) alert message. To obtain the complete CAP \nalert,
|
99
|
+
please follow the links for each entry in this index. Also note the \nCAP
|
100
|
+
message uses a style sheet to convey the information in a human readable \nformat.
|
101
|
+
\ Please view the source of the CAP message to see the complete data \nset.
|
102
|
+
\ Not all information in the CAP message is contained in this index of \nactive
|
103
|
+
alerts.\n-->\n\n<alert xmlns = 'urn:oasis:names:tc:emergency:cap:1.1'>\n\n<!--
|
104
|
+
http-date = Fri, 22 Jun 2012 03:34:00 GMT -->\n<identifier>NOAA-NWS-ALERTS-AK124CB2893EB8.RedFlagWarning.124CB2974CC4AK.AFGRFWAFG.0393624c451d3a4acbae46d523e5d5e8</identifier>\n<sender>w-nws.webmaster@noaa.gov</sender>\n<sent>2012-06-22T07:34:00-08:00</sent>\n<status>Actual</status>\n<msgType>Alert</msgType>\n<scope>Public</scope>\n<note>Alert
|
105
|
+
for Yukon Flats and Surrounding Uplands (Alaska) Issued by the National Weather
|
106
|
+
Service</note>\n<references></references>\n<info>\n<category>Met</category>\n<event>Red
|
107
|
+
Flag Warning</event>\n<urgency>Expected</urgency>\n<severity>Severe</severity>\n<certainty>Likely</certainty>\n<eventCode>\n<valueName>SAME</valueName>\n<value></value>\n</eventCode>\n<effective>2012-06-22T07:34:00-08:00</effective>\n<expires>2012-06-22T23:45:00-08:00</expires>\n<senderName>NWS
|
108
|
+
Fairbanks (Northern Alaska - Fairbanks)</senderName>\n<headline>Red Flag Warning
|
109
|
+
issued June 22 at 7:34AM AKDT until June 24 at 12:00AM AKDT by NWS Fairbanks</headline>\n<description>...RED
|
110
|
+
FLAG WARNING IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT\nSATURDAY NIGHT FOR
|
111
|
+
LOW HUMIDITY\nFOR A PORTION OF THE NORTHERN INTERIOR...\n...RED FLAG WARNING
|
112
|
+
IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT\nSATURDAY NIGHT FOR LOW HUMIDITY...\nTHE
|
113
|
+
NATIONAL WEATHER SERVICE IN FAIRBANKS HAS ISSUED A RED FLAG\nWARNING...WHICH
|
114
|
+
IS IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT\nSATURDAY NIGHT.\n* RELATIVE
|
115
|
+
HUMIDITY...15 PERCENT OR LOWER IN SOME SPOTS\n* 20 FT WINDS...LGT AND VARIABLE\n*
|
116
|
+
TIMING...LOWEST RH VALUES THIS AFTERNOON AND SATURDAY AFTERNOON.</description>\n<instruction>A
|
117
|
+
RED FLAG WARNING MEANS THAT CONDITIONS ARE OCCURRING OR WILL\nOCCUR WHICH
|
118
|
+
COULD LEAD TO THE DEVELOPMENT OF LARGE AND DANGEROUS\nFIRES. IT IS DIRECTED
|
119
|
+
TOWARD FIRE AGENCIES...AND THROUGH THEM...\nTO THE PUBLIC.\nPLEASE ADVISE
|
120
|
+
THE APPROPRIATE OFFICIALS OR FIRE CREWS IN THE\nFIELD OF THIS RED FLAG WARNING.</instruction>\n<parameter>\n<valueName>WMOHEADER</valueName>\n<value></value>\n</parameter>\n<parameter>\n<valueName>UGC</valueName>\n<value>AKZ220</value>\n</parameter>\n<parameter>\n<valueName>VTEC</valueName>\n<value>/X.NEW.PAFG.FW.W.0011.120622T2000Z-120624T0800Z/</value>\n</parameter>\n<parameter>\n<valueName>TIME...MOT...LOC</valueName>\n<value></value>\n</parameter>\n<area>\n<areaDesc>Yukon
|
121
|
+
Flats and Surrounding Uplands</areaDesc>\n<polygon></polygon>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002090</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002290</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ220</value>\n</geocode>\n</area>\n</info>\n</alert>"
|
122
|
+
http_version:
|
123
|
+
recorded_at: Fri, 22 Jun 2012 16:00:38 GMT
|
124
|
+
- request:
|
125
|
+
method: get
|
126
|
+
uri: http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB27AB668.SpecialWeatherStatement.124CB2A56C00AK.AFCSPSAER.ad5cb657342cd6538fe3f951de13f78b
|
127
|
+
body:
|
128
|
+
encoding: US-ASCII
|
129
|
+
string: ''
|
130
|
+
headers: {}
|
131
|
+
response:
|
132
|
+
status:
|
133
|
+
code: 200
|
134
|
+
message: OK
|
135
|
+
headers:
|
136
|
+
Date:
|
137
|
+
- Fri, 22 Jun 2012 16:00:39 GMT
|
138
|
+
Server:
|
139
|
+
- Apache/2.2.15 (Red Hat)
|
140
|
+
Cache-Control:
|
141
|
+
- max-age=90
|
142
|
+
Expires:
|
143
|
+
- Fri, 22 Jun 2012 16:02:09 GMT
|
144
|
+
Content-Length:
|
145
|
+
- '4223'
|
146
|
+
Connection:
|
147
|
+
- close
|
148
|
+
Content-Type:
|
149
|
+
- text/xml
|
150
|
+
body:
|
151
|
+
encoding: US-ASCII
|
152
|
+
string: ! "<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>\n<?xml-stylesheet
|
153
|
+
href='http://alerts.weather.gov/cap/capatomproduct.xsl' type='text/xsl'?>\n\n<!--\nThis
|
154
|
+
atom/xml feed is an index to active advisories, watches and warnings \nissued
|
155
|
+
by the National Weather Service. This index file is not the complete \nCommon
|
156
|
+
Alerting Protocol (CAP) alert message. To obtain the complete CAP \nalert,
|
157
|
+
please follow the links for each entry in this index. Also note the \nCAP
|
158
|
+
message uses a style sheet to convey the information in a human readable \nformat.
|
159
|
+
\ Please view the source of the CAP message to see the complete data \nset.
|
160
|
+
\ Not all information in the CAP message is contained in this index of \nactive
|
161
|
+
alerts.\n-->\n\n<alert xmlns = 'urn:oasis:names:tc:emergency:cap:1.1'>\n\n<!--
|
162
|
+
http-date = Thu, 21 Jun 2012 08:10:00 GMT -->\n<identifier>NOAA-NWS-ALERTS-AK124CB27AB668.SpecialWeatherStatement.124CB2A56C00AK.AFCSPSAER.ad5cb657342cd6538fe3f951de13f78b</identifier>\n<sender>w-nws.webmaster@noaa.gov</sender>\n<sent>2012-06-21T12:10:00-08:00</sent>\n<status>Actual</status>\n<msgType>Alert</msgType>\n<scope>Public</scope>\n<note>Alert
|
163
|
+
for Anchorage; Copper River Basin; Matanuska Valley; Susitna Valley; Western
|
164
|
+
Prince William Sound (Alaska) Issued by the National Weather Service</note>\n<references></references>\n<info>\n<category>Met</category>\n<event>Special
|
165
|
+
Weather Statement</event>\n<urgency>Expected</urgency>\n<severity>Minor</severity>\n<certainty>Observed</certainty>\n<eventCode>\n<valueName>SAME</valueName>\n<value></value>\n</eventCode>\n<effective>2012-06-21T12:10:00-08:00</effective>\n<expires>2012-06-23T16:00:00-08:00</expires>\n<senderName>NWS
|
166
|
+
Anchorage (Southern Alaska - Anchorage)</senderName>\n<headline>Special Weather
|
167
|
+
Statement issued June 21 at 12:10PM AKDT by NWS Anchorage</headline>\n<description>...WIDESPREAD
|
168
|
+
SNOWMELT AROUND SOUTHCENTRAL ALASKA RESULTING IN\nELEVATED WATER LEVELS ON
|
169
|
+
ALL AREA RIVERS...\nREASON FOR STATEMENT:\nWARM TEMPERATURES THIS WEEK HAVE
|
170
|
+
CAUSED SOUTHCENTRAL RIVERS AND\nSTREAMS TO BECOME SWOLLEN WITH SNOWMELT. A
|
171
|
+
SIGNIFICANT SNOWPACK\nREMAINS IN THE UPPER ELEVATIONS DUE TO THE COOLER THAN
|
172
|
+
NORMAL SPRING.\nWARM TEMPERATURES AND HIGH FREEZING LEVELS WILL PERSIST THROUGH\nSATURDAY
|
173
|
+
BEFORE A PATTERN CHANGE ON SUNDAY BRINGS A RETURN OF COOLER\nONSHORE FLOW.
|
174
|
+
\ RIVER LEVELS WILL CONTINUE TO RISE AND LIKELY CREST\nTHIS WEEKEND. ISOLATED
|
175
|
+
THUNDERSTORMS THURSDAY MAY CAUSE FURTHER\nRISES.\nEXPECTED IMPACTS:\nAT THIS
|
176
|
+
TIME...FLOODING IS NOT EXPECTED ALTHOUGH SOME RIVERS AND\nSTREAMS MAY APPROACH
|
177
|
+
BANKFULL OR EXPERIENCE VERY MINOR LOCAL FLOODING\nIN LOW LYING AREAS. WATER
|
178
|
+
LEVELS WILL BE HIGH ENOUGH TO CAUSE LOCAL\nBANK EROSION ESPECIALLY ALONG THE
|
179
|
+
MATANUSKA RIVER. RECREATIONAL\nENTHUSIASTS SHOULD EXERT CAUTION AND BE ALERT
|
180
|
+
FOR HIGH WATER.\nWHETHER YOU ARE DRIVING OR WALKING...IF YOU COME TO A FLOODED\nROAD...TURN
|
181
|
+
AROUND DON`T DROWN.</description>\n<instruction></instruction>\n<parameter>\n<valueName>WMOHEADER</valueName>\n<value></value>\n</parameter>\n<parameter>\n<valueName>UGC</valueName>\n<value>AKZ101-111-125-141-145</value>\n</parameter>\n<parameter>\n<valueName>VTEC</valueName>\n<value></value>\n</parameter>\n<parameter>\n<valueName>TIME...MOT...LOC</valueName>\n<value></value>\n</parameter>\n<area>\n<areaDesc>Anchorage;
|
182
|
+
Copper River Basin; Matanuska Valley; Susitna Valley; Western Prince William
|
183
|
+
Sound</areaDesc>\n<polygon></polygon>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002020</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002050</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002068</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002122</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002170</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002240</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002261</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ101</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ111</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ125</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ141</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ145</value>\n</geocode>\n</area>\n</info>\n</alert>"
|
184
|
+
http_version:
|
185
|
+
recorded_at: Fri, 22 Jun 2012 16:00:39 GMT
|
186
|
+
recorded_with: VCR 2.2.2
|
@@ -0,0 +1,186 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://alerts.weather.gov/cap/ak.php?x=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Fri, 22 Jun 2012 16:00:37 GMT
|
17
|
+
Server:
|
18
|
+
- Apache/2.2.15 (Red Hat)
|
19
|
+
Cache-Control:
|
20
|
+
- max-age=90
|
21
|
+
Expires:
|
22
|
+
- Fri, 22 Jun 2012 16:02:07 GMT
|
23
|
+
Content-Length:
|
24
|
+
- '4473'
|
25
|
+
Connection:
|
26
|
+
- close
|
27
|
+
Content-Type:
|
28
|
+
- application/rss+xml
|
29
|
+
body:
|
30
|
+
encoding: US-ASCII
|
31
|
+
string: ! "<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>\n\n<!--\nThis
|
32
|
+
atom/xml feed is an index to active advisories, watches and warnings \nissued
|
33
|
+
by the National Weather Service. This index file is not the complete \nCommon
|
34
|
+
Alerting Protocol (CAP) alert message. To obtain the complete CAP \nalert,
|
35
|
+
please follow the links for each entry in this index. Also note the \nCAP
|
36
|
+
message uses a style sheet to convey the information in a human readable \nformat.
|
37
|
+
\ Please view the source of the CAP message to see the complete data \nset.
|
38
|
+
\ Not all information in the CAP message is contained in this index of \nactive
|
39
|
+
alerts.\n-->\n\n<feed\nxmlns = 'http://www.w3.org/2005/Atom'\nxmlns:cap =
|
40
|
+
'urn:oasis:names:tc:emergency:cap:1.1'\nxmlns:ha = 'http://www.alerting.net/namespace/index_1.0'\n>\n<!--
|
41
|
+
http-date = Fri, 22 Jun 2012 03:34:00 GMT -->\n<id>http://alerts.weather.gov/cap/ak.atom</id>\n<logo>http://alerts.weather.gov/images/xml_logo.gif</logo>\n<generator>NWS
|
42
|
+
CAP Server</generator>\n<updated>2012-06-22T07:34:00-08:00</updated>\n<author>\n<name>w-nws.webmaster@noaa.gov</name>\n</author>\n<title>Current
|
43
|
+
Watches, Warnings and Advisories for Alaska Issued by the National Weather
|
44
|
+
Service</title>\n<link href='http://alerts.weather.gov/cap/ak.atom'/>\n<entry>\n<id>http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB2893EB8.RedFlagWarning.124CB2974CC4AK.AFGRFWAFG.0393624c451d3a4acbae46d523e5d5e8</id>\n<updated>2012-06-22T07:34:00-08:00</updated>\n<published>2012-06-22T07:34:00-08:00</published>\n<author>\n<name>w-nws.webmaster@noaa.gov</name>\n</author>\n<title>Red
|
45
|
+
Flag Warning issued June 22 at 7:34AM AKDT until June 24 at 12:00AM AKDT by
|
46
|
+
NWS</title>\n<link href=\"http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB2893EB8.RedFlagWarning.124CB2974CC4AK.AFGRFWAFG.0393624c451d3a4acbae46d523e5d5e8\"/>\n<summary>...RED
|
47
|
+
FLAG WARNING IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT SATURDAY NIGHT FOR
|
48
|
+
LOW HUMIDITY FOR A PORTION OF THE NORTHERN INTERIOR... ...RED FLAG WARNING
|
49
|
+
IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT SATURDAY NIGHT FOR LOW HUMIDITY...
|
50
|
+
THE NATIONAL WEATHER SERVICE IN FAIRBANKS HAS ISSUED A RED FLAG</summary>\n<cap:event>Red
|
51
|
+
Flag Warning</cap:event>\n<cap:effective>2012-06-22T07:34:00-08:00</cap:effective>\n<cap:expires>2012-06-22T23:45:00-08:00</cap:expires>\n<cap:status>Actual</cap:status>\n<cap:msgType>Alert</cap:msgType>\n<cap:category>Met</cap:category>\n<cap:urgency>Expected</cap:urgency>\n<cap:severity>Severe</cap:severity>\n<cap:certainty>Likely</cap:certainty>\n<cap:areaDesc>Yukon
|
52
|
+
Flats and Surrounding Uplands</cap:areaDesc>\n<cap:geocode>\n<valueName>FIPS6</valueName>\n<value>002090
|
53
|
+
002290</value>\n<valueName>UGC</valueName>\n<value>AKZ220</value>\n</cap:geocode>\n<cap:parameter>\n<valueName>VTEC</valueName>\n<value>/X.NEW.PAFG.FW.W.0011.120622T2000Z-120624T0800Z/</value>\n</cap:parameter>\n</entry>\n<entry>\n<id>http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB27AB668.SpecialWeatherStatement.124CB2A56C00AK.AFCSPSAER.ad5cb657342cd6538fe3f951de13f78b</id>\n<updated>2012-06-21T12:10:00-08:00</updated>\n<published>2012-06-21T12:10:00-08:00</published>\n<author>\n<name>w-nws.webmaster@noaa.gov</name>\n</author>\n<title>Special
|
54
|
+
Weather Statement issued June 21 at 12:10PM AKDT by NWS</title>\n<link href=\"http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB27AB668.SpecialWeatherStatement.124CB2A56C00AK.AFCSPSAER.ad5cb657342cd6538fe3f951de13f78b\"/>\n<summary>...WIDESPREAD
|
55
|
+
SNOWMELT AROUND SOUTHCENTRAL ALASKA RESULTING IN ELEVATED WATER LEVELS ON
|
56
|
+
ALL AREA RIVERS... REASON FOR STATEMENT: WARM TEMPERATURES THIS WEEK HAVE
|
57
|
+
CAUSED SOUTHCENTRAL RIVERS AND STREAMS TO BECOME SWOLLEN WITH SNOWMELT. A
|
58
|
+
SIGNIFICANT SNOWPACK REMAINS IN THE UPPER ELEVATIONS DUE TO THE COOLER THAN
|
59
|
+
NORMAL SPRING.</summary>\n<cap:event>Special Weather Statement</cap:event>\n<cap:effective>2012-06-21T12:10:00-08:00</cap:effective>\n<cap:expires>2012-06-23T16:00:00-08:00</cap:expires>\n<cap:status>Actual</cap:status>\n<cap:msgType>Alert</cap:msgType>\n<cap:category>Met</cap:category>\n<cap:urgency>Expected</cap:urgency>\n<cap:severity>Minor</cap:severity>\n<cap:certainty>Observed</cap:certainty>\n<cap:areaDesc>Anchorage;
|
60
|
+
Copper River Basin; Matanuska Valley; Susitna Valley; Western Prince William
|
61
|
+
Sound</cap:areaDesc>\n<cap:geocode>\n<valueName>FIPS6</valueName>\n<value>002020
|
62
|
+
002050 002068 002122 002170 002240 002261</value>\n<valueName>UGC</valueName>\n<value>AKZ101
|
63
|
+
AKZ111 AKZ125 AKZ141 AKZ145</value>\n</cap:geocode>\n<cap:parameter>\n<valueName>VTEC</valueName>\n<value></value>\n</cap:parameter>\n</entry>\n</feed>\n"
|
64
|
+
http_version:
|
65
|
+
recorded_at: Fri, 22 Jun 2012 16:00:37 GMT
|
66
|
+
- request:
|
67
|
+
method: get
|
68
|
+
uri: http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB2893EB8.RedFlagWarning.124CB2974CC4AK.AFGRFWAFG.0393624c451d3a4acbae46d523e5d5e8
|
69
|
+
body:
|
70
|
+
encoding: US-ASCII
|
71
|
+
string: ''
|
72
|
+
headers: {}
|
73
|
+
response:
|
74
|
+
status:
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
Date:
|
79
|
+
- Fri, 22 Jun 2012 16:00:37 GMT
|
80
|
+
Server:
|
81
|
+
- Apache/2.2.15 (Red Hat)
|
82
|
+
Cache-Control:
|
83
|
+
- max-age=90
|
84
|
+
Expires:
|
85
|
+
- Fri, 22 Jun 2012 16:02:07 GMT
|
86
|
+
Content-Length:
|
87
|
+
- '3289'
|
88
|
+
Connection:
|
89
|
+
- close
|
90
|
+
Content-Type:
|
91
|
+
- text/xml
|
92
|
+
body:
|
93
|
+
encoding: US-ASCII
|
94
|
+
string: ! "<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>\n<?xml-stylesheet
|
95
|
+
href='http://alerts.weather.gov/cap/capatomproduct.xsl' type='text/xsl'?>\n\n<!--\nThis
|
96
|
+
atom/xml feed is an index to active advisories, watches and warnings \nissued
|
97
|
+
by the National Weather Service. This index file is not the complete \nCommon
|
98
|
+
Alerting Protocol (CAP) alert message. To obtain the complete CAP \nalert,
|
99
|
+
please follow the links for each entry in this index. Also note the \nCAP
|
100
|
+
message uses a style sheet to convey the information in a human readable \nformat.
|
101
|
+
\ Please view the source of the CAP message to see the complete data \nset.
|
102
|
+
\ Not all information in the CAP message is contained in this index of \nactive
|
103
|
+
alerts.\n-->\n\n<alert xmlns = 'urn:oasis:names:tc:emergency:cap:1.1'>\n\n<!--
|
104
|
+
http-date = Fri, 22 Jun 2012 03:34:00 GMT -->\n<identifier>NOAA-NWS-ALERTS-AK124CB2893EB8.RedFlagWarning.124CB2974CC4AK.AFGRFWAFG.0393624c451d3a4acbae46d523e5d5e8</identifier>\n<sender>w-nws.webmaster@noaa.gov</sender>\n<sent>2012-06-22T07:34:00-08:00</sent>\n<status>Actual</status>\n<msgType>Alert</msgType>\n<scope>Public</scope>\n<note>Alert
|
105
|
+
for Yukon Flats and Surrounding Uplands (Alaska) Issued by the National Weather
|
106
|
+
Service</note>\n<references></references>\n<info>\n<category>Met</category>\n<event>Red
|
107
|
+
Flag Warning</event>\n<urgency>Expected</urgency>\n<severity>Severe</severity>\n<certainty>Likely</certainty>\n<eventCode>\n<valueName>SAME</valueName>\n<value></value>\n</eventCode>\n<effective>2012-06-22T07:34:00-08:00</effective>\n<expires>2012-06-22T23:45:00-08:00</expires>\n<senderName>NWS
|
108
|
+
Fairbanks (Northern Alaska - Fairbanks)</senderName>\n<headline>Red Flag Warning
|
109
|
+
issued June 22 at 7:34AM AKDT until June 24 at 12:00AM AKDT by NWS Fairbanks</headline>\n<description>...RED
|
110
|
+
FLAG WARNING IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT\nSATURDAY NIGHT FOR
|
111
|
+
LOW HUMIDITY\nFOR A PORTION OF THE NORTHERN INTERIOR...\n...RED FLAG WARNING
|
112
|
+
IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT\nSATURDAY NIGHT FOR LOW HUMIDITY...\nTHE
|
113
|
+
NATIONAL WEATHER SERVICE IN FAIRBANKS HAS ISSUED A RED FLAG\nWARNING...WHICH
|
114
|
+
IS IN EFFECT FROM NOON TODAY TO MIDNIGHT AKDT\nSATURDAY NIGHT.\n* RELATIVE
|
115
|
+
HUMIDITY...15 PERCENT OR LOWER IN SOME SPOTS\n* 20 FT WINDS...LGT AND VARIABLE\n*
|
116
|
+
TIMING...LOWEST RH VALUES THIS AFTERNOON AND SATURDAY AFTERNOON.</description>\n<instruction>A
|
117
|
+
RED FLAG WARNING MEANS THAT CONDITIONS ARE OCCURRING OR WILL\nOCCUR WHICH
|
118
|
+
COULD LEAD TO THE DEVELOPMENT OF LARGE AND DANGEROUS\nFIRES. IT IS DIRECTED
|
119
|
+
TOWARD FIRE AGENCIES...AND THROUGH THEM...\nTO THE PUBLIC.\nPLEASE ADVISE
|
120
|
+
THE APPROPRIATE OFFICIALS OR FIRE CREWS IN THE\nFIELD OF THIS RED FLAG WARNING.</instruction>\n<parameter>\n<valueName>WMOHEADER</valueName>\n<value></value>\n</parameter>\n<parameter>\n<valueName>UGC</valueName>\n<value>AKZ220</value>\n</parameter>\n<parameter>\n<valueName>VTEC</valueName>\n<value>/X.NEW.PAFG.FW.W.0011.120622T2000Z-120624T0800Z/</value>\n</parameter>\n<parameter>\n<valueName>TIME...MOT...LOC</valueName>\n<value></value>\n</parameter>\n<area>\n<areaDesc>Yukon
|
121
|
+
Flats and Surrounding Uplands</areaDesc>\n<polygon></polygon>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002090</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002290</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ220</value>\n</geocode>\n</area>\n</info>\n</alert>"
|
122
|
+
http_version:
|
123
|
+
recorded_at: Fri, 22 Jun 2012 16:00:37 GMT
|
124
|
+
- request:
|
125
|
+
method: get
|
126
|
+
uri: http://alerts.weather.gov/cap/wwacapget.php?x=AK124CB27AB668.SpecialWeatherStatement.124CB2A56C00AK.AFCSPSAER.ad5cb657342cd6538fe3f951de13f78b
|
127
|
+
body:
|
128
|
+
encoding: US-ASCII
|
129
|
+
string: ''
|
130
|
+
headers: {}
|
131
|
+
response:
|
132
|
+
status:
|
133
|
+
code: 200
|
134
|
+
message: OK
|
135
|
+
headers:
|
136
|
+
Date:
|
137
|
+
- Fri, 22 Jun 2012 16:00:38 GMT
|
138
|
+
Server:
|
139
|
+
- Apache/2.2.15 (Red Hat)
|
140
|
+
Cache-Control:
|
141
|
+
- max-age=90
|
142
|
+
Expires:
|
143
|
+
- Fri, 22 Jun 2012 16:02:08 GMT
|
144
|
+
Content-Length:
|
145
|
+
- '4223'
|
146
|
+
Connection:
|
147
|
+
- close
|
148
|
+
Content-Type:
|
149
|
+
- text/xml
|
150
|
+
body:
|
151
|
+
encoding: US-ASCII
|
152
|
+
string: ! "<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>\n<?xml-stylesheet
|
153
|
+
href='http://alerts.weather.gov/cap/capatomproduct.xsl' type='text/xsl'?>\n\n<!--\nThis
|
154
|
+
atom/xml feed is an index to active advisories, watches and warnings \nissued
|
155
|
+
by the National Weather Service. This index file is not the complete \nCommon
|
156
|
+
Alerting Protocol (CAP) alert message. To obtain the complete CAP \nalert,
|
157
|
+
please follow the links for each entry in this index. Also note the \nCAP
|
158
|
+
message uses a style sheet to convey the information in a human readable \nformat.
|
159
|
+
\ Please view the source of the CAP message to see the complete data \nset.
|
160
|
+
\ Not all information in the CAP message is contained in this index of \nactive
|
161
|
+
alerts.\n-->\n\n<alert xmlns = 'urn:oasis:names:tc:emergency:cap:1.1'>\n\n<!--
|
162
|
+
http-date = Thu, 21 Jun 2012 08:10:00 GMT -->\n<identifier>NOAA-NWS-ALERTS-AK124CB27AB668.SpecialWeatherStatement.124CB2A56C00AK.AFCSPSAER.ad5cb657342cd6538fe3f951de13f78b</identifier>\n<sender>w-nws.webmaster@noaa.gov</sender>\n<sent>2012-06-21T12:10:00-08:00</sent>\n<status>Actual</status>\n<msgType>Alert</msgType>\n<scope>Public</scope>\n<note>Alert
|
163
|
+
for Anchorage; Copper River Basin; Matanuska Valley; Susitna Valley; Western
|
164
|
+
Prince William Sound (Alaska) Issued by the National Weather Service</note>\n<references></references>\n<info>\n<category>Met</category>\n<event>Special
|
165
|
+
Weather Statement</event>\n<urgency>Expected</urgency>\n<severity>Minor</severity>\n<certainty>Observed</certainty>\n<eventCode>\n<valueName>SAME</valueName>\n<value></value>\n</eventCode>\n<effective>2012-06-21T12:10:00-08:00</effective>\n<expires>2012-06-23T16:00:00-08:00</expires>\n<senderName>NWS
|
166
|
+
Anchorage (Southern Alaska - Anchorage)</senderName>\n<headline>Special Weather
|
167
|
+
Statement issued June 21 at 12:10PM AKDT by NWS Anchorage</headline>\n<description>...WIDESPREAD
|
168
|
+
SNOWMELT AROUND SOUTHCENTRAL ALASKA RESULTING IN\nELEVATED WATER LEVELS ON
|
169
|
+
ALL AREA RIVERS...\nREASON FOR STATEMENT:\nWARM TEMPERATURES THIS WEEK HAVE
|
170
|
+
CAUSED SOUTHCENTRAL RIVERS AND\nSTREAMS TO BECOME SWOLLEN WITH SNOWMELT. A
|
171
|
+
SIGNIFICANT SNOWPACK\nREMAINS IN THE UPPER ELEVATIONS DUE TO THE COOLER THAN
|
172
|
+
NORMAL SPRING.\nWARM TEMPERATURES AND HIGH FREEZING LEVELS WILL PERSIST THROUGH\nSATURDAY
|
173
|
+
BEFORE A PATTERN CHANGE ON SUNDAY BRINGS A RETURN OF COOLER\nONSHORE FLOW.
|
174
|
+
\ RIVER LEVELS WILL CONTINUE TO RISE AND LIKELY CREST\nTHIS WEEKEND. ISOLATED
|
175
|
+
THUNDERSTORMS THURSDAY MAY CAUSE FURTHER\nRISES.\nEXPECTED IMPACTS:\nAT THIS
|
176
|
+
TIME...FLOODING IS NOT EXPECTED ALTHOUGH SOME RIVERS AND\nSTREAMS MAY APPROACH
|
177
|
+
BANKFULL OR EXPERIENCE VERY MINOR LOCAL FLOODING\nIN LOW LYING AREAS. WATER
|
178
|
+
LEVELS WILL BE HIGH ENOUGH TO CAUSE LOCAL\nBANK EROSION ESPECIALLY ALONG THE
|
179
|
+
MATANUSKA RIVER. RECREATIONAL\nENTHUSIASTS SHOULD EXERT CAUTION AND BE ALERT
|
180
|
+
FOR HIGH WATER.\nWHETHER YOU ARE DRIVING OR WALKING...IF YOU COME TO A FLOODED\nROAD...TURN
|
181
|
+
AROUND DON`T DROWN.</description>\n<instruction></instruction>\n<parameter>\n<valueName>WMOHEADER</valueName>\n<value></value>\n</parameter>\n<parameter>\n<valueName>UGC</valueName>\n<value>AKZ101-111-125-141-145</value>\n</parameter>\n<parameter>\n<valueName>VTEC</valueName>\n<value></value>\n</parameter>\n<parameter>\n<valueName>TIME...MOT...LOC</valueName>\n<value></value>\n</parameter>\n<area>\n<areaDesc>Anchorage;
|
182
|
+
Copper River Basin; Matanuska Valley; Susitna Valley; Western Prince William
|
183
|
+
Sound</areaDesc>\n<polygon></polygon>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002020</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002050</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002068</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002122</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002170</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002240</value>\n</geocode>\n<geocode>\n<valueName>FIPS6</valueName>\n<value>002261</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ101</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ111</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ125</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ141</value>\n</geocode>\n<geocode>\n<valueName>UGC</valueName>\n<value>AKZ145</value>\n</geocode>\n</area>\n</info>\n</alert>"
|
184
|
+
http_version:
|
185
|
+
recorded_at: Fri, 22 Jun 2012 16:00:38 GMT
|
186
|
+
recorded_with: VCR 2.2.2
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'noaa-alerts'
|
2
|
+
require 'vcr'
|
3
|
+
|
4
|
+
VCR.configure do |c|
|
5
|
+
c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
|
6
|
+
c.hook_into :webmock
|
7
|
+
c.configure_rspec_metadata!
|
8
|
+
end
|
9
|
+
|
10
|
+
RSpec.configure do |c|
|
11
|
+
c.treat_symbols_as_metadata_keys_with_true_values = true
|
12
|
+
end
|
13
|
+
|
14
|
+
describe Noaa, :vcr do
|
15
|
+
describe ".initialize" do
|
16
|
+
subject { Noaa::Client.new("ak") }
|
17
|
+
|
18
|
+
its(:alerts) { should_not be_empty }
|
19
|
+
|
20
|
+
describe Noaa::Alert do
|
21
|
+
subject { Noaa::Client.new("ak").alerts.first }
|
22
|
+
|
23
|
+
its(:description) { should_not be_nil }
|
24
|
+
its(:locations) { should_not be_empty }
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: noaa-alerts
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Cameron Cundiff
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-06-22 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: httparty
|
16
|
+
requirement: &70245348749520 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.8.2
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70245348749520
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
requirement: &70245348749100 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70245348749100
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
requirement: &70245348748560 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.9.0
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70245348748560
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: webmock
|
49
|
+
requirement: &70245348748020 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.8.7
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70245348748020
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: vcr
|
60
|
+
requirement: &70245348747560 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 2.2.2
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70245348747560
|
69
|
+
description: A Ruby library for consuming NOAA National Weather Service severe weather
|
70
|
+
alerts.
|
71
|
+
email:
|
72
|
+
- ckundo@gmail.com
|
73
|
+
executables: []
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- .gitignore
|
78
|
+
- .travis.yml
|
79
|
+
- Gemfile
|
80
|
+
- LICENSE
|
81
|
+
- README.md
|
82
|
+
- Rakefile
|
83
|
+
- lib/alert.rb
|
84
|
+
- lib/client.rb
|
85
|
+
- lib/noaa-alerts.rb
|
86
|
+
- lib/noaa-alerts/version.rb
|
87
|
+
- noaa-alerts.gemspec
|
88
|
+
- spec/fixtures/vcr_cassettes/Noaa/_initialize/Noaa_Alert/description/.yml
|
89
|
+
- spec/fixtures/vcr_cassettes/Noaa/_initialize/Noaa_Alert/locations/.yml
|
90
|
+
- spec/fixtures/vcr_cassettes/Noaa/_initialize/alerts/.yml
|
91
|
+
- spec/noaa_alerts_spec.rb
|
92
|
+
homepage: https://github.com/ckundo/noaa-alerts
|
93
|
+
licenses: []
|
94
|
+
post_install_message:
|
95
|
+
rdoc_options: []
|
96
|
+
require_paths:
|
97
|
+
- lib
|
98
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
requirements: []
|
111
|
+
rubyforge_project:
|
112
|
+
rubygems_version: 1.8.16
|
113
|
+
signing_key:
|
114
|
+
specification_version: 3
|
115
|
+
summary: Fetch and format feeds from the NOAA.
|
116
|
+
test_files:
|
117
|
+
- spec/fixtures/vcr_cassettes/Noaa/_initialize/Noaa_Alert/description/.yml
|
118
|
+
- spec/fixtures/vcr_cassettes/Noaa/_initialize/Noaa_Alert/locations/.yml
|
119
|
+
- spec/fixtures/vcr_cassettes/Noaa/_initialize/alerts/.yml
|
120
|
+
- spec/noaa_alerts_spec.rb
|