Add example configuration to README.md
Signed-off-by: Patrick Dohmen <dl4pd@darc.de>merge-requests/30/head
parent
6334d41c09
commit
a994f28f0d
33
README.md
33
README.md
|
@ -6,7 +6,8 @@ SatNOGS network. It uses code from the SatNOGS network scheduler. It requires
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
```
|
```bash
|
||||||
|
sudo apt-get install libxml2-dev libxslt1-dev
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -14,11 +15,39 @@ pip install -r requirements.txt
|
||||||
|
|
||||||
Copy the env-dist file to .env and set your legacy SatNOGS Network credentials.
|
Copy the env-dist file to .env and set your legacy SatNOGS Network credentials.
|
||||||
|
|
||||||
|
## Setup priority scheduling
|
||||||
|
|
||||||
|
The following commands will add a list consisting of all DUV, BPSK1k2, BPSK9k6, [G]MSK and [G]FSK transmitters into `priorities_37.txt`.
|
||||||
|
Please change the station id (here `37` - in the cache file and the list file name) to your correspending one!
|
||||||
|
|
||||||
|
```bash
|
||||||
|
awk '{if ($3>=80) print $0 }' /tmp/cache/transmitters_37.txt | grep -e "FSK" | awk '{printf("%s 1.0 %s\n",$1,$2)} > priorities_37.txt'
|
||||||
|
awk '{if ($3>=0) print $0 }' /tmp/cache/transmitters_37.txt | grep -e "BPSK1k2" | awk '{printf("%s 1.0 %s\n",$1,$2)} >> priorities_37.txt'
|
||||||
|
awk '{if ($3>=0) print $0 }' /tmp/cache/transmitters_37.txt | grep -e "BPSK9k6" | awk '{printf("%s 1.0 %s\n",$1,$2)} >> priorities_37.txt'
|
||||||
|
awk '{if ($3>=80) print $0 }' /tmp/cache/transmitters_37.txt | grep -e "MSK" | awk '{printf("%s 1.0 %s\n",$1,$2)} >> priorities_37.txt'
|
||||||
|
sort -n -k 4 /tmp/cache/transmitters_37.txt | grep -e "DUV" | awk '{printf("%s 1.0 %s\n",$1,$2)} >> priorities_37.txt'
|
||||||
|
```
|
||||||
|
|
||||||
|
## Add ad cron-job
|
||||||
|
|
||||||
|
Start editing your default user's cron (select your preferred editor):
|
||||||
|
```bash
|
||||||
|
crontab -e
|
||||||
|
```
|
||||||
|
|
||||||
|
Add a line like this - execute the scheduling script on each full hour:
|
||||||
|
```bash
|
||||||
|
0 */1 * * * <path_to_auto_scheduler>/schedule_single_station.py -s <station_id> -d 1.2 -P <path_to_priority_list>/<priority_file>.txt -f -z
|
||||||
|
```
|
||||||
|
|
||||||
|
Omit the `-f` option to also fill in the gaps, but be aware if using a rotator setup! This will wear-out your Rotator very quickly!
|
||||||
|
Add `-w 60` for a delay if you want to give your rotator a a bit of time (60 s) to reset or home.
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
The following command will list all available command-line arguments:
|
The following command will list all available command-line arguments:
|
||||||
```
|
```bash
|
||||||
./schedule_single_station.py --help
|
./schedule_single_station.py --help
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ def main():
|
||||||
action="store_true")
|
action="store_true")
|
||||||
parser.add_argument("-P",
|
parser.add_argument("-P",
|
||||||
"--priorities",
|
"--priorities",
|
||||||
help="File with transmitter priorities. Should have" +
|
help="File with transmitter priorities. Should have " +
|
||||||
"columns of the form |NORAD priority UUID| like |43017 0.9" +
|
"columns of the form |NORAD priority UUID| like |43017 0.9" +
|
||||||
" KgazZMKEa74VnquqXLwAvD|. Priority is fractional, one transmitter " +
|
" KgazZMKEa74VnquqXLwAvD|. Priority is fractional, one transmitter " +
|
||||||
"per line.",
|
"per line.",
|
||||||
|
|
Loading…
Reference in New Issue