Skip to main content

x10_any

Wrapper module to control X10 devices.

https://travis-ci.org/clach04/x10_any.svg?branch=master

Table of Contents

Information

Initial focus is supporting:

Implemented in pure Python. Known to work with:

  • Python 2.7

  • Python 3.4.4

  • Python 3.5

Getting Started

To get started and install the latest version from PyPi:

pip install x10_any

If installing/working with a source checkout issue:

pip install -r requirements.txt

Then run tests via:

python -m x10_any.test.tests

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)

Metadata

Release files for x10_any 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for x10_any 0.0.8
File Size Uploaded
x10_any-0.0.8.zip 12.8 kB Details

Release files / x10_any-0.0.8.zip

Download URL x10_any-0.0.8.zip
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ff4be5ef408e0719c9034de4dc618e87c0abb038ad3327d03938509ce9544c6f
BLAKE2b-256 checksum
How to use checksums
1aa2a7390c14849399bad0297cacad047b8b9f8c3f2aee197bf4840b39cb9aa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.8 This release

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page