Skip to content

Easy script to create your own Python Web API. Created for use with Raspberry PI 3B+ in order to open garage door with GPIO from Smartthings.

License

Notifications You must be signed in to change notification settings

suxSx/Smartthings-GPIO-Python-Web-API

Repository files navigation

GitHub forks GitHub stars GitHub watchers GitHub GitHub issues GitHub repo size

Python-Web-API

Easy script for setting up your own Python Web API. Used for communicating with Raspberry PI from Smartthings. It makes it possible for you to turn on and off GPIO pins on your Raspberry PI from Smartthings and integrated your home system to your local Rasperry PI. Or modify it to run any actions you would like.

Imgur

How to install

Download the files locatated in Python-Web-API: python-api.py and options.py. Save them in any folder and run python-api.py

sudo python python-api.py

Install a new Device Handler in Smartthings using the code found in Smartthings Device Handler switch_device_handler_smartthings.groovy. Add a new device and use WEB Service Switch as the device type. Do all this from samsungs web portal.

Open the new device on your Smartthings APP, find settings and enter the IP adress to your Raspberry PI and PORT.

NB! This program only works on LAN. You can modify the code if you want to run it on WAN.

Common Information

Basic information about the project like founding, TODO, CODE of Conduct with a short information text describing it all.

  • Look at TODO if you want to help: TODO
  • Read the CODE of Conduct before you edit: Code of Conduct
  • We use MIT License: MIT

Contact

Project Link: https://github.com/suxsx/Python-Web-API

About

Easy script to create your own Python Web API. Created for use with Raspberry PI 3B+ in order to open garage door with GPIO from Smartthings.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published