reverse internet radio (only works, when internet is down)
- Python3
- Python lib pygame
- audio setup
- mp3 audio file(s) in subdir ./audio
- pip3 install pygame
- edit oidar.py and adjust:
- list of
critical_hosts
- adjust
tolerance
if needed to allow for one or more failing hosts without raising the alarm
- list of
- chmod 755 oidar.py
- test:
- ./oidar.py
- add oidar.py to cron
- Raspberry Pi
- LAN connection
- external speakers
- Raspbian (patching via cron-apt)
- Python script to detect internet connection
- $MP3 player software
- CC music Source
- checks connection to a set of network services
- ping targets
- 9.9.9.9
- etc.
- retrieve content via http maybe like this
- etc.?
- if a certain share of network checks fails, music plays. Loud music plays. Loud, irritating music plays.
- service needs to be checkable via network (eg via a checkmk check)