Code Monkey home page Code Monkey logo

py-openzwave's Introduction

py-openzwave

What is py-openzwave?

py-openzwave is a python wrapper around the open-zwave c++ project. This allows you to interact with z-wave networks from withing Python.

Build instructions for Windows

In order to build py-openzwave on Windows you need MinGW, MinGW is a minimalist GNU compiler for Windows. You can download MinGW here: http://www.mingw.org/ Other requirements are:

  • Cython 14.1 or higher, available from: http://www.cython.org
  • Open-zwave revision r321 or higher (r321 contains patches for MinGW)

We will assume the following build structure (different structure requires changes in py-openzwave's setup.py!):

\ Root folder -\ py-openzwave source folder -\ open-zwave source folder

  1. From the root folder, type "cd open-zwave\cpp\build\windows\mingw32"
  2. Enter "make", this will build open-zwave. If all went will you should have an "openzwave.a" file in the "open-zwave\cpp\lib\windows-mingw32" directory.
  3. From the root folder, type "cd py-openzwave"
  4. Type "python setup.py build --compiler=mingw32", this should build the py-openzwave module. If you are satisfied with the build, you can install it by running "python setup.py install"

Building on Ubuntu 10.10 (thanks Drew)

The 'cython' version for Ubuntu 10.10 is 0.12.1, which is too old. You'll get an error at 'cdef extern from # ""'. Removing that cython and running 'easy_install cython' will get you a version at least as new as 0.14.1, which will work.

First build the openzwave library: (cd openzwave/cpp/build/linux; make)

Then the python library: python setup.py build

Then try running python (or ipython) and pasting the contents of test.py. You need to leave python running after the statements are done so callbacks can come in.

For the tricklestar USB device, a more robust device name to use is /dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0 (as opposed to ttyUSB0/ttyUSB1/etc).

py-openzwave's People

Contributors

buzzdavidson avatar maartendamen avatar brianodell avatar drewp avatar woudt avatar gdoucet avatar

Watchers

Mitch Garnaat avatar James Cloos 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.