Travis-CI Build Status

LIFX

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Quickstart

Install the package:

devtools::install_github("cboettig/lifxr")

Get your Personal Authentication Token from the LIFX cloud: https://cloud.lifx.com/settings. Add this token into R using options() in your .Rprofile or current session:

options(LIFX_PAT = "<TOKEN>")

You can now load the library and control your lights:

library("lifxr")
lights()
on()
off()

Function overview

All endpoints in v1beta1 of api.lifx.com are implemented, along with a few helper functions.

- current_color() return the current color of a light group (in a format appropriate for use with color/breathe/pulse) - ping() the API to confirm it responds.

See package documentation for details.



cboettig/lifxr documentation built on May 13, 2019, 2:08 p.m.