Skip to content

Commit

Permalink
errata
Browse files Browse the repository at this point in the history
  • Loading branch information
SpudGunMan committed Dec 5, 2024
1 parent 61c5be1 commit bb051f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ The following example shell command will pipe rtl_sdr to alert.txt
rtl_fm -f 162425000 -s 22050 | multimon-ng -t raw -a EAS /dev/stdin | python eas_alert_parser.py
```

#### Newspaper on mesh
a newspaper could be built by external scripts. could use Ollama to compile text via news web pages and write news.txt

### Scheduler
In the config.ini enable the module
```ini
Expand Down
6 changes: 6 additions & 0 deletions etc/eas_alert_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
buff=[] # store messages for writing
seen=set()
pattern = re.compile(r'ZCZC.*?NWS-')

# alternate regex for parsing multimon-ng output
#reg = r"^.*?(NNNN|ZCZC)(?:-([A-Za-z0-9]{3})-([A-Za-z0-9]{3})-((?:-?[0-9]{6})+)\+([0-9]{4})-([0-9]{7})-(.{8})-)?.*?$"
#prog = re.compile(reg, re.MULTILINE)
#groups = prog.match(sameData).groups()

while True:
try:
# Handle piped input
Expand Down

0 comments on commit bb051f4

Please sign in to comment.