source_data: Functions to record and parse source data

Description Usage Arguments Value

Description

Functions to record and parse source data

Usage

1
2
3
4
5
6
7
record_hue_state(cache_timeout = 0)

record_weather(cache_timeout = 15)

parse_hue_state(x)

parse_weather(x)

Arguments

cache_timeout

time (in minutes) to reuse cached results before hitting the API again

x

the object to parse, i.e. x = yaml::yaml.load_file(path)) where path is a data file saved by record_hue_state() or record_weather()

Value

record_hue_state() and record_weather() return TRUE (invisibly) upon success. parse_hue_state() and parse_weather() return a dplyr::data_frame() of relevant features.


fascinatingfingers/zeitgebeR documentation built on Oct. 25, 2019, 4:50 p.m.