Compare commits

..

1 commit

Author SHA1 Message Date
6c48eeaf7f Update readmes 2019-03-26 11:01:29 +01:00

View file

@ -2,20 +2,22 @@
Each folder contains a set of rules that can be used with Philips Hue. Each folder contains a set of rules that can be used with Philips Hue.
**This is for geeks!** 😉
## Usage ## Usage
See the readme inside the folder. See the readmes inside the ruleset folders.
## Installation ## Installation
The JSON files are raw Hue API requests for maximum flexibility and portability. The JSON files are raw Hue API requests for maximum flexibility and portability.
Identifiers for lights and sensors are parameterized using uppercase letters. Identifiers for lights and sensors are parameterized using uppercase letters.
Hence, before submitting the configuration files to the bridge, Hence, before submitting the configuration files to the bridge,
they should be replaced as described below. the parameters should be replaced as described below.
Some rulesets also require memory sensors. Some rulesets also require memory sensors.
The `BASENAME` and `MAC` parameters should be different for The `BASENAME` and `XX` parameters should be different for
every configuration. every instance of the ruleset.
### Example ### Example
@ -56,10 +58,8 @@ for f in DimmerBed/*.rule.json; do cat "$f" | sed "$IDS" | curl "$PREFIX/rules"
### Advanced Example ### Advanced Example
Note that the installation always is the same command.
This example requires `jq` for fully automated installation. This example requires `jq` for fully automated installation.
```sh ```sh
install_sensor() { install_sensor() {
cat $1.sensor.json | sed "$IDS" | \ cat $1.sensor.json | sed "$IDS" | \