Browse Source

rookie mistake

batman
boB Rudis 4 years ago
parent
commit
d2aad7cbdd
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 3
      DESCRIPTION
  2. 1
      NAMESPACE
  3. 2
      R/historic-conditions.R
  4. 2
      README.md
  5. 15
      man/wl_conditions.Rd
  6. 29
      man/wl_historic_conditions.Rd

3
DESCRIPTION

@ -22,6 +22,7 @@ Depends:
Imports:
httr,
jsonlite,
anytime
anytime,
digest
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.1

1
NAMESPACE

@ -1,6 +1,7 @@
# Generated by roxygen2: do not edit by hand
export(wl_conditions)
export(wl_historic_conditions)
export(wl_nodes)
export(wl_sensor_activity)
export(wl_sensors)

2
R/historic-conditions.R

@ -10,7 +10,7 @@
#' @references [API Endpoint](https://weatherlink.github.io/v2-api/api-reference);
#' [Data structure types](https://weatherlink.github.io/v2-api/data-structure-types)
#' @export
wl_conditions <- function(station_id,
wl_historic_conditions <- function(station_id,
api_key = Sys.getenv("WEATHERLINK_API_KEY"),
api_secret = Sys.getenv("WEATHERLINK_API_SECRET")) {

2
README.md

@ -29,6 +29,8 @@ the Davis WeatherLink API (V2).
The following functions are implemented:
- `wl_conditions`: Get current conditions data for one station
- `wl_historic_conditions`: Get historic conditions data for one
station
- `wl_nodes`: Get all nodes attached to all weather stations
associated with your API Key
- `wl_sensor_activity`: Get latest reporting times for all sensors

15
man/wl_conditions.Rd

@ -1,5 +1,5 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/current-conditions.R, R/historic-conditions.R
% Please edit documentation in R/current-conditions.R
\name{wl_conditions}
\alias{wl_conditions}
\title{Get current conditions data for one station}
@ -9,12 +9,6 @@ wl_conditions(
api_key = Sys.getenv("WEATHERLINK_API_KEY"),
api_secret = Sys.getenv("WEATHERLINK_API_SECRET")
)
wl_conditions(
station_id,
api_key = Sys.getenv("WEATHERLINK_API_KEY"),
api_secret = Sys.getenv("WEATHERLINK_API_SECRET")
)
}
\arguments{
\item{station_id}{(chr) Station id}
@ -25,18 +19,11 @@ wl_conditions(
}
\value{
list ith a \code{generated_at} attribute
list ith a \code{generated_at} attribute
}
\description{
Returns current conditions data for a weather station selected by a station ID.
Returns historic conditions data for a weather station selected by a station ID.
}
\references{
\href{https://weatherlink.github.io/v2-api/api-reference}{API Endpoint};
\href{https://weatherlink.github.io/v2-api/data-structure-types}{Data structure types}
\href{https://weatherlink.github.io/v2-api/api-reference}{API Endpoint};
\href{https://weatherlink.github.io/v2-api/data-structure-types}{Data structure types}
}

29
man/wl_historic_conditions.Rd

@ -0,0 +1,29 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/historic-conditions.R
\name{wl_historic_conditions}
\alias{wl_historic_conditions}
\title{Get historic conditions data for one station}
\usage{
wl_historic_conditions(
station_id,
api_key = Sys.getenv("WEATHERLINK_API_KEY"),
api_secret = Sys.getenv("WEATHERLINK_API_SECRET")
)
}
\arguments{
\item{station_id}{(chr) Station id}
\item{api_key, api_secret}{WeatherLink API (V2) key/secret. Generate & retrieve them from
\href{https://www.weatherlink.com/account}{your account page}. Automagically retrieved from
\code{WEATHERLINK_API_KEY} and \code{WEATHERLINK_API_SECRET} environment variables.}
}
\value{
list ith a \code{generated_at} attribute
}
\description{
Returns historic conditions data for a weather station selected by a station ID.
}
\references{
\href{https://weatherlink.github.io/v2-api/api-reference}{API Endpoint};
\href{https://weatherlink.github.io/v2-api/data-structure-types}{Data structure types}
}
Loading…
Cancel
Save