forked from JeremyGrosser/noaaport
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
42 lines (37 loc) · 1.49 KB
/
README
File metadata and controls
42 lines (37 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Python EMWIN Stream Parser
--------------------------
This is a native python module that reads a socket connected to an EMWIN server and parses the stream into usable Packets that can be assembled into files using
the included FileAssembler.
emwin.py:
Implementation of the EMWIN protocol
download.py:
Example usage of the emwin python module that connects to an EMWIN server,
parses the data stream, assembles packets into files, and writes complete files
to /tmp/noaa
Usage
-----
$ git clone https://github.com/synack/python-emwin.git
Initialized empty Git repository in /home/synack/src/python-emwin/.git/
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 6 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (6/6), done.
$ cd python-emwin/
$ mkdir /tmp/noaa
$ python download.py
2011-02-19 17:32:43,974 emwin DEBUG XOBWNHUS.ZIS (3/7)
2011-02-19 17:32:45,279 emwin DEBUG MISDCPHN.TXT (1/1)
Writing /tmp/noaa/MISDCPHN.TXT
2011-02-19 17:32:46,563 emwin DEBUG XOBWNHUS.ZIS (4/7)
2011-02-19 17:32:47,873 emwin DEBUG XOBWNHUS.ZIS (5/7)
2011-02-19 17:32:49,171 emwin DEBUG XOBWNHUS.ZIS (6/7)
2011-02-19 17:32:50,466 emwin DEBUG XOBWNHUS.ZIS (7/7)
2011-02-19 17:32:51,764 emwin DEBUG RTPREVNV.ZIS (1/2)
2011-02-19 17:32:53,060 emwin DEBUG RTPREVNV.ZIS (2/2)
Writing /tmp/noaa/RTPREVNV.ZIS
2011-02-19 17:32:54,357 emwin DEBUG OPUCHSSC.ZIS (1/1)
References
----------
http://www.weather.gov/emwin/winpro.htm
http://www.inoaaport.net/
http://www.wxmesg.com/statusbyteservers.asp