Skip to content

Commit 66bb7aa

Browse files
committed
2 parents 9df79ec + 1be9d04 commit 66bb7aa

1 file changed

Lines changed: 9 additions & 20 deletions

File tree

README.md

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
11
# Emergency Alert System (EAS) Specific Area Message Encoding (SAME) Encoder
22

3-
During this Era of Our Perpetual 2020 COVID-Themed Lockdown, I assumed there'd be a bunch of emergency broadcasts sent over the FM airwaves giving us further
4-
directions, so I did what any responsible emergency-obsessed turbonerd would do and purchased a SAGE Alerting Systems EAS ENDEC (Encoder/Decoder).
5-
6-
[Here's a quick background on how EAS SAME headers work.](https://www.youtube.com/watch?v=Z5o1sfXXf9E)
7-
8-
During the late 90's / early 2000's, this is a device that would sit in the headend room of TV / FM / AM stations, listen for EAS SAME signals on neighboring
9-
stations, and, if the specified information matched the predefined filters, rebroadcast the emergency message on its local station.
10-
11-
Anyway, since I'm trying to flex my coding skills right now, I wrote a Python script that generates these tones! Tested and is correctly interpreted by my SAGE
12-
EAS ENDEC.
13-
14-
[YouTube demo!](https://www.youtube.com/watch?v=OVxHkMDX2F8)
15-
16-
# Important Note
3+
## Important Note
174

185
Please please please please PLEASE use this responsibly. Did you just buy an old ENDEC on eBay and want to put it through its paces? This is the script for you!
196

207
Don't use this to hack / exploit anything. Please use it accordingly.
218

22-
# Installation
9+
## Installation
2310
To Run: `python3 <location of same.py> <args>`
2411

2512
OR: `cd <directory of git folder>` THEN `python3 same.py <args>`
@@ -38,15 +25,13 @@ Install dependencies: Single command version: `pip3 install --upgrade pip && pip
3825
- scipy
3926
You should now be ready to run it.
4027

41-
# USAGE
28+
## USAGE
4229
[More about these perameters](https://en.wikipedia.org/wiki/Specific_Area_Message_Encoding#Header_format).
4330
For a more condenced version, check out [the readme of the dsame repo](https://github.com/cuppa-joe/dsame/blob/master/README.md)
4431
| --Argument | -A | Default | Example | Function |
4532
|-----------------|------|----------|---------|----------------------------------------------------------------------|
4633
| --playaudiolive | -pal | -1 | 1 | Plays audio with command. Warning: Loud. |
47-
---|
4834
| --attention | -as | 0 | 1 | 1 = single tone (1050hz), 2 = duel tone (853hz and 960hz) |
49-
---|
5035
| --attentionlength | -al | 8 | 1 | How many seconds to play the attention signal |
5136
| --code | -c | | | If you wanted to copy and paste a code string, you can do that here. |
5237
| --org | -o | WXR | PEP | The organization in the SAME code |
@@ -58,6 +43,10 @@ For a more condenced version, check out [the readme of the dsame repo](https://g
5843
| --issued | -i | now | 1100420 | Current date/time. DDDHHMM UTC format. (day is day of year out of 365 or 366). If left blank, it will be the current time. |
5944
| --callsign | -cs | KEAX/NWS | | Callsign of station broadcasting |
6045

61-
# Self-activating
46+
## Self-activating
6247
On may weather radios you can do something called self-activate, where you essentially feed your own audio instead of the radio audio into it. DO NOT transmit on the weather radio frequencies! A few notes: Make sure your radio is on channel 2. If it isn't working, adjust your volume until it sounds clear through the radio. If it still isn't working, change your SAME settings to any. The best way to do this is to have a mono 3.5mm jack to a single RCA connector. Plug the 3.5mm into your headphone jack and the RCA into the external antenna jack. There are a lot of other ways to do this with the PC port and the Ext. Alert port, but this seems to be the least work. Note: I have yet to test this.
63-
At some point I need to add the attention tone
48+
49+
## A note to creators:
50+
This is a good way to do cool things. I can see it being used in EAS scenerios and other cool projects.
51+
IF you use this for use in projects (eg; videos), I would appreciate credit via a link in description.
52+
I have seen a lot of similar things that only work on some platforms, so when I finally found something close to what I wanted in python, I forked it so I could improve on it. I just don't want others to have to have to search for hours to find how to do this kind of thing after seeing it in a video. I'm not going to do anything if you don't include a credit. I didn't write the code this is based on, and the specifcations are government documents. I just think that many people would appreciate knowing how to do what you did.

0 commit comments

Comments
 (0)