From 459502e90a2f0d1ec8835c64c54c566d553aea17 Mon Sep 17 00:00:00 2001 From: joost witteveen Date: Mon, 21 Dec 2020 13:39:43 +0100 Subject: [PATCH] simple README.md --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..8c644a0 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +Simple python script to set colours of HUE lamps (via the bridge). +Author: joost witteveen (joosteto@gmail.com) + +Examples: + +Get a valid access code from the bridge: +1) press the button on the bridge +2) Run the following command: + python3 hue.py --getuser yourusername +3) The access code will be saved in the file 'accesscode', and used for next commands. + +Make all lamps as bright as possible, and green: +python3 hue.py --hue 2 --bri 1 + +Show json response for a '/lights/2' http GET request: +python3 hue.py --get /lights/2 + +Continuously check for long 'off' button press on switch id=4, and if +python3 hue.py --checklong0 4 + + + +More info about the HUE lamps: + +https://domoticproject.com/controlling-philips-hue-lights-with-raspberry-pi/