Crate sensor_community

Source
Expand description

API client for https://sensor.community/

Based on https://github.com/opendata-stuttgart/meta/wiki/EN-APIs and https://api-sensor-community.bessarabov.com/

Hosted at https://codeberg.org/FedericoCeratto/rust-sensor-community-client

Released under GPL-3.0

sensor.community recommends providing a contact point e.g. an email address when running queries

Structs§

Location
Location of a measurement station
Sample
An environmental sample from one measurement station fetched from the API. It can contain values from multiple onboard sensors.
SampleUpload
An environmental sample from one measurement station ready for upload. It can contain values from multiple onboard sensors.
Sensor
Description of a sensor
SensorDataValue
A datapoint from a sensor
SensorType
id, manufacturer and name of a sensor

Enums§

FetchError

Functions§

fetch_batch
Fetch recent data in large batches.
fetch_by_query
Fetch sensor data using a query.
fetch_by_sensor
Fetch all measurements of the last 5 minutes for one sensor The API-ID can be found by clicking on your sensor on the map. This is not the chipID.
upload
Upload sensor readings from a measurement station.