Hi Stefan,
I don't think that anyone did this yet but I like the idea.
Of course it's easy to access the data via HTTP calls but I assume you
need something more real-time since you already mentioned the streaming
client.
I could think of two easy (= hacky) ways to achieve what you plan to do:
- Using a NodeJS Protobuf-Library and the proto-file from OLA. Then,
connect to your OLA instance (port 9010 by default, only listening on
127.0.0.1). Then you are talking to OLA like another client via Protobuf
To unsubscribe from this group and stop receiving emails from it, send an email to open-lightin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/open-lighting/7d8e3616-72b0-4347-bc5e-df352ba20d10n%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to open-lightin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/open-lighting/0862e335-4b62-4b2d-8dda-9b7bf8316c60n%40googlegroups.com.
Hi, I want to integrate a nodejs application with ola. Do you know of a library or a wrapper around the sreaming client? I would prefer not making my own.Thanks Stefan
--
The Open Lighting Project: open-l...@googlegroups.com, #openlighting (irc.freenode.org)
To unsubscribe from this group, send email to open-lightin...@googlegroups.com
For more options, visit https://groups.google.com/groups/opt_out?hl=en
---
You received this message because you are subscribed to the Google Groups "open-lighting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-lightin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/open-lighting/9f9b396c-dd73-4903-95d7-d84764483416n%40googlegroups.com.
Nice, little evening challenge solved:
https://github.com/kripton/node-ola-protobuf
It's not a "library", more a kind of example. It's not doing exemplary
error handling and I didn't test it for performance. It might be useful
to you, or it might not be :)
DMX data is available after being updated here:
https://github.com/kripton/node-ola-protobuf/blob/main/index.ts#L71
It seems that the docs need a little update:
https://docs.openlighting.org/ola/doc/latest/rpc_system.html#rpc_SimpleExample
does not contain the "4 byte RPC header"
(https://docs.openlighting.org/ola/doc/latest/rpc_system.html#rpc_RPCHeader)
at all.