Skip to content

Smart waste collection over MQTT protocol using Raspberry Pi, nodeJs and Mongodb.

Notifications You must be signed in to change notification settings

Mou97/greenDayzProject

Repository files navigation

greenDayzProject

Smart waste collection over MQTT protocol using Raspberry Pi, nodeJs and Mongodb.


Requirements:

For development, you will need Node.js, Python3 installed in your environement. for the database we used a free remote mongoodb instance provided by mLab for the mqtt broker api key: cloudmqtt.com

Installation:

Clone the project by running the command:

$ git clone https://github.com/Mou97/greenDayzProject.git

Navigate to the project's directory:

$ cd greenDayzProject

Install the project's dependencies by running:

$ npm install

Configuring user informations:

Replace the database URL (the variable "db" in the file "config/database.js") with your personal one, visit mlab.com to get yours.

Replace the username and password (the varible mqtt in the file "config/mqttinfos.js") with your personal ones, visit cloudmqtt.com to get yours.

Running the node server:

Run the server by:

$ npm start

Running the python script on the raspberry:

$ python3 raspeberry_code.py

The server listens to requests on port 3000.

Enter localhost:3000 on your browser to open the project.

About

Smart waste collection over MQTT protocol using Raspberry Pi, nodeJs and Mongodb.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published