Thank you for your donation!


Direct link to radiostation
#1
Hi

Is there a way to link directly to a radiostation in moOde and have it play, without having to browse for the station.

TIA

/Søren
Reply
#2
Put your stations in 'Favourites' or create a Playlist with them in?
Reply
#3
(01-05-2020, 10:17 AM)jonners Wrote: Put your stations in 'Favourites' or create a Playlist with them in?

Don't see how it helps having it in favorites, still have to browse to favorites and click play....

What I really want, is to have HTTP links on my desktop for my few favorites 'Radio Stations'.... like a one-click play

/Søren
Reply
#4
(01-05-2020, 06:49 PM)smolesen Wrote:
(01-05-2020, 10:17 AM)jonners Wrote: Put your stations in 'Favourites' or create a Playlist with them in?

Don't see how it helps having it in favorites, still have to browse to favorites and click play....

What I really want, is to have HTTP links on my desktop for my few favorites 'Radio Stations'.... like a one-click play

/Søren

...so in other words you want to have a fully blown feature found in Windows, OSx and Linux environment as DESKTOP where one adds shortcuts of whatever one fancies to start working with.

In my humble opinion it's quite counter-productive to 'bloat' MoOde Player into an operating system as such...
Reply
#5
Yeah, I see this more as an IoT kind of thing.

One possibility: put the "few favorite" radio stations in a separate playlist, keeping track of the ordering. Let's call it MyRadios for this discussion.

Then, one way or another, send directly to mpd the following commands:


Code:
clear
load MyRadios
play <n>


where <n> = the position number of the desired entry in the playlist.

The commands could be sent via telnet (to port 6600 if default config), or via a local mpc client, or via netcat, or via whatever your pleasure for transmitting tcp packets. The IoT is chock-a-block with connective technologies.

So now the task is to gen up an app which does this and create desktop links for each of the favorite stations. Alternatively, one could imagine the moOde player's equivalent of the Amazon ordering buttons.

Of course the app could be made more complicated, like preserving the existing queue, working directly with the URIs, etc. 

Regards,
Kent
Reply
#6
MPD commands can be sent via

Code:
http://moode/command?cmd=

Example:

http://moode/command?cmd=stop

Volume commands via

Code:
http://moode/command?cmd=vol.sh

pi@rp3:~ $ /var/www/vol.sh --help
Usage: vol.sh [OPTION] [VOLUME]
Change the volume and update the knob.

With no OPTION or VOLUME, print the current volume.
With just VOLUME, set current volume to VOLUME.

 -up            VOLUME  value between 1 and 100
 -dn            VOLUME  value between 1 and 100
 -mute          mute or unmute the volume
 -restore       set volume to current knob level
 --version      print the program version
 --help         print this help text

Examples:

http://moode/command?cmd=vol.sh -up 1
http://moode/command?cmd=vol.sh -dn 1
http://moode/command?cmd=vol.sh 15
http://moode/command?cmd=vol.sh -mute
Reply
#7
Oh, duh. I forgot your api.

So one more way to skin a cat.

Regards,
Kent
Reply
#8
(01-06-2020, 01:31 PM)Tim Curtis Wrote: MPD commands can be sent via

Code:
http://moode/command?cmd=

Example:

http://moode/command?cmd=stop

Volume commands via

Code:
http://moode/command?cmd=vol.sh

pi@rp3:~ $ /var/www/vol.sh --help
Usage: vol.sh [OPTION] [VOLUME]
Change the volume and update the knob.

With no OPTION or VOLUME, print the current volume.
With just VOLUME, set current volume to VOLUME.

 -up            VOLUME  value between 1 and 100
 -dn            VOLUME  value between 1 and 100
 -mute          mute or unmute the volume
 -restore       set volume to current knob level
 --version      print the program version
 --help         print this help text

Examples:

http://moode/command?cmd=vol.sh -up 1
http://moode/command?cmd=vol.sh -dn 1
http://moode/command?cmd=vol.sh 15
http://moode/command?cmd=vol.sh -mute

Yes, it's something like that I'm looking for, something in the line of:

http://mymoode/command?cmd=playradio -station 'somefolder/somestation.pls'

can that be done?

/Søren
Reply
#9
Now that's interesting !!

Code:
http://<ipaddress>/command/?cmd=clear

Code:
http://<ipaddress>/command/?cmd=add http://relay3.slayradio.org:8000/
Code:
http://<ipaddress>/command/?cmd=play

Smile

How to run that all together ?
Reply
#10
Can this be used on iOS Shortcuts so I can ask siri play specific radio?
Reply


Forum Jump: