I’ve installed it, works decent but there’s definitely about a 15-20 second delay. The issue I have is that half my URLs don’t work. Is the good source to go to for internet station URLs?
@agenovese820 I got most of my Url’s by following the advice at this link
A bit fiddly but works well.
I am currently doing a re-work on the Device Handler and Piston which I’m hoping will speed things up a bit. Although I guess the delay is mostly down to internet.
As a teaser the new DTH will look like this on a tablet and similar on a phone
There will be a settings screen to enter Station Name and URL
I have that working OK and am now trying to get some sort of option added to the DTH for Action Tiles.
Looks very promising, looking forward to it.
I have re-worked my Radio Streams Device Handler to be more user friendly (to me anyway). It also has Action Tiles integration using the Music Player capability.
It still needs a webCoRE piston to work as all this does is offer a user interface in the SmartThings App and then send the chosen information to webCoRE which does the hard work.
If you have my original set up then as this is a fairly major change I suggest starting from scratch.
⦁ Download and install the Device Handler (It will then show as Internet Radio Stations)
⦁ Create a new device in My Devices and set it to use the new device handler. (I named mine Internet Radio)
⦁ Once the new device is created it appears as a Thing in SmartThings. Add the new device to the webCore and Action Tiles Smart Apps
This is how it looks on a Tablet (similar on Phone)
Volume is now a Slider as it fits in better with the ActionTiles implementation.
and the Settings screen
(Since the SmartThings App 2.4 update it is hard to get a consistent look for both a Phone and Tablet so i have done my best.)
All configuration is done in the SmartThings App using the device’s settings screen.
Simply enter a Name and Url for each of the eight stations.
The station name will be displayed on the main screen. Clicking any station name will then send the station name and Url to the webCoRE Piston to play the station.
The webCoRE piston will also displays details of status to the webCoRE Dashboard if you choose a Details/Tiles category
This is how it looks in Action Tiles
and with the Controls Option opened
Here is the Device Handler
Here is the Piston
In the Piston you need to change:
⦁ Music Player 1 to the name of the Device you created in the IDE. I called my device ‘Internet Radio’.
⦁ Music Player 2 to the name of your SmartThings connected Speaker.
I hope it works OK.
Edit 1
On the very first run of the piston Volume is 0 so you need to increase it.
Hi Kev, The revamp is absolute genius am so glad you re-wrote this, I can confirm it works with probably any DNLA driven speaker setup using a dnla media renderer in ST. I have two setups one being a Muzo Pebble and the other being a Neet Airstream DNLA receiver both are working fine. All I need to do now is sus out how to get it to play automatically my favorite station when i get in from work.based upon arrival.
Brilliant Thanks!
Thanks for the feedback @Scoggy. I am glad it all worked OK.
The fact you are able to confirm it also works with DLNA speakers is a definite bonus.
It should be easy to set up your favorite station when you get in from work based on your arrival using a webCore piston something like this
If Presence detected (whatever method you use)
then
with
Internet Radio ( or whatever you called it )
do
push3() ( or whatever number is the number of you favorite station.
That should then play the station.
Cheers Pal, I think the old version probably worked to be fair but after looking at the urls in the app I could see that they are not easy to resolve and i learned something tonight with https://absoluteradio.co.uk/listen/links/, by chance if you take one of these links from the site above, then paste the link into your browser it downloads a file that opens in vlc player if its installed. Here`s the magic when in VLC right mouse click on the track and select information look at the location field and put the url in the handset against the radio station and your on. They stations load pretty fast, the wife loves it : ) am loving this keep up the good work, most people wont realise what this can do… by the way ime Kev too LOL!
Good find on the Absolute Radio Url’s.
I have just updated mine and like you said they do open quicker.
Hi Kevin, Is it a bug or something with my config, To kill the radio stations i.e stop the radio station playing I have to use the mute button first then stop? by the way managed to knock up a piston that works a treat with arrival sensors, wife gets one station when she arrives and It switches to another when I arrive which is awesome, thanks for pointing me in the right direction.
I doubt not being able to stop the station steam is your config.
Right from the beginning when I started working on this I could not get the stream to stop using the Stop option that showed in webCoRE.
I assumed it was an issue with my Samsung R1 speaker not accepting the Stop command.
The only way I found to get it to stop was to have it Speak a message when I hit the stop button hence the Speak Text ‘Turning Off’’ in the piston.
It may be worth you having a play with the piston at the Case 9 part and see if your speakers will accept the Stop command or even maybe the Turn off
Cheers Pal,
Ill have a look and see if I can kill the stream, thanks for the reply, its definitely not the R1, here`s one that will make you laugh, because i had it on pause and have been playing with the arrival stuff in WCore, the sodding thing kicked off bleating out a radio station at 3 o clock this morning and woke the whole house up
Oops: WAF must have plummeted.
I had a look at the piston to try the Stop and Turn off options but they still didn’t work for me,
but I did notice that the piston is doubling up on the stop action using the original Case 9 code which is left over from before I did the Action Tiles integration and further down under the
’If Internet Radio’s switch changes to off.’
So just to be certain I paused the two 'with’s under Case 9 and everything still worked OK.
I should have spotted that Case 9 was redundant earlier but I missed it.
I’ve yet to install WebCoRE so haven’t tried your app. I’ve found “Stop” command doesn’t work using CoRE for Samsung speakers. As this seems permanent does it make sense to incorporate into the app already a TTS message “Turning off” to stop the stream?
I’m curious how it looks in ActionTiles, I see the Music Player tile with the name of the station which is very cool, but how do you change stations? Does each station have it’s own tile? Or do have to open the SmartThings app?
You’re right about the Stop command not working for Samsung speakers. I guess it’s a Sonos command that is not implemented by Samsung. The best way I found to stop the stream with my Samsung speaker was with a TTS using Speak Text ‘Turning off’.
so that is the option I used in the piston.
I did find you could use the Play Track command with a Url like https://s3.amazonaws.com/sonos-media/bell1.mp3 and that would work too but I preferred the Speak Text.
In Action Tiles you can use the Next and Previous buttons to change to the next or previous station looping through your 8 stations.
It is not ideal as some station Url’s seem to take longer than others to resolve and rapid clicking of next or previous buttons can result in long delays whilst webCoRE catches up but I couldn’t find a better option for changing stations without going down the 8 Virtual Switches route.
(Latest Piston and DTH for my Internet Radio are in Post 24 here)
Does anyone know how I can play an MP3 on my R3 stored on Google drive? When something happens for instance the doors open?
Thanks.
I’m using AT for this purpose added virtual buttons, and a piston similar to what @inpier has done.
My Piston
Using XX Speaker, play Track and Restore, then the path to your sound. Shouldnt that work?
This is Awesome!! Many thanks for sharing
This looks great. Bit stuck with my Sonos player though and not sure if I should expect it to work in the same way as the Samsung player? Everything seems to be work and the Tile in my Dashboard suggests the selected radio stream is working but I don’t get any sound. I’ve increased the volume as but looking in the Sonos app there is not source coming through that is until I hit Stop and then the stop.mp3 plays fine.
The logs of the piston shows a few incidents of ‘Piston waited at a semaphore for 512ms’ with increasing amounts of time showing, not sure if this is a fault?
I went with the url’s already in the DH but I also used one from the Absolute site directly but still no sound.
Any thoughts?
Solved it and now this works great with my Sonos speakers, really quick to respond to button press also