This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd | |
| git clone https://github.com/YieldTek/growlapse-client.git | |
| cd growlapse-client/ | |
| npm install | |
| ~/growlapse-client/node_modules/ember-cli/bin/ember serve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tmux attach-session -t 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cp timelapse.db.template timelapse.db | |
| python growlapse.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo pip install -r requirements.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tmux | |
| cd | |
| git clone https://github.com/YieldTek/growlapse-server.git | |
| cd growlapse-server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install -y tmux python-opencv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd | |
| sudo apt-get remove -y nodejs | |
| wget https://nodejs.org/dist/v8.9.1/node-v8.9.1-linux-armv7l.tar.xz | |
| tar xvf node-v8.9.1-linux-armv7l.tar.xz | |
| cd node-v8.9.1-linux-armv7l/ | |
| sudo ln -s /home/pi/node-v8.9.1-linux-armv7l/bin/node /usr/bin/ | |
| sudo ln -s /home/pi/node-v8.9.1-linux-armv7l/bin/npm /usr/bin/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import RPi.GPIO as GPIO | |
| MOISTURE_SENSOR_PIN = 4 | |
| RELAY_PIN = 17 | |
| def setupPinOutput(pin): | |
| GPIO.setup(pin, GPIO.OUT) | |
| def turnRelayOn(pin): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import RPi.GPIO as GPIO | |
| # use P1 header pin numbering convention | |
| GPIO.setmode(GPIO.BOARD) | |
| GPIO.setup(11, GPIO.IN) | |
| input_value = GPIO.input(11) | |
| if (input_value): | |
| print 'Need to water' |
NewerOlder