PyPi Package: https://pypi.python.org/pypi/pygogogate2/
This is a python module aiming to interact with the Gogogate2 API.
Code is licensed under the MIT license.
pip install 'pygogogate2'
from pygogogate2 import Gogogate2API as pygogogate2
gogate2 = pygogogate2(username, password, ip_address)
gogate2.get_status(1)
gogate2.get_temperature(1)
def get_devices(self): """Return devices from API"""
def get_status(self, device_id): """Return current door status(open/closed)"""
def get_temperature(self, device_id): """Return current door temperature(F)"""
def close_device(self, device_id): """Send request to close the door."""
def open_device(self, device_id): """Send request to open the door."""
The code here is based off of an unsupported API from Gogogate2 and is subject to change without notice. The authors claim no responsibility for damages to your garage door or property by use of the code within.
# Setup the virtual environemnt.
python -m venv venv
# Enter venv
source venv/bin/activate
# Install dependencies.
pip install -r requirements.txt
# Test code
python setup.py test