lx_effect_move: "Move" effect

Description Usage Arguments Value Examples

View source: R/effects.R

Description

"Move" effect

Usage

1
2
3
4
5
6
7
8
9
lx_effect_move(
  direction = "forward",
  period = 1,
  cycles = 10^10,
  power_on = TRUE,
  fast = FALSE,
  selector = "all",
  token = lx_get_token()
)

Arguments

direction

Move direction, can be "forward" or "backward".

period

The time in seconds for one cycle of the effect.

cycles

The number of times to move the pattern across the device. Special cases are 0 to switch the effect off, and unspecified to continue near indefinitely (10^10 times).

power_on

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_move(direction = "backward", period = 2, cycles = 5)

## End(Not run)

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