Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Radio Station switching bug
#28
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:~ $
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Radio Station switching bug - by dad33 - 03-09-2022, 05:37 PM
RE: Radio Station switching bug - by DRONE7 - 03-09-2022, 08:02 PM
RE: Radio Station switching bug - by dad33 - 03-10-2022, 02:49 PM
RE: Radio Station switching bug - by DRONE7 - 03-10-2022, 07:43 PM
RE: Radio Station switching bug - by dad33 - 03-11-2022, 12:17 PM
RE: Radio Station switching bug - by DRONE7 - 03-11-2022, 11:39 PM
RE: Radio Station switching bug - by dad33 - 03-12-2022, 05:52 AM
RE: Radio Station switching bug - by DRONE7 - 03-12-2022, 06:59 AM
RE: Radio Station switching bug - by dad33 - 03-12-2022, 12:15 PM
RE: Radio Station switching bug - by Tim Curtis - 03-12-2022, 12:50 PM
RE: Radio Station switching bug - by dad33 - 03-12-2022, 02:36 PM
RE: Radio Station switching bug - by Tim Curtis - 03-12-2022, 06:44 PM
RE: Radio Station switching bug - by dad33 - 03-17-2022, 06:10 AM
RE: Radio Station switching bug - by DRONE7 - 03-17-2022, 05:43 PM
RE: Radio Station switching bug - by DRONE7 - 03-18-2022, 12:00 AM
RE: Radio Station switching bug - by dad33 - 03-18-2022, 09:46 AM
RE: Radio Station switching bug - by DRONE7 - 03-18-2022, 08:52 PM
RE: Radio Station switching bug - by dad33 - 03-19-2022, 06:40 PM
RE: Radio Station switching bug - by DRONE7 - 03-19-2022, 08:41 PM
RE: Radio Station switching bug - by dad33 - 03-20-2022, 07:54 AM
RE: Radio Station switching bug - by DRONE7 - 03-20-2022, 08:12 AM
RE: Radio Station switching bug - by Tim Curtis - 03-20-2022, 12:02 PM
RE: Radio Station switching bug - by dad33 - 03-20-2022, 12:09 PM
RE: Radio Station switching bug - by dad33 - 03-20-2022, 02:10 PM
RE: Radio Station switching bug - by Tim Curtis - 03-20-2022, 02:48 PM
RE: Radio Station switching bug - by dad33 - 03-21-2022, 09:40 AM
RE: Radio Station switching bug - by CallMeMike - 03-22-2022, 10:23 AM
RE: Radio Station switching bug - by pepitop - 04-11-2023, 07:42 PM
RE: Radio Station switching bug - by Tim Curtis - 04-11-2023, 08:36 PM
RE: Radio Station switching bug - by pepitop - 10-29-2023, 04:28 PM

Forum Jump: