Coder Social home page Coder Social logo

flask-openzwave's Introduction

flask-openzwave

A basic http interface to python-openzwave using Flask

Created using Python 2.7, Flask (pip install Flask) and python-openzwave-0.2.4 (https://python-openzwave.googlecode.com/)

Created on debian/jessie x86 on an Asus EEEPC901, must be run as root to access the usb system

Using an Aeon Labs Z-Stick S2 USB controller, a Aeon Labs Multisensor and a TKBHome plug socket

Demo assumes the plug socket is node 3, and the usb stick is /dev/ttyUSB0.

The flask website runs in debug mode on http://localhost:5000 and has urls for checking values (e.g. /values/Temperature) as well as controlling the switch (e.g. /switch/3/off).

Each time the temperature changes, it logs to a CSV file, and makes sure it's under 25 degrees C. If it exceeds 25deg then it'll turn the socket on (e.g. to turn on a fan to stop a room getting too hot).

This will expand as I learn more about OZW and buy more devices :-)

flask-openzwave's People

Contributors

richbeales avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.