A CLI to interact with the Philips Hue API. This is just a pretext to play with different tools like zsh script, jq, REST APIs etc...
git clone git@github.com:FXHibon/domotic-hue-manager.git
cd ./domotic-hue-manager
# you'll need value correctly the 2 required fields in this json
cp auth.json.dist auth.json
chmod u+x ./hue-manager
./hue-manager
If everything goes well, you should see something like:
Well, there is a lot of things to be done obviously:
- Implement a simpler logger without
$LINENO
explicitly passed in every function as parameter 😅 - Implement basic interactions with the rooms, like switch on / off a room, because this tool is useless without this obviously
- Add Alfred Wokflow support
- Yes I know that there is already a workflow for this, but it depends on python2 and I really don't want to downgrade my python installation from version 3 to 2, which is the current recommanded solution (https://www.alfredapp.com/help/kb/python-2-monterey/)
- Refactorize the code in small functions
- Add tests