This repo is the student resources required to partcipate in the "Your code brightens the room" workshop
To Get Started click the following link sandbox link to create a workspace on Gitpod. You're required to have a github user account to verify user/email in order to use the Gitpod service.
Sandbox environment for this Workshop/Repo
mqtt_cli.py : demo python cli app for subscribing to a topic as well as sending a message
webui.py : example python web app for subscribing to a topic as well as sending a message
Off:
python mqtt_cli.py --topic cmnd/hackgt/<yourdevicename>/power --message off
On:
python mqtt_cli.py --topic cmnd/hackgt/<yourdevicename>/power --message on
Subscrbie to a topic
python mqtt_cli.py --topic stat/hackgt/<yourdevicename>/POWER
Start webserver:
python webui.py