Maybe a complete dumb question..
I am using a Squeebox Server (Works perfect in Domoticz). Now I wanna try to have my Alexa speak which song is played.
Speech works in Alexa and Domoticz. But the issue is that I have no idea how to get the playing song into a variable.
When I check the JSON (/json.htm?type=devices&rid=7) (LMS is IDX 7). I see that in data field there is the song. So domoticz must be aware of the song begin played.
Any idea's or guidance .. (I am not a big programmar.. stopped at Turbo Pascal ..)
- Spoiler: show
Code: Select all
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
[b] "Data" : "Dixie Chicks - Desire (1993)",[/b]
"Description" : "",
"DimmerType" : "none",
"Favorite" : 0,
"HardwareID" : 3,
"HardwareName" : "Logitech",
"HardwareType" : "Logitech Media Server",
"HardwareTypeVal" : 60,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "0000002",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2018-09-26 11:25:33",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 15,
"Name" : "Woonkamer",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",