About sound, product are good quality, not the cheapest in the world, but android and ios app works like a charme.
They provid TTS who can be useful for those who want a speaking Domoticz.
The game here is to control the Audio parts, until Domoticz doesn't inclued as a native part DLNA protocole, we have to this via CURL and SH script.
First job is to find your Awox IP
The when you got it you can browse on your extra control panel runing
Code: Select all
http://awoxip:34000/dashboard/player.htmlCode: Select all
curl -v -H "Content-Type: application/json" -X POST -d '{"msg":"hello i m domoticz"}' http://awoxip:34000/Player/Say.jsonWant to hear it each time a switch is ON ? You just have to put your command line on a sh script
Code: Select all
#!/bin/bash
curl -v -H "Content-Type: application/json" -X POST -d '{"msg":"text que vous voulez faire dire"}' http://ipdevotreenceinte:34000/Player/Say.jsonNow lets play with other fonction
Code: Select all
Play :
curl -v -H "Content-Type: application/json" -X POST -d '{"action":"play"}' http://ipdelastriimsound:34000/Player/PlayPause.json
Pause :
curl -v -H "Content-Type: application/json" -X POST -d '{"action":"pause"}' http://ipdelastriimsound:34000/Player/PlayPause.json
Stop :
curl -v -H "Content-Type: application/json" -X POST -d '{"action":"stop"}' http://ipdelastriimsound:34000/Player/PlayPause.json
Play Preset :
Preset 1 :
curl -v -H "Content-Type: application/json" -X POST -d '{"id":1}' http://ipdelastriimsound:34000/Player/PlayPreset.json
Preset 2 :
curl -v -H "Content-Type: application/json" -X POST -d '{"id":2}' http://ipdelastriimsound:34000/Player/PlayPreset.json
Preset 3 :
curl -v -H "Content-Type: application/json" -X POST -d '{"id":3}' http://ipdelastriimsound:34000/Player/PlayPreset.json
Preset 4 :
curl -v -H "Content-Type: application/json" -X POST -d '{"id":4}' http://ipdelastriimsound:34000/Player/PlayPreset.json
Preset 5 :
curl -v -H "Content-Type: application/json" -X POST -d '{"id":5}' http://ipdelastriimsound:34000/Player/PlayPreset.json
Set Volume :
Where 40 is the Volume % you want
curl -v -H "Content-Type: application/json" -X POST -d '{"level":40}' http://ipdelastriimsound:34000/Mixer/Capability/Volume.json
Source Selecting :
Set source
curl -v -H "Content-Type: application/json" -X POST -d '{"id":0}' http://ipdelastriimsound:34000/Player/SourceSelection.json
Source ID Number
0 = DLNA/WIFI
1 = Bluetooth
2 = Line In
3 = USB
Play a Streaming url :
curl -v -H "Content-Type: application/json" -X POST -d '{"uri":"urlyouwanttolisten"}' http://ipdelastriimsound:34000/Player/PlayURI.json
Of course an API exist and can be use to develop this natively on Domoticz, this can make it more easy to run, but for the moment that a good trick isn't it ?
More Pictures and original thread in french here : http://easydomoticz.com/forum/viewtopic.php?f=9&t=2161