CJOWood / ryobigdopy

Library to interface with Ryobi GDO HTTP API and Websockets in Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ARCHIVED

I will not be working on this anymore. SEE Ryobi_Garage for a custom Home Assistant component.

ryobigdopy

Library to interface with Ryobi GDO Websockets in Python.

Example use

import auth as a
import ryobigdo

creds = {
    "username": RYOBI_USERNAME, #Username from Ryobi GDO App
    "password": RYOBI_PASSWORD, #Password from Ryobi GDO App
    }

auth = a.Auth(creds) #Manages login, creds, and API Key
auth.login() #Checks creds and gets API Key for use in Websocket.

print(http_api.get_devices(a).json()) #Choose DEVICE_ID wanted and give to RyobiGDO Obj.

DEVICE_ID = "" #From http_api.get_devices()

gdo = ryobigdo.RyobiGDO(DEVICE_ID, auth)
gdo.connect_ws()

About

Library to interface with Ryobi GDO HTTP API and Websockets in Python.

License:MIT License


Languages

Language:Python 100.0%