There is a station URL checker in moodeutl but a bug is preventing it from working. Below is a command to fix the bug.
Code:
sudo sed -i 's/. SQLDB ./. SQLDB_PATH ./' /usr/local/bin/moodeutl
Then run moodeutl with -u or -U option.
Each station in the cfg_radio table is probed by attempting to connect to its URL and read 1K bytes of data. It takes a few minutes to complete. In the example below the ? means that the probe was unsuccessful. This can happen for the following reasons:
- Station has ceased operation and thus the URL is not valid anymore
- Station is OK but currently is offline or has issues with its streaming service
- Station is OK but the URL is not valid anymore
- Station is OK but the method used by the probe to connect to the URL is rejected by the station
- Station is OK but network or system issues are preventing the probe from working
Code:
pi@moode:~ $ moodeutl -U
Checking...
Id URL Station
8 ? Absolut Hot | http://stream.absolutradio.de/hot/mp3-128/radioplayer/
9 ? Absolut music XL | http://stream.absolutradio.de/hq/mp3-160/radioplayer/
10 ? Absolut Relax | http://stream.absolutradio.de/relax/mp3-160/radioplayer/
13 ? ArtSound FM 92.7 | http://119.15.96.188/stream2.mp3
187 ? SWR 2 | http://swr-swr2-live.cast.addradio.de/swr/swr2/live/mp3/256/stream.mp3
200 ? WBJC Baltimore 91.5 - Classical | http://wbjc-ice.streamguys1.com:80/live
219 ? ByteFM | https://bytefm-ice-edge-1106-fra-eco-cdn.cast.addradio.de/bytefm/main/high/stream.mp3
220 ? PRM - Prog Rock & Metal | http://shoutcastunlimited.com:8512
226 ? Dandelion Radio | http://stream.dandelionradio.com:9414
pi@moode:~ $
Help for moodeutl
Code:
pi@moode:~ $ moodeutl --help
Usage: moodeutl [OPTION]
Moode utility programs
With no OPTION print the help text and exit.
-a Print features availability
-A [add|rm N] Update features availability
-d Dump session file (requires sudo)
-D [var name] Delete session variable (requires sudo)
-e [filename] Export settings to [filename] or ./moodecfg-<timestamp>.ini
-i Import /boot/moodecfg.ini
-f Print supported audio formats
-F Print full alsacap info
-l Print moode log
-m Run system monitor
-o List audio overlays
-q Query sql database
-r Restart servers
-R Restart renderer [--name]
[bluetooth | airplay | spotify | squeezelite | roonbridge]
-s Print system info
-t Print last 10 lines of moode log and wait
-u Check radio station urls for playability
-U Check station urls, list only unplayable
--mpdlog Print MPD log
--mooderel Print moOde release
--revision Print the hardware revision
--version Print the program version
--help Print this help text
pi@moode:~ $