Skip to content

Instantly share code, notes, and snippets.

View nkalupahana's full-sized avatar

Nisala nkalupahana

View GitHub Profile
@nkalupahana
nkalupahana / _server.py
Last active July 15, 2020 04:36
Garage Door Sensor Code
#python3
from flask import Flask
from gpiozero import Button, LED
from time import sleep
app = Flask(__name__)
LEFT_PIN = 22
RIGHT_PIN = 2
REMOTE_LEFT_PIN = 13
date value
2013-01-01 6
2013-01-02 5
2013-01-03 4
2013-01-04 5
2013-01-05 6
2013-01-06 7