Commit Briefs

57321944ba mischa

missing bracket (main)


b7340d5827 mischa

added README.md


1c97f7cec1 mischa

minor flag change in help, -h to -c (climate)


61fef9f3fb mischa

remove map()



b4743f94c2 mischa

remove commented python code


53808b4295 mischa

changed heat to climate


ff92d10998 mischa

re-wording of -h


2662ff9bc2 mischa

added -h switch and example


7f68ca2a7a mischa

added tempurature


Branches

Tags

This repository contains no tags

Tree

.gitignorecommits | blame
README.mdcommits | blame
add-newdeveloper.py*commits | blame
daylight-trigger.py*commits | blame
get-groups.py*commits | blame
get-id.py*commits | blame
get-lights.py*commits | blame
get-rules.py*commits | blame
get-sensors.py*commits | blame
groupctl.py*commits | blame
hue.confcommits | blame
huectl.pl*commits | blame
lightctl.py*commits | blame
temperature.py*commits | blame
wrapper-sensors-battery.sh*commits | blame

README.md

### Hue API Scripts

All the Python scripts are no longer being worked on and has been replaced by a single Perl script.

The script is [huectl.pl](https://git.high5.nl/hue/tree/huectl.pl) together with [hue.conf](https://git.high5.nl/hue/tree/hue.conf).

	$ ./huectl.pl                   
	Usage: hue/huectl.pl bridge-name [-t type] [-i id] [-s sensor] [-b percent] [-a action] [-v] [-d] [-p]
	Options:
	bridge-name    as defined in [HOME]./hue.conf or [HOME]./.hue.conf or /etc/hue.conf
	-t | --type    [ lights | sensors | groups | all | trigger ] (default: lights)
	-i | --id      light-id
	-s | --sensor  sensor-id
	-b | --battery percent of battery level to report on, only relevant with sensors
	-c | --climate show temperature of sensors in C, only relevant with sensors
	-a | --action  [ on | off | state | bright | relax | morning | dimmed | evening | nightlight ] (default: state)
	-v | --verbose  
	-d | --debug   raw JSON output
	-p | --pretty  pretty JSON output

	Command examples:
	hue/huectl.pl bridge1
		Displays all lights of bridge1
	hue/huectl.pl bridge1 -i 8
		Check for state of light-id 8
	hue/huectl.pl bridge2 -t lights -i 8 -a bright
		Turn on light-id 8 with the scene bright
	hue/huectl.pl bridge2 -t trigger -i 8 -s 34 -a evening
		Check for 'dark' state of sensor-id 34, turn on light-id 8 with the scene evening
	hue/huectl.pl bridge1 -t sensors -c
		Displays temperature of all sensors in C

	Config example:
	# huectl,pl config file locations:
	# ~/hue.conf, ~/.hue.conf, /etc/hue.conf, ./.hue.conf, ./hue.conf
	[bridge1]
	ip = 192.168.100.101
	token = bridge1token
	[bridge2]
	ip = 192.168.100.102
	token = bridge2token