This R package implements a thin wrapper around the Philips Hue API. It let's you control your Hue lights from R.
You can change the color of any lamp with set_light_color()
,
set it to a specific color temperature and brightness with set_light_temp()
,
blink a lamp with alert_light()
,
query the state and type of a light with get_light_data()
,
and dump all state data with dump_lights_data()
.
First register a new user token with your Philips Hue bridge by calling create_user()
Find more inforamtion on usage by using R's help system, e.g. ?set_light_color
devtools::install_github("acartauchenius/rhue")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.