Giter VIP home page Giter VIP logo

Comments (14)

cpvalente avatar cpvalente commented on June 18, 2024

Thank you, happy that the package is helping.
I could probably try and help, I have half written some server side code. Would only need to implement the ArtPoll side of the protocol.

  • How are you planning on receiving the data in the server side? would you just get an array of the selected universe?
  • How much data are you planning to capture?
  • Are you in need of specifically a python solution?
  • ... and most important, what is your timeline?

we can maybe work something out

from stupidartnet.

emanuel12324 avatar emanuel12324 commented on June 18, 2024

I'm also interested on being able to receive artnet with this library. Say when you initialize the listener, you just say net = stupidArtnet(startAddress, number of channels) and it just returns an object that you can poll for a current dmx value. Something like net.getChannelValue(channelNumber).

from stupidartnet.

cpvalente avatar cpvalente commented on June 18, 2024

It would make sense to me that you would make a listener for a universe, something like

server = stupidArnetServer(universe, net=0, subnet=0)

you would probably then be able to see the data as you mention with server.getChannelValue(channelNumber) or perhaps in more friendly way server.channels[channelNumber]

However this is all running on a separate thread, I wonder if we would need a callback function on certain channels? this would allow you to use Art-Net to trigger actions in a program

server.setListener(channelNumber, callback)

I guess it depends on the intended use, would you have an example usage for this?

from stupidartnet.

emanuel12324 avatar emanuel12324 commented on June 18, 2024

from stupidartnet.

cpvalente avatar cpvalente commented on June 18, 2024

Not entirely sure on the best architecture here. I find it difficult to design a process that works for generic situations since the usage of a Server is usually quite deeply connected with logic.

I have player around with a few different structures and ended up default to just having a server running in another thread.
Are you able to review 4fbe8c3 and give me some thoughts?

from stupidartnet.

emanuel12324 avatar emanuel12324 commented on June 18, 2024

Well I sent it some artnet data and it seems to handle it quite well. If you ask me, this is perfectly done and the callback function architecture works just fine. I don't know if it'll get bogged down if I send a full universe's worth of active data, but I tested it with a good number of channels and it was alright.

from stupidartnet.

cpvalente avatar cpvalente commented on June 18, 2024

I would believe that receiving artnet data is pretty trivial for any sort of computer. Even a raspberry pi, however I don't have one handy to test.

Which device did you use?
Are there any other utility functions that you would see useful?

I will be giving it another pass before making tests and merging to master

from stupidartnet.

emanuel12324 avatar emanuel12324 commented on June 18, 2024

I was using a RPI 4B.

I'm not entirely sure how this works, but what kind of procedure is there for receiving different nets and subnets, along with different universes?

from stupidartnet.

cpvalente avatar cpvalente commented on June 18, 2024

So far I have defaulted nets to 0 and only implemented universes.
You would need a object instance for every universe

from stupidartnet.

emanuel12324 avatar emanuel12324 commented on June 18, 2024

Well I suppose other than implementing that, I don't really have any further suggestions. Great job with the library

from stupidartnet.

cpvalente avatar cpvalente commented on June 18, 2024

Hey @emanuel12324 , I see you have made a PR for a subnet implementation.
I have been working on the architecture of the server and was wondering if you could give me your opinion on a720cef

It expands the idea of adding callbacks, in which you can reuse the same server and add a listener for every universe, net, subnet combination you would like to listen to

from stupidartnet.

emanuel12324 avatar emanuel12324 commented on June 18, 2024

I like it! It's definitely a much more powerful and efficient architecture.

from stupidartnet.

cpvalente avatar cpvalente commented on June 18, 2024

I believe this has been sorted with 9b5829a. Will leave the issue open for a while and see if there is some feedback

from stupidartnet.

cpvalente avatar cpvalente commented on June 18, 2024

closing issue

from stupidartnet.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.