Comments (1)
Hi,
Yes, the examples/async-buswatch.py
script should do pretty much exactly what you want. If you're monitoring multiple DALI-USBs then I could add a command-line parser to it so you can start up multiple instances monitoring each device to a different file. (Or do you want them all combined?)
Have you managed to get the current example running on a Pi with one DALI-USB? The procedure should be something along the lines of:
-
clone the current python-dali repository (
git clone https://github.com/sde1000/python-dali.git
) -
install it with
setup.py
, or just point PYTHONPATH at it (export PYTHONPATH=~/python-dali
in your .bashrc, for example, then log in again) -
as root, copy
examples/50-dali-hid.rules
to/etc/udev/rules.d/
then reboot the Pi or unplug/replug the USB device -
run
examples/async-buswatch.py
I'm away today, but I'll look at adding command-line parsing to that script soon. (Or you could adapt the code from examples/async-commissioning.py
)
from python-dali.
Related Issues (20)
- As of python 3.10, the *loop* parameter was removed from Event() and BoundedSemaphore() of asyncio HOT 2
- Managing DALI gear through abstractions HOT 7
- TypeError: __init__() got an unexpected keyword argument 'loop' HOT 7
- dali.tests.test_dummy.DummyDriverFixtureParts.log HOT 1
- LUBA USB driver query HOT 16
- Device commisioning HOT 3
- Tridonic Connection in Windows HOT 2
- No module named 'dali.interface' HOT 1
- Lunatone HID: occasional stuck communication, and `assert current_command == None` in `dali/driver/hid.py:592`
- Using python-dali as a slave, not a master HOT 1
- Device instance type HOT 4
- ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it HOT 1
- ERROR: AttributeError: 'TridonicDALIUSBNoResponse' object has no attribute 'value' HOT 9
- Lunatone DALI MC4L HOT 2
- Getting error ConnectionRefusedError: [Errno 111] Connection refused HOT 10
- How to use the Commissioning sequence with SyncHassebDALIUSBDriver? HOT 7
- Advise request for a dali illumination sensor
- Who is relying on the exceptions raised by dali.frame? HOT 2
- Schedule for dropping support for Python 3.6 HOT 3
- Bug in querying scene levels using Hasseb interface HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-dali.