Read the original article on GKDV
Sometimes, I tell to Google “Up the volume”, or “Down the volume” on one or several chromecast devices. But the next day, when I want to listen music again, the volume of each device does not match with my mood. I would love to reset all the volumes in few secondes, but I have to open the home application, and reset each device… Boring… With chromecast-reset-volume
I can now configure some presets to autoreset the volumes as it was previously: reset all in one cli command 🙂
What do you need
- 1 raspberry pi with python3
- chromecasts… (of course)
Get source files and install it
<span>$ </span>git clone https://github.com/gpenverne/chromecast-reset-volume<span>$ </span>make <span>install</span><span>$ </span>git clone https://github.com/gpenverne/chromecast-reset-volume <span>$ </span>make <span>install</span>$ git clone https://github.com/gpenverne/chromecast-reset-volume $ make install
Configure it!
Open the config.py
and customize your presets. For example:
<span>VOLUMES</span> <span>=</span> <span>{</span><span>'default'</span><span>:</span> <span>{</span><span>'123.123.123.123'</span><span>:</span> <span>0.5</span><span>,</span><span>'tv'</span><span>:</span> <span>0.4</span><span>,</span><span>'room'</span><span>:</span> <span>0.1</span><span>}</span><span>}</span><span>VOLUMES</span> <span>=</span> <span>{</span> <span>'default'</span><span>:</span> <span>{</span> <span>'123.123.123.123'</span><span>:</span> <span>0.5</span><span>,</span> <span>'tv'</span><span>:</span> <span>0.4</span><span>,</span> <span>'room'</span><span>:</span> <span>0.1</span> <span>}</span> <span>}</span>VOLUMES = { 'default': { '123.123.123.123': 0.5, 'tv': 0.4, 'room': 0.1 } }
You can write the chromecast name or its ip address (ip address will be faster).
Let’s the magic does the magic 🙂
<span>$ </span>make apply<span>$ </span>make apply$ make apply
And all your configured chromecasts volumes will be setted 🙂
暂无评论内容