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.
We'll use python v2.7, so make sure it is installed on your machine.
- if pip is not already installed:
sudo apt-get install python-setuptools python-dev build-essential
sudo easy_install pip
- once pip is available, we can install the various python modules required
sudo pip install pyUSB portalocker zmq msgpack-python influxdb
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.
- plug-in the use MUTA operator and use
lsusb
to check that you can see it (shown as a "Microchip Technology, Inc." device, with04d8:f7c9
asvendor_id:device_id
- if the
vendor_id:device_id
is different from those default values, edit themuta_operator.rules
file accordingly. - just
sudo cp muta_operator.rules /etc/udev/rules.d
to copy the relevant.rules
file at the right place - unplug & plug-in again the MUTA operator device
- run the
./zmq_port_forwarder.sh
- run the
./operator.py
(if you get an access denied on USB, check the USB configuration part above)
(to be continued)