cpvalente / stupidartnet Goto Github PK
View Code? Open in Web Editor NEW(Very) Simple Python library implementation of the Art-Net protocol
License: MIT License
(Very) Simple Python library implementation of the Art-Net protocol
License: MIT License
line 203 should be
value = self.put_in_range(value, 0, 65535, False)
instead of
value = self.put_in_range(value, 0, 255, False)
It would also be useful to be able to select the HIGH and LOW byte channels,
since every 16 bit DMX/Artnet device handles this different.
On one moving head I have it is like this:
CH1 = PAN_COURSE
CH2 = PAN_FINE
On another one its like this:
CH1 = PAN_COURSE
CH3 = PAN_FINE
When sending to a target IP that is a broadcast address following error gets output:
ERROR: Socket error with exception: [Errno 13] Permission denied
This can be resolved with changing the Socket initialisation to:
self.s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) self.s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
Now to send ArtNet data in broadcast use the broadcast address as target IP (e.g. 2.255.255.255).
To send in Unicast just use a specific address for the target IP.
Hello! It would be great if you could publish your repo on PyPi. I'm using your library in a project with multiple docker containers and it would be really nice to be able to install it by putting it in the requirements.txt file.
Given that the close() method calls __clock.cancel(), if crashes if a clock was not initialized.
This simple patch is working for me :
diff --git a/lib/StupidArtnet.py b/lib/StupidArtnet.py
index 10b92d8..c26ae22 100644
--- a/lib/StupidArtnet.py
+++ b/lib/StupidArtnet.py
@@ -133,7 +133,10 @@ class StupidArtnet():
def stop(self):
"""Stops thread clock."""
- self.__clock.cancel()
+ try:
+ self.__clock.cancel()
+ except:
+ pass
##
# SETTERS - HEADER
I'm passing data from Resolume into little program using this library. When I use a universe in subnet 0, there's no issues and I get data printed in the console. If I use a subnet that's greater than 0, I get nothing. I've tried both of the following methods for registering a listener and neither seem to work.
a.register_listener(0, sub=1, net=0, is_simplified=False, callback_function=print)
a.register_listener(16, callback_function=print)
Hello.
First of all thank you for your work, your module works very well!
Iām developing a show control console for a show, and I need to receive artnet data.
Iām desperately looking for a python module that would read artnet data for further processing. Do you know of a module that could help me?
I would also like to know if you are planning to develop a similar module.
Thanks for your help, and have a good day.
Hey there!
Thank you for the great and easy to understand project!
I am wondering, if there is a way to send ArtNet as Broadcast? When using "255.255.255.255" as a destination IP, I will get an error, "Permission denied"
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ššš
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ā¤ļø Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.