Volume button

Moderator: leecollings

Fatalyst
Posts: 2
Joined: Thursday 03 January 2019 13:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Volume button

Post by Fatalyst »

Hi guys don't want to make new topic for +- same thing. I have Domoticz on OrangePI, and I have Broadlink RM3 an Logitech Z5500 audio system. I'm looking for some ready solution for volume dimming. Best way to have an slider/dimmer, something like light dimmer to change volume via RF by Broadlink.
As example, to make an range ware i=0 =mute, and i=100 = maximal loudness. And when you change slider as example for 10 points, it will send 10x times signal from Broadlink. Can some body help me with it?
frompani
Posts: 1
Joined: Monday 21 January 2019 23:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Volume button

Post by frompani »

EDIT: forgot to say it work from 10 - 99 %

hi ,
like to share my solution ( i use alsamixer to set volume) :
virtual switch with slider (in my system : id=71)
on action run the script set_volume.sh:

pi@tana-rpi1:~/domoticz/scripts $ cat set_volume.sh

v=$(curl -s "http://192.168.10.181:8888/json.htm?typ ... d=71"|grep "Data"|rev |cut -d ":" -f1 |rev |cut -c2-3)
amixer -M sset 'PCM' $v%

hope this help someone
ciao
fab
Attachments
2.jpg
2.jpg (198.32 KiB) Viewed 1701 times
1.jpg
1.jpg (120.09 KiB) Viewed 1701 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest