This is a little tinker project that reads temperature data from an Arexx BS510 base station. The temperature values from the connected TL-2TSN sensors are recorded and persisted in different storages.
Three kind of storages exist currently:
- JSON file (json lines)
- InfluxDB (using the line protocol)
- MQTT
In my setup the base station is connected to the Raspberry 3B+ USB port and data is stored in a local InfluxDB instance and data is visualized with Grafana.
The application is configured using a configuraton file (see example config.toml). The configuration file is passed as a startup parameter when starting the application:
Example:
> ./arexx-tap -c config.toml
or when starting with cargo:
> cargo run -- -c config.toml
The temperature number values are calibrated using a scaling factor (temperature-scaling
). Different sources on the the internet suggest to take 0.0078
which is now the default value. This scaling factor can be globally changed in the configuration file or individually for every configured sensor.