firestore-connector
v0.1.0
Published
A connector to Google Firestore for writing sensor data in an opinated way.
Downloads
11
Readme
A connector to write sensor data to Google Firestore
This library writes sensor data in an opiniated way to firestore.
Usage
var fc = require('firestore-connector');
// Replace with your service account credentials
fc.init("./<service-account-credentials>.json", "<database-url>")
fc.writeAvgForMinute('test', Date.now() - 60000, Date.now(), 1.5, 1);