lx_effect_flame: "Flame" effect

Description Usage Arguments Value Examples

View source: R/effects.R

Description

"Flame" effect

Usage

1
2
3
4
5
6
7
8
lx_effect_flame(
  period = 5,
  duration = 10^10,
  power_on = TRUE,
  fast = FALSE,
  selector = "all",
  token = lx_get_token()
)

Arguments

period

This controls how quickly the flame runs. It is measured in seconds. A lower number means the animation is faster

duration

How long the animation lasts for in seconds. Not specifying a duration makes the animation never stop. Specifying 0 makes the animation stop. Note that there is a known bug where the tile remains in the animation once it has completed if duration is nonzero.

power_on

if TRUE (default), switch any selected device that is off to on before performing the effect.

fast

Executes the query fast, without initial state checks and wait for no results. See https://api.developer.lifx.com/docs/set-state

selector

'LIFX' api "selector" such as "all", "id:12345", or "location:kitchen". Can be created with lx_selector or written manually (see https://api.developer.lifx.com/docs/selectors

token

API token (see ?lx_save_token). If left empty, the token is retrieved from the environmental variable if available. (see lx_save_token)

Value

an 'httr' response object (see response)

Examples

1
2
3
4
## Not run: 
lx_effect_flame(period = 2, duration = 3)

## End(Not run)

lifx documentation built on July 1, 2020, 6:08 p.m.