Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngerakines/deva
A command line utility to control elgato key lights.
https://github.com/ngerakines/deva
Last synced: about 1 month ago
JSON representation
A command line utility to control elgato key lights.
- Host: GitHub
- URL: https://github.com/ngerakines/deva
- Owner: ngerakines
- License: mit
- Created: 2020-04-18T19:46:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-18T21:48:06.000Z (over 4 years ago)
- Last Synced: 2024-06-20T00:32:34.739Z (6 months ago)
- Language: Go
- Size: 14.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# deva
A command line interface for Elgato Keylight devices.
# Usage
First, create a configuration directory.
$ mkdir -p ~/.config/deva/
Next, use the `keylight:discovery` subcommand to find your keylights.
$ deva keylight:discovery > ~/.config/deva/10-keylight.json
Use the `mode:meeting` subcommand to turn on your lights.
$ deva mode:meeting
Use the `mode:normal` subcommand to turn off your lights.
$ deva mode:normal
Use the `config:validate` subcommand to print merged configuration
## Streamdeck UI
Want to add it to streamdeck?
```json
{
"streamdeck_ui_version": 1,
"state": {
"your_device_id": {
"buttons": {
"0": {
"keys": "",
"write": "",
"text": "On Video",
"command": "/home/ngerakines/bin/deva mode:meeting --config /home/ngerakines/.config/deva/"
},
"1": {
"keys": "",
"write": "",
"text": "Off Video",
"command": "/home/ngerakines/bin/deva mode:normal --config /home/ngerakines/.config/deva/"
}
}
}
}
}
```# Configuration
This tool loads configuration from JSON files. The lookup order is:
1. The value of the `DEVA_CONFIG` environment variable
2. The value of the `--config` program argument.
3. The file ./deva.json
4. The file $HOME/.deva.json
5. The directory $HOME/.deva/
6. The directory $HOME/.config/deva/
7. The file /etc/deva.json
8. The directory /etc/deva/# License
MIT License
Copyright (c) 2020 Nick Gerakines