sta4R is a package for R. The user can also use it to query data from any standard STA instance using R functions, providing R users a convenient way to integrate data from STA servers into analysis workflows. This functionality is inspired by the 52 North package sos4R, which provides similar capabilities for the OGC Sensor Observation Service (SOS) standard.
In addition, the user can use sta4R
functions to import data from tabular data sources into a STA instance, mirroring the capabilities of importer tools such as the 52 North SOS importer for the SOS.
There are two families of functions that need to be created:
httr
package request framework solid understanding of SensorThings API request patterns (see SensorUp API Docs and Tutorials
Functions parsing SensorThings responses into R data objects, including:
data.frame
/ tibbles
sf
objectsa playground sta to read data from and write data to is at https://sta-demo.internetofwater.dev/api/v1.1 (or 1.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.