DEV Community

Grégoire
Grégoire

Posted on • Originally published at gkdv.net

2 1

Make sound volume presets for your chromecasts

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

$ git clone https://github.com/gpenverne/chromecast-reset-volume
$ make install

Configure it!

Open the config.py and customize your presets. For example:

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 :)

$ make apply

And all your configured chromecasts volumes will be setted :)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay