Playing Radio

Moderator: leecollings

Post Reply
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Playing Radio

Post by JuanUil »

Hi Folks,

A merry Christmas to you all!!
I want to make a selector switch to play radio through Domoticz.
Now I am testing to play radio but till now with no luck.
Searched the forum but could not find what I am looking for.
this is my testing script:

Code: Select all


commandArray = {}

if (devicechanged['Reserve2']=='On') then 
	openurl('http://icecast.omroep.nl/radio2-bb-mp3') 
	print ('Radio 2 speelt')
end

return commandArray
If anybody have a complete LUA script to play radio that would be very helpful :)
any help???
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Playing Radio

Post by JuanUil »

Nobody who can point me in the right direction?
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Playing Radio

Post by freijn »

To my (limited) knowledge the device you open the URL does not know what to do with it?
( or it must be windhoos ? )

the url must be fed into a player..

on a rapsberry :

https://www.raspberrypi.org/documentation/usage/audio/
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Playing Radio

Post by JuanUil »

Hi Freijn thnx for your reply.
I'm going to figure this out.
Would be nice if someone already have a complete solution.
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Playing Radio

Post by JuanUil »

no one with a complete solution? :) :shock:
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Playing Radio

Post by sincze »

I play radio using kodi :)
Domoticz just calls the kodi api and it will start playing radio(plugin) .
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: Playing Radio

Post by emme »

I use Volumio and recently a Samsung WAM device to play radio and control it from Domoticz

Domoticz itself cannot stream :)
ciao
M
The most dangerous phrase in any language is:
"We always done this way"
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest