Skip to main content

Class for NooLite USB stick

Project description

<p>This project is a <b>python module</b> for woriking with <b>NooLite USB stick (PC118, PC1116, PC1132)</b>.<br>
Can be easy used for making smarthome.<br>
About NooLite: http://www.noo.com.by/</p>


<p>Look at wiki for more info.</p>

<p>Author: Anton Balashov<br>
E-mail: sicness(_at_)darklogic.ru<br>
License: GPL v3<br>
Site: https://github.com/Sicness/pyNooLite</p>

<H4>Example:</H4>
import noolite

n = noolite.NooLite()
n.on(0) # Turn power on on first channel
n.off(0) # Turn power off on first channel
n.set(1, 115) # Set 115 level on second channel
n.bind(7) # send "bind" signal on channel 8

<p>Look at main.py for a extra example</p>

<h4>Dependences:</h4>

* Python 2.*

* python module pyusb<br>
For Ubuntu do: <br>
<i>sudo apt-get install python-pip <br>
sudo pip install pyusb</i><br>

* To have access to device from common user add rule to udev, for example to /etc/udev/rules.d/50-noolite.rules next line:<br>
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", SUBSYSTEMS=="usb", ACTION=="add", MODE="0666", GROUP="dialout"<br>
And add your user to dialout group:<br>
<i>sudo usermod &lt;user&gt; -a -G dialout</i>

<p><h6>Forked from https://github.com/kyuri/nooLite commit 504b9bd7572ba8f5b337fbb27cd3343fcbbd8550</h6></p>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

noolite-0.1.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page