Ruuvi
Saves ruuvi tag measurements to InfluxDB. You can use Graphana to view results from database. This code has been run on RaspberryPi. So it should work at least there.
Application stores Temperature, Pressure, Humidity%. It will also calculate absolutely humidity and dew point. Those are also stored to DB.
Building
This should be compiled with go 1.15 or later
Set env variable GO111MODULE so that golang uses correct version of modules
export GO111MODULE=on
You need to have installed golang and make to be able to compile. First you need to add dependencies and only after that build application.
Steps:
- make env
- make build
This will create ruuvi binary.
Executing
Before executing setup config.yml. You need to give name for sensors and provide MAC address of those sensors. Only those sensors are stored to db which MAC address is provided in config.yml. Each device is stored in 15s interval. True interval is some where 15s-17s because Ruuvi Tag is sending every 2s measurements.
It is expected that config.yml is in the same directory with binary.
DB
Database name is weather. Presission is second.