https://github.com/gpenverne/chromecast-reset-volume
Reset volum of your chromecasts using custom presets
https://github.com/gpenverne/chromecast-reset-volume
chromecast chromecast-audio cli python
Last synced: about 2 months ago
JSON representation
Reset volum of your chromecasts using custom presets
- Host: GitHub
- URL: https://github.com/gpenverne/chromecast-reset-volume
- Owner: gpenverne
- License: mit
- Created: 2019-05-07T09:00:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-11T13:30:13.000Z (about 6 years ago)
- Last Synced: 2025-02-14T20:50:00.108Z (3 months ago)
- Topics: chromecast, chromecast-audio, cli, python
- Language: Python
- Homepage: https://gkdv.net
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simply reset volums on chromecasts
## Install
```bash
make install
```## Configuration
Open the ``config.py`` file, you will see:
```python
VOLUMES = {
'default': {
'123.123.123.123': 20.00,
'cuisine': 20.00,
'étagère': 20.00
}
}
```Each object in ``VOLUMES`` corresponds to a preset of several volumes.
Each key in a preset is the name of a chromecast, with volume percent to set as value.
You can put ip address instead of the chromecast name to avoid zeroconf scan time (in few words: it will be faster).## Usage
```bash
$ make apply
```## Specific preset
```bash
$ cli.py "groupName"
```## Server
You can launch your presets using an api endpoint (perfect for ifttt and google assistant for example ;)### Launch
```bash
$ server.py
```
### Config
Open the ``config.py`` file, you will see a ``SERVER_PORT``, you can customize as you want.### Usage
Simply go to ``http://your-server-ip:your-port/default`` (where defaut is the name of a preset).