Moode Forum

Full Version: [IOS][SHORTCUTS]Radio Launcher
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've recently changed from Volumio to Moode. I use IOS shortcuts for manipulating my network player. 

I listen to radio and installed duracell80's radio management https://github.com/duracell80/MoodeRadio-Get package

1 of the things that software allows you to do is play a moode radio station using http/https as in this example 
Code:
http://moode/radio?type=cast&src=http://ice1.somafm.com/bootliquor-128-aac

 
I found an article https://www.imore.com/how-create-media-l...-shortcuts that  details in excruciating detail how to create an IOS shortcut that when run, pops up a list of Netflix TV programs to run - if you select for example "Stranger Things" the shortcut will open the relevant Netfilx page in safari. It can very easily be adapted to be a moode radio station launcher.
You can;
1. Download a copy of that shortcut;
2. Rename it;
3. Amend the dictionary list to contain a list of stations and their associated url's modified as per the code fragment above so for example Naim Radio's Url ;http://37.130.228.60:8090/ is http://moode/radio?type=cast&src=http://37.130.228.60:8090/
4. Run the shortcut - A list of stations appears;
5. Select the station you want;
6. Safari will send the url to moode and the station will start playing 
Your browser will be displaying the moode web interface. 
You can of course launch the shortcut via Siri. Siri will ask "Which one?" and then speak the name of each station in turn and await your response - when you do respond she will send the url appropriate to your response to moode and it will start playing.
Nice work.
Perhaps using the browser to send the required url to moOde isn't the best approach. I didn't really want my phone/ipad opening the moOde UI - I just wanted to change the station and listen to the music.

In the original shortcut that I download the last step was 
SAFARI 
Open URL's

An alternative it to use Curl in which case it will just send the url without opening Safari
To do so 
1. Delete the last step from the shortcut using the little x 
2. Type Curl in the "actions search box"
3. It will find "Get Contents of URL"
4. Select "Get Contents of URL"
5. Select Show More on the "Get Contents of URL" fragment and it will allow you to change the Curl method - I changed it to POST 

Your done - i am guessing that setting the Curl method to POST is the right thing to do.