galmonomonon alerts
parent
98e4d9fb3b
commit
a9e2442aec
|
@ -331,6 +331,9 @@ F/NAV CRC error, skipping
|
||||||
I/NAV CRC error, skipping
|
I/NAV CRC error, skipping
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Alerts
|
||||||
|
See the script `scripts/galmonmonmon` to check ground station status.
|
||||||
|
|
||||||
# Status
|
# Status
|
||||||
Three ground stations running.
|
Three ground stations running.
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,9 @@
|
||||||
# ./galmonmonmon --id=192 --sec=3600
|
# ./galmonmonmon --id=192 --sec=3600
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import os
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import time
|
from datetime import datetime
|
||||||
from datetime import datetime, date
|
|
||||||
|
|
||||||
# Live URL
|
# Live URL
|
||||||
observer_url=('https://galmon.eu/observers.json')
|
observer_url=('https://galmon.eu/observers.json')
|
||||||
|
@ -77,6 +77,9 @@ def observer_alert(observer_id, observer_owner, observer_sec):
|
||||||
print('ALERT: ', end='')
|
print('ALERT: ', end='')
|
||||||
print('Station ', observer_id, ', ', observer_owner, end='', sep='')
|
print('Station ', observer_id, ', ', observer_owner, end='', sep='')
|
||||||
print(', last seen', '{:.0f}'.format(observer_sec), 'seconds ago.')
|
print(', last seen', '{:.0f}'.format(observer_sec), 'seconds ago.')
|
||||||
|
# Put a shell command you want to run here, perhaps.
|
||||||
|
#os.system('echo OMG down | mail -s"Galmon alert" foo@barmail')
|
||||||
|
#os.system('/usr/local/bin/my-chat-alert-script.sh')
|
||||||
|
|
||||||
def observer_ok(observer_id, observer_owner, observer_sec):
|
def observer_ok(observer_id, observer_owner, observer_sec):
|
||||||
print('OK: ', end='')
|
print('OK: ', end='')
|
||||||
|
|
Loading…
Reference in New Issue