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
# Name agent componnents | |
source.sources = r1 | |
source.sinks = avro-f-sink | |
source.channels = c1 | |
# Source information | |
source.sources.r1.type = exec | |
source.sources.r1.command = tail -F /log/apache/access_log | |
source.sources.r1.channels = c1 |
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
# Name agent components | |
a1.sources = r1 | |
a1.sinks = k1 hb1 | |
a1.channels = c1 c2 | |
# Source Information | |
a1.sources.r1.type = avro | |
a1.sources.r1.bind = x.x.x.x #IP of web server or 0.0.0.0 to allow connection from all | |
a1.sources.r1.port = xx # Port to listen on |
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
### Keybase proof | |
I hereby claim: | |
* I am smoriarty21 on github. | |
* I am atarimaster001 (https://keybase.io/atarimaster001) on keybase. | |
* I have a public key ASC9lds1QRl3QjqOQh595h3DlOLEBBdwrq5qnajaKYe-OQo | |
To claim this, I am signing this object: |
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 Adafruit_BBIO.GPIO as GPIO | |
def main(): | |
GPIO.setup("P8_7", GPIO.IN) | |
if GPIO.input("P8_7"): | |
print("Dry, water me!") | |
else: | |
print("Moist, no need for water") | |
if __name__ == '__main__': |
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' |
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
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
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 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
tmux | |
cd | |
git clone https://github.com/YieldTek/growlapse-server.git | |
cd growlapse-server |
OlderNewer