Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Issue x10 commands via CM17A Firecracker or Mochad (CM15A RF/PL and CM19A RF)

Project Description

# x10_any

Wrapper module to control X10 devices.

[ ![Codeship Status for clach04/x10_any](https://codeship.com/projects/f7535da0-2dd5-0134-789e-12bd9e093a4a/status?branch=master)](https://codeship.com/projects/163630)

### Table of Contents * [Information](#information) * [Getting Started](#getting-started)

## Information

Initial focus is supporting:

Implemented in pure Python. Known to work with:

  • Python 2.7
  • Python 3.5

## Getting Started

To get started:

pip install -r requirements.txt

### Serial Port Permissions under Linux

Under Linux most users do not have serial port permissions, either:

  • give user permission (e.g. add to group “dialout”) - RECOMMENDED
  • run this demo as root - NOT recommended!

Giver user dialout (serial port) access:

# NOTE requires logout/login to take effect sudo usermod -a -G dialout $USER

### Sample

Mochad

import x10_any

x10_any.default_logger.setLevel(x10_any.logging.DEBUG) # DEBUG

dev = x10_any.MochadDriver() dev.x10_command(‘A’, 1, x10_any.ON) dev.x10_command(‘A’, 1, x10_any.OFF)

Firecracker

import x10_any

x10_any.default_logger.setLevel(x10_any.logging.DEBUG) # DEBUG

dev = x10_any.FirecrackerDriver() #dev = x10_any.FirecrackerDriver(‘COM11’) #dev = x10_any.FirecrackerDriver(‘/dev/ttyUSB0’) dev.x10_command(‘A’, 1, x10_any.ON) dev.x10_command(‘A’, 1, x10_any.OFF)

Release History

Release History

This version
History Node

0.0.2

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting