Thank you for your donation!


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


Solved: Radio Station switching bug
#21
Thats not the only one which doesn't work. When i switched around 15 favorites which come with moode,  sometimes stucking. After that you can restart, moode answers restarting but doesn't restart.
 It is stucking..

And a lot of radio station didn't work any more for example all BBC Radio stations.
Reply
#22
(03-18-2022, 09:46 AM)dad33 Wrote: Thats not the only one which doesn't work. When i switched around 15 favorites which come with moode,  sometimes stucking. After that you can restart, moode answers restarting but doesn't restart.
 It is stucking..

And a lot of radio station didn't work any more for example all BBC Radio stations.

*All* BBC stations? That would be very odd.

However, note that all the 320K versions of BBC radio stations are geo_fenced and will return a 403 error code to MPD if one attempts to play them from an IP address apparently outside the geo-fence.

So, here in the USA, I can play any of the regular BBC stations and none of the 320K BBC stations. A VPN could be used to cross the fence but I don't feel the need.

I'm out for the day, so the stickiness issue will have to wait.

Regards,
Kent
Reply
#23
(03-18-2022, 09:46 AM)dad33 Wrote: Thats not the only one which doesn't work. When i switched around 15 favorites which come with moode,  sometimes stucking. After that you can restart, moode answers restarting but doesn't restart.
 It is stucking..

And a lot of radio station didn't work any more for example all BBC Radio stations.

What is the model number of your fritzbox ?
----------
bob
Reply
#24
Kent is correct.. Im living in Germany and there you need vpn.
Fritzbox 6490 and now 6660.
That isn't the problem, 6490 3 years long with no problems. Since 2021 also problems.
I think it depence on the radio station urls you
play in moode. A lot of standard station work perfect and with switching.




[quote pid='40332' dateline='1647636735']
(03-18-2022, 09:46 AM)dad33 Wrote: Thats not the only one which doesn't work. When i switched around 15 favorites which come with moode,  sometimes stucking. After that you can restart, moode answers restarting but doesn't restart.
 It is stucking..

And a lot of radio station didn't work any more for example all BBC Radio stations.

What is the model number of your fritzbox ?
[/quote]
Reply
#25
Within the FritzBox 6660 media server there is an 'Internet Radio' option.
Do you  have this active for use with other devices that don't have that facility ?
----------
bob
Reply
#26
(03-19-2022, 08:41 PM)DRONE7 Wrote: Within the FritzBox 6660 media server there is an 'Internet Radio' option.
Do you  have this active for use with other devices that don't have that facility ?

No i never used this function. Why should i do? Moode is a perfect frontend.Which advantage
has this way to play via mediaserver within moode? Is it possible?
Reply
#27
(03-20-2022, 07:54 AM)dad33 Wrote:
(03-19-2022, 08:41 PM)DRONE7 Wrote: Within the FritzBox 6660 media server there is an 'Internet Radio' option.
Do you  have this active for use with other devices that don't have that facility ?

No i never used this function. Why should i do? Moode is a perfect frontend.

Just checking all possible avenues for incompatibility. :-)

Given that this thread has had to date 948 views and other than Kent's rogue (and probably unconnected) station anomaly, with no other users reporting similar experiences then the likelihood of a 'bug' is low and the problem is more probably connected with your hardware/VPN/WiFi.

You may wish to start with a new MoOde instance, an ethernet connection to your FritzBox and no VPN . If all is well there then add any of the former and see where the issue you report arises.
----------
bob
Reply
#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
#29
Thank you very much Tim.. I will check it.


@DRONE7

Good idea with fritzbox radio. I activated the Media browser and added some stations for test. In moode i activated upnp browser... but no fritzmediabrowser is displayed. Does it work with moode?
Reply
#30
@Tim Curtis
I copied the bug fix.
than moodeutl present this answer

pi@moodeLounge:~ $ moodeutl
PHP Parse error: syntax error, unexpected '.' in /usr/local/bin/mo
odeutl on line 72
Reply


Forum Jump: