Learn R Programming

'LIFX' R package

The 'LIFX' R package is an interface to the 'LIFX' smart bulb api. It lets you view and change your lights' states, for example like this:

lx_color(hue = 200,saturation = 0.3,brightness = 0.5, )

install with github from devtools:

devtools::install_github("mabafaba/lifx", build_vignettes = TRUE)

Once on CRAN, you can install it with:

install.packages("lifx")

Show vignettes / user manual:

browseVignettes("lifx")

Copy Link

Version

Install

install.packages('lifx')

Monthly Downloads

203

Version

0.2.0

License

GPL-3

Maintainer

Martin Barner

Last Published

June 24th, 2020

Functions in lifx (0.2.0)

lifx

LIFX': A package for controlling 'LIFX' smart bulbs
lx_PUT

PUT request
lx_color_name

picking a color by name or hsbk
lx_delta

Change light state relative to current state (wrapper for POST state delta
lx_color

change the state of 'LIFX' lamps
lx_effect_breathe

"Breathe" effect
lx_GET

GET request
lx_check_color

check if 'LIFX' color name is valid
check_lifx_response

react to 'LIFX' api response error codes
lx_POST

POST request
lx_effect_pulse

"Pulse" effect
lx_rate_limit

get 'LIFX' API rate limit
lx_save_token

save a lifx API token in your r environment file
lx_state

set light state (lifx API endpoint PUT set state)
lx_effect_off

Turn effects off
lx_selector

select lights
lx_effect_move

"Move" effect
lx_get_token

retrieve lifx_token from R environment
lx_effect_morph

"Morph" effect
lx_effect_flame

"Flame" effect
lx_toggle

Toggle light
lx_list_lights

list available lights
lx_has_token

check whether a lifx api token is stored in the R environment file.