Raspberry Pi で Philips Hue を操作する #2

Raspberry Pi から Philips Hue を操作するために書いた Python スクリプトの使い勝手がいまいちだったので、一から作り直してみた。ライブラリとして phue を利用する。コード例あり。