Controling Awox Striimsound, Striimlink, ans Striimlight Wifi

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Controling Awox Striimsound, Striimlink, ans Striimlight Wifi

Post by deennoo »

Awox is a french compagny who works on IOT buisness., mostly on BT device, they got some wifi device for sound Production.

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.html
It works ? OK lets go to a command line, and copy :

Code: Select all

curl -v -H "Content-Type: application/json" -X POST -d '{"msg":"hello i m domoticz"}' http://awoxip:34000/Player/Say.json
Hourra you can hear it !

Want 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.json
And copy script adresse on you action ON/OFF switch :





Now 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

Using Selector Switch you can run Play Pause Volume Play Preset Channel, or Play Custom URL.

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
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest