Skip to content

ACKspace/bitlair-ohm2013-ledstrip-contol

 
 

Repository files navigation

bitlair-ohm2013-ledstrip-contol

Control Bitlair Ohm2013 RGB ledstrips with python

You can run a file seperately like ./police1.py or combine them like in the effects*.py files.

The default (broadcast) address is 192.168.89.255; the default port is 6454.

You can specify the address on the command-line:

export ADDR='[("192.168.1.255", 6454)]'
export ADDR=[("192.168.1.255", 6454), ("localhost", 7000)]
export ADDR='[("192.168.94.106", 6454), ("192.168.94.104", 6454), ("192.168.94.100", 6454), ("192.168.94.105", 6454), ("192.168.94.103", 6454), ("192.168.94.102", 6454), ("192.168.94.101", 6454)]'

You can use a non-broadcast address to control one strip.

Single sleeve effects

Single sleeve effects are effects for one sleeve or more sleeves showing the same effect. Both unicast or multicast can be used.

Multiple sleeve effects

Multiple sleeve effects show different patterns on multiple sleeves. Control uses unicast and the geographical order/location of the sleeves may be important (as is the order in the ADDR variable).

Using the proxy

export ADDR='[("192.168.94.106", 6454), ("192.168.94.104", 6454), ("192.168.94.100", 6454), ("192.168.94.105", 6454), ("192.168.94.103", 6454), ("192.168.94.102", 6454), ("192.168.94.101", 6454)]'

./proxy.py

This defines the addresses of the sleeves at the 192.168.94.* addresses. The proxy listens at ports 8000 to 8006 respectively. The proxy will send data it receives at the ports to the corresponding sleeve.

For the sleeves use: export ADDR='[("192.168.94.2", 8000), ("192.168.94.2", 8001),("192.168.94.2", 8002),("192.168.94.2", 8003),("192.168.94.2", 8004),("192.168.94.2", 8005),("192.168.94.2", 8006)]'

About

Control Bitlair Ohm2013 RGB ledstrips with python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%