This is an Firebase-based IoT middleware that allows collecting data from other devices.
- Install Node 8 or above
- Clone this repository to a folder
- Run
npm install
- Copy
config.js.example
asconfig.js
- Register and create a Firebase project
- Get the service account and keep the JSON file
- Take note the
DATABASEURL
from Firebase. - Go to the project directory and create
/secrets
directory - Place the JSON file from Firebase to
/secrets
asfirebase.json
- Go to the
config.js
and rename thehttps://YOURDATABASEURL.firebaseio.com
to the one that you took from Firebase. - Done!
GET http://localhost/send
with query strings parameterstemperature
andhumidity
.GET http://localhost/records