CLI tool to control your IoT gadgets.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
roomcomputer/README.md

51 lines
1.6 KiB

4 years ago
# Room-Computer
Room-Computer is a simple room controller and is basically a controller for your gadgets. *This is a work-in-progress* so keep in mind that more features will be added in the future. Check the [feature list](#features) to view all of the current supported things and stuff.
### Installation
git clone https://github.com/E-Almqvist/roomcomputer.git
This is written in python, so you will literally only have to clone this repository.
4 years ago
### Configuration
Create a copy of the file "default-config.py" and name it "config.py" then configure its contents to your needs.
#### Hue Light Controller
You can create presets in the "presets.py" file. Follow this syntax *(and Python syntax of course)*:
```python
PRESETS = {
"mypreset": {
"color": (178, 199, 255), # RGB, from 0-255
"brightness": 100 # from 0-255
},
}
```
4 years ago
### Usage
4 years ago
#### Hue Light Controller
4 years ago
--Help page--
'hue' : Display this help page
'hue light (index)' ... : Specify light target, from 1-3
'hue lights' ... : Specify all lights
--Commands--
'on'/'off' : Turn light(s) on/off
'switch' : Switch the light(s) power
'set ...'
'preset (preset ID)' : Set the preset (from presets.py)
'color (red) (green) (blue)' : Set the color, from 0-255
'brightness (brightness)' : Set the brightness, from 0-255
Examples:
'hue light 2 on' : Turn on light 2
'hue lights set color 255 255 255' : Set all lights colors to white
-----------------
For convenience, you can create an alias for the script file. Append this to your shells rc file:
alias hue="/path/to/the/cloned/repo/hue_remote.py"
<h3 id="features">Features</h3>
4 years ago
* Hue Light Controller *(hue_remote.py)*
4 years ago
And more to come!