Ruuvi Station gateway implementation for storing data to InfluxDB with typescript
This is open source implementation for Ruuvi Station Gateway Google Cloud Function that pushes measurements to InfluxDB 1.8+ and 2.0+.
I have been tested function with setup:
RuuviTag (sw v3 &v5) (RyuuviTag sensor)
> Ruuvi Station (Ruuvi mobile app, android)
> ruuvi-gateway-influx (This)
> InfluxDB 1.8 (Standalone installation in vm)
Install node.js, typescript and Google Cloud SDK.
InfluxDB you can use stand alone installations or free to use Saas for small amount of data from.
- Setup Google Cloud Functions.
- Setup Google Secret Manager for credentials.
- Clone repository with
git git@github.com:ampujl/ruuvi-gateway-influx.git
. - Copy sample.env.yaml to .env.yaml .
- Run service localy
npm run start:write
. - Run tests
npm run test
. - Deploy
npm run deploy:write
. - Find
httpsTrigger:
from deploy otput to configure Ruuvi Station gateway url.