Skip to content

TFenby/pytomation

 
 

Repository files navigation

Pytomation


Pytomation is an extensible device communication and automation system written in Python. It's uses include home automation and lighting control but is certainly not limited to that. It is supported on any platform that support Python ( Windows, Mac OS-X, Linux, etc )

Supported

Pytomation currently has support for the following hardware interfaces with more planned in the future.

Future

  • Z-Wave (Aeon Labs) DSA02203-ZWUS
  • Weeder Analog I/O board (Wtaio/RS232)
  • Ube Wifi Devices
  • CoralStar WiFi Devices

###INSTALLATION

DEPENDENCIES

Before you can create an instance and run Pytomation automation software you must satisfy a few dependencies. Pytomation is written in Python and currently has been tested under versions 2.6.x and 2.7.x.

Pytomation also requires the following packages to be installed:

  • Pyserial - Support for RS232 serial interfaces.

  • Pyephem - High-precision astronomy computations for sunrise/sunset.

  • Pytz - World timezone definitions.

  • Mock - Python testing library.

  • Git - Version control software.

  • Debian packages are available for Pyserial and can be installed with :

    sudo apt-get install python-serial 
    

or search for python serial in your software manager.

The other pieces can be installed with ""pip". "Pip" is a tool for installing and managing Python packages, such as those found in the Python Package Index.

Again, under Debian distributions you can install the python-pip package:

 sudo apt-get install python-pip

Once pip is installed it is easy to install the rest of the dependencies with the following commands.

sudo pip install pytz pyephem mock git

####INSTALL

You are now ready to install pytomation. Change into the directory that Pytomation resides in from the git clone command above and run "./install.sh". You may have to make it executable with the command chmod +x ./install.sh first. Install.sh can take an optional argument which points to an alternate installation directory:

 ./install.sh /some/other/folder/pytomation

The install.sh command does the following:

  • Confirms where you are installing Pytomation to.
  • Makes a "pyto" user and creates the home directory.
  • Copies all the necessary files into Pytomations HOME.
  • Creates a /usr/bin/pytomation.sh command to start Pytomation.
  • Creates an /etc/init.d/pyto script for starting Pytomation on boot.

You are now ready to configure pytomation and create an instance for your devices.

About

Python Home Automation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.8%
  • Other 1.8%
  • Other 1.4%