Compare commits

..

1 commit

Author SHA1 Message Date
c342f4ec46 Update readmes 2019-03-26 10:48:05 +01:00

View file

@ -2,22 +2,20 @@
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 readmes inside the ruleset folders. See the readme inside the folder.
## 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,
the parameters should be replaced as described below. they should be replaced as described below.
Some rulesets also require memory sensors. Some rulesets also require memory sensors.
The `BASENAME` and `XX` parameters should be different for The `BASENAME` and `MAC` parameters should be different for
every instance of the ruleset. every configuration.
### Example ### Example
@ -58,8 +56,10 @@ 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" | \