Moode Forum
Direct link to radiostation - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: Direct link to radiostation (/showthread.php?tid=2043)

Pages: 1 2


Direct link to radiostation - smolesen - 01-05-2020

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


RE: Direct link to radiostation - jonners - 01-05-2020

Put your stations in 'Favourites' or create a Playlist with them in?


RE: Direct link to radiostation - smolesen - 01-05-2020

(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


RE: Direct link to radiostation - CallMeMike - 01-06-2020

(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...


RE: Direct link to radiostation - TheOldPresbyope - 01-06-2020

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


RE: Direct link to radiostation - Tim Curtis - 01-06-2020

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



RE: Direct link to radiostation - TheOldPresbyope - 01-06-2020

Oh, duh. I forgot your api.

So one more way to skin a cat.

Regards,
Kent


RE: Direct link to radiostation - smolesen - 01-08-2020

(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


RE: Direct link to radiostation - DRONE7 - 01-08-2020

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 ?


RE: Direct link to radiostation - cereyanlimusiki - 01-08-2020

Can this be used on iOS Shortcuts so I can ask siri play specific radio?