Run all the shell commands inside the Raspberry Pi.
tl;dr: Installing Node.js via package manager
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
| { | |
| "_id": "pfc1-potted-tomatoes-72days", | |
| "format": "phased", | |
| "version": "1.0", | |
| "optimization": [ | |
| "general purpose" | |
| ], | |
| "date_created": "2017-05-14", | |
| "author": "openag", | |
| "operations": [ | 
| import json | |
| import operator | |
| ### Set parameters ############################################################# | |
| recipe_name = 'Tangerine-air-flush-cooling-2' | |
| recipe_format = 'simple' | |
| cycles = 7 # cycles | |
| day_length = 12 # hours | |
| light_intensity = 1 # 1 for on, 0 for off | |
| night_length = 12 # hours | 
| { | |
| "_id": "Air-flush-cooling", | |
| "format": "simple", | |
| "operations": [ | |
| [ | |
| 0, | |
| "light_intensity", | |
| 1 | |
| ], | |
| [ | 
| { | |
| "_id": "pfc1-general_greens", | |
| "format": "phased", | |
| "version": "1.0", | |
| "optimization": [ | |
| "general purpose" | |
| ], | |
| "date_created": "2017-05-14", | |
| "author": "openag", | |
| "operations": [ | 
Run all the shell commands inside the Raspberry Pi.
tl;dr: Installing Node.js via package manager
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
Installing a ngrok tunnel on your openag_brain will allow you to access it from anywhere in the world.
Follow these steps:
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zipunzip ngrok-stable-linux-arm.zip| Step 1: Create new autologin.conf file | |
| sudo nano /etc/systemd/system/[email protected]/autologin.conf | |
| Step 2: Add these lines | |
| [Service] | |
| ExecStart= | |
| ExecStart=-/sbin/agetty --autologin pi --noclear %I 38400 linux | |
| Step 3: Save file with ctrl-x | 
| { | |
| "_id": "dht22_1", | |
| "type": "dht22", | |
| "environment": "environment_1", | |
| "arguments": [ | |
| 2 | |
| ], | |
| "outputs": { | |
| "air_temperature": { | |
| "variable": "air_temperature" |