Learn R Programming

notifyme (version 0.3.0)

hue_flashlights: Flash all the lights connected to your hub

Description

This function will flash the lights off and on a specified number of times. Currently, it will effect all lights connected to the hub.

Usage

hue_flashlights(bridge_ip = NULL, username = NULL, flashes = 10, flash_red = TRUE, light_name = NULL, file = "~/r_keychain.rds")

Arguments

bridge_ip
Internal IP address of your hue bridge
username
Username for connecting to hue bridge
flashes
Number of times to flash the lights on and off
flash_red
Do you want the lights to turn red before flashing?
light_name
If you want to flash ONE light, give it's name here as a character vector. Name is the actual name 'e.g. hallway', not the id number.
file
optional location of the keychain, if using

Examples

Run this code
## Not run: hue_flashlights(bridge_ip,username)

Run the code above in your browser using DataLab