Skip to content

Commit

Permalink
Add realtime observation parsing and testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrleeman committed Aug 1, 2018
1 parent 5e7b937 commit b8e498c
Show file tree
Hide file tree
Showing 11 changed files with 6,062 additions and 15 deletions.
495 changes: 495 additions & 0 deletions siphon/simplewebservice/ndbc.py

Large diffs are not rendered by default.

792 changes: 792 additions & 0 deletions siphon/tests/fixtures/ndbc_realtime_cwind

Large diffs are not rendered by default.

362 changes: 362 additions & 0 deletions siphon/tests/fixtures/ndbc_realtime_dart

Large diffs are not rendered by default.

221 changes: 221 additions & 0 deletions siphon/tests/fixtures/ndbc_realtime_drift

Large diffs are not rendered by default.

268 changes: 268 additions & 0 deletions siphon/tests/fixtures/ndbc_realtime_ocean

Large diffs are not rendered by default.

86 changes: 86 additions & 0 deletions siphon/tests/fixtures/ndbc_realtime_rain
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
interactions:
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
User-Agent: [Siphon (0.7.0+38.g5e7b937.dirty)]
method: GET
uri: https://www.ndbc.noaa.gov/data/realtime2/BDVF1.rain
response:
body:
string: !!binary |
H4sIAAAAAAAAA3WcsW4jxxZEc38FAedCVc9MdTN8sNMNHTh3sIn8AGf++6d5I5LTw3sWiw0KQoPd
PBpRZ/vWr3/+ebv9+HH7/ffbz5+3z8/b7T+//fbHj19+/fef2+3zv7e//r39/Of2+fft68/n5y9N
Hjd9/fXN6036SvWh25QvkDfIDbnqXHfIB+Qd8kC+QQ6vX/D69f76+23xrb2fz5G/r3/k7+sf+XP9
Zcr9fj5H/n4+R/5+Pkf+fj5H/n4+R/7Ow5HDfgsejhz2W/Dw/7zg4chhvwUPRw77LXg4cthXwcmR
w75qTgScCDgRcKITJ3NecyLgRMCJgBMBJwJOBJwIOBFwIuBEwImAEwEnAk4EnOjJSfvY5hz2VXOi
mpN2rznZ82r9Pa/W33NYv+Rkz6tz2/Pq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0GglyDQSxDoJQj0EgR6CQL9A4H+gcD8fmB+
PzC///jwVuSltwzM7wfm9wPz+4H5/cD8fmB+PzC/H5jfD8zvB+b3A/P7gfn9wPx+YH4/ML8fmN8P
zO8H5vcD8/uB+f3A/P7jw3yRg7es5/cD8/uB+f3A/H5gfj8wvx+Y3w/M7wfm9wPz+4H5/cD8fmB+
PzC/H5jfD8zvB+b3A/P7gfn9wPx+YH4/8/z+6fNYPb+feX7/8vXV+vX8fmB+PzC/H5jfD8zvB+b3
A/P7gfn9wPx+YH4/ML8fmN8PzO8H5vcD8/tHDvsqOann9wPz+49f9oscvKXBW7q8L3rksH7NCXhL
g7c0eEuDtzR4S4O3NHhLg7c0eMv9X9hvzckATgZwMoCTAZwM4GQAJwM4AW9Zz+8H5vcD8/uB+f3A
/H5gfj8wvx+Y3w/M7wfm9wPz+4H5/cD8fmB+PzC/H5jfD8zvB+b0A3P6gTn9wJz+Qwa+8v8Bt89q
OH9hAAA=
headers:
Accept-Ranges: [bytes]
Cache-Control: [must-revalidate]
Connection: [close]
Content-Encoding: [gzip]
Content-Length: ['3083']
Content-Security-Policy: [frame-ancestors 'self']
Content-Type: [text/plain; charset=ISO-8859-1]
Date: ['Wed, 01 Aug 2018 15:29:47 GMT']
Last-Modified: ['Wed, 01 Aug 2018 14:51:27 GMT']
Server: [Apache]
Strict-Transport-Security: [max-age=31536000;]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
X-XSS-Protection: [1; mode=block]
status: {code: 200, message: OK}
version: 1
Loading

0 comments on commit b8e498c

Please sign in to comment.