Description Usage Arguments Value Examples
"Move" effect
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()
)
|
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 |
token |
API token (see ?lx_save_token). If left empty, the token is retrieved from the environmental variable if available. (see |
an 'httr' response object (see response
)
1 2 3 4 | ## Not run:
lx_effect_move(direction = "backward", period = 2, cycles = 5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.