/MUTA_interface

MUTA: an open source home automation wireless network solution / backend operator interface

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

MUTA_interface

MUTA: an open source home automation solution for hobbyists and makers

This repository regroups the collection of python scripts that handle the pc interface between Basecamp, the home automation backend/interface, and the MUTA units wireless network.

Installation

We'll use python v2.7, so make sure it is installed on your machine.

  1. if pip is not already installed:
  • sudo apt-get install python-setuptools python-dev build-essential
  • sudo easy_install pip
  1. once pip is available, we can install the various python modules required
  • sudo pip install pyUSB portalocker zmq msgpack-python influxdb

Configuration

  • config.ini allows you to modify various parameters used by the main interface script (log files, csv file names, zmq topic filters...)
  • authorized_units.csv list the units that will be authorized to connect to the MUTA network. Any unit not present in this list will be rejected when trying to connect to the MUTA network.

allowing the use of the USB operator device without being root (on ubuntu-like):

  1. plug-in the use MUTA operator and use lsusb to check that you can see it (shown as a "Microchip Technology, Inc." device, with 04d8:f7c9 as vendor_id:device_id
  2. if the vendor_id:device_id is different from those default values, edit the muta_operator.rules file accordingly.
  3. just sudo cp muta_operator.rules /etc/udev/rules.d to copy the relevant .rules file at the right place
  4. unplug & plug-in again the MUTA operator device

Running the scripts

  1. run the ./zmq_port_forwarder.sh
  2. run the ./operator.py (if you get an access denied on USB, check the USB configuration part above)

(to be continued)

Interface

sequence

data types and variables