sertlab / garden_red

The backend for a garden plant-sensing system (2016)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gardenRed

AUTHORS

chocof

Description

gardenRed is a project developed for an assignment at University of Thessaly. It uses sensors to monitor and water the plants while it also communicates with the website via MQTT sending plant data and waiting for options. This repo includes the website source code as well as a Node-Red script for wiring the different components

Running gardenRed

SERVERS

Make sure you've downloaded NodeJs as well as npm and bower package manager You can find these here:

  1. NODEJS,

  2. Npm

  3. Bower

  4. Get The Files (clone the directory).

  5. In order to run a server move to the appropriate folder and type:

sudo npm install

sudo npm -g bower install(Optional. Install bower globally)

bower install (When asked for angular version choose >1.4.8)

  1. After You Install the dependencies run node index.js in order to start the server

NODE-RED SCRIPT

You have to download Node-Red in order to execute the nr_script.json. sudo npm install -g --unsafe-perm node-red

You have to also include the other dependencies from the modules used. In order to start the Node Red server type : sudo node-red Then import the script using NodeReds' toolbar.

WIRING

I used the CM5000 TelosB sensor in order to gather data from plants. The root node was connected with an Raspberry Pi. Raspberry sends instruction to water the plants to an actuator, made with an Arduino, and communicates via MQTT with the website. NodeRed is executed on the Raspberrry Pi node.

HEROKU LINKS

GardenRed : https://gardenred.herokuapp.com/

About

The backend for a garden plant-sensing system (2016)


Languages

Language:JavaScript 70.1%Language:HTML 21.4%Language:CSS 8.5%