Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 2.46 KB

README.md

File metadata and controls

51 lines (38 loc) · 2.46 KB

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