Giter Club home page Giter Club logo

h2oclock-client-original's Introduction

h2oclock-client

Introduction
This project is an intelligent control for garden irrigation to conserve water on colder/wetter days and to water more on hot/dry days.
An Internet connected Raspberry Pi is also connected (via GPIO header) to a relay which connects to a solenoid operated valve on an irrigation system.
A nodeJs server runs on the Pi and it checks for the weather forecast each morning for the upcoming day, works out the required demand for watering (high, med or low).
Watering schedules are configured by the user for each of the watering demand levels (high, medium, low) and stored in a database.
Based on the watering demand for the day, a scheduler reads the relevant watering times from the database and operates the solenoid valve via the GPIO header based on the time slots.
There is a web interface to setup the watering time slots and to override the watering control.

Installation
Mongo DB and NodeJs needs to be installed
npm install will install all required node modules except for rpio - this module will not work on a Windows machine and maybe not a Mac? So if testing or doing dev work on a machine other than a Raspberry Pi things will be fine, if installing on a Pi, also run: npm install rpio

Running
First, start mongod
There are two serverJs files, again this is so dev/testing work can be completed on a machine which isn't a Raspberry Pi. server.js is the file to run on a Rpi (node server.js) and serverDev.js is a copy of server.js but it has any rpio module references commented out so please run this if not on a Rpi - obviously there will not be any rpio functionality.
Web ui can be access from http://localhost:3333

Technologies used
Server:
Raspberry Pi hardware runs Express, MongoDB, cron like scheduler, Dark Sky weather api and a rpio module to allow nodeJs access to the GPIO headers on the Raspberry Pi
Web ui:
Fairly standard web ui, using Materializecss, Ajax requests to DB

Current status of project:
This is now a working project, it is an MVP right now though!

h2oclock-client-original's People

Contributors

shawnclarke avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.