f0rmatme / server

An automated hydroponic deep water culture grow system built on nodejs using arduino, raspberry pi, relays, peristaltic pumps, and various sensors (ph, 1wire, ultrasonic, dht22, etc)

Home Page:https://growlab.space

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GrowLab

An automated hydroponic system

A Washington DC based hydroponic lab using a deep water culture system.

Table of Contents

Electronics

Sensors

Grow System

Install

enable ip_tables

sudo modprobe ip_tables
sudo echo 'ip_tables' >> /etc/modules

update /etc/rc.local

# Forward port 80 and 443 so the
# web server can run at normal permissions
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 3000

load /etc/rc.local

sudo /etc/rc.local

generate ssl csr and generate ssl certificate

openssl req -nodes -newkey rsa:2048 -keyout private.key -out server.csr

install pm2 and setup startup scripts

sudo npm install pm2 -g
pm2 startup

setup config.js & grow.json, then start index.js

git clone https://github.com/krahimian/growlab.git
cd growlab
npm install
cp config.sample.js config.js
cp grow.sample.json grow.json
pm2 start index.js --watch

About

An automated hydroponic deep water culture grow system built on nodejs using arduino, raspberry pi, relays, peristaltic pumps, and various sensors (ph, 1wire, ultrasonic, dht22, etc)

https://growlab.space


Languages

Language:JavaScript 60.0%Language:CSS 19.9%Language:HTML 13.7%Language:Arduino 6.3%