https://github.com/pasiol/ruuvi-gateway-nodejs
API-server for the Ruuvi tags using NodeJS, Mongoose, and MongoDB. The NodeJS learning project.
https://github.com/pasiol/ruuvi-gateway-nodejs
Last synced: about 1 year ago
JSON representation
API-server for the Ruuvi tags using NodeJS, Mongoose, and MongoDB. The NodeJS learning project.
- Host: GitHub
- URL: https://github.com/pasiol/ruuvi-gateway-nodejs
- Owner: pasiol
- Created: 2019-07-25T09:38:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:03:11.000Z (over 3 years ago)
- Last Synced: 2025-01-17T13:51:11.519Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ruuvi-gateway-nodejs
Acting as a gateway between Ruuvitag and the MongoDB database. Data can send between the Ruuvitag and gateway with Ruuvi Station mobile app. Service ruuvi-gateway-nodejs stores data permanently to the MongoDB database.
Service allows only POST requests. It not showing stored data.
## Prerequisites
You need the Ruuvitag device which sends temperature, humidity and pressure data to the connector. A connector can be some Bluetooth LE capable device such for example Rasberry pi, laptop or Android phone. Connector sending the Ruuvitag data into gateway which acts Rest service for the connector. Gateway stores data permanently to the database.
You can buy Ruuvitag here:
Ruuvi station app on Google Play store
Service working on the endpoint .
If you don't have own Ruuvitag, here is link to test data.
### Database
For testing purposes, you can run the MongoDB database as a docker container on your laptop.
Or you can sign to the MongoDB Atlas cloud service. Which is free for prototyping small scale applications.
## Docker container for testing enviroments
### Pulling the image from docker hub
docker pull pasiol/ruuvi-gateway-nodejs:dev
### Running the docker container
docker run -d -p 8888:8888 --rm --name ruuvi-gateway-nodejs-api -e MONGODB_URI='mongodb://NNN.NNN.NNN.NNN:27017/ruuvi' -e PORT=8888 ruuvi-gateway-nodejs:dev