Giter Club home page Giter Club logo

Comments (9)

Supergiovane avatar Supergiovane commented on June 15, 2024

Hi Reto.
"Initialread" is triggered whenever node-red restarts. The case of a restarting node-red is very limited and, normally, this doesn't happen so often.
When it happens, i've users saying the exact contrary as you states. They need a visualization touchscreen updated as soon as possibile, to avoid pushing a button while the status of the button is unknown.
I can for sure add a delay (currently, it's fixed at 5 seconds after knx-ultimate initialisation), but thinking to add a new timer and queue array may be a bit overwhelming.
Let me know if a simple "customizable initialread delay" can be useful for you.
:-)

from node-red-contrib-knx-ultimate.

heleon19 avatar heleon19 commented on June 15, 2024

Hi Massimo

An adjustable delay would help a little bit, but it must also be ensured that this timer is cleared when deploying or disconnecting.

The initialread is not only used when restarting Node-RED, but also for deploy and reconnect.

In my opinion, a second queue would not be much more complex? By default the delays would be the same as before, but for larger projects you could set priorities accordingly.

from node-red-contrib-knx-ultimate.

Supergiovane avatar Supergiovane commented on June 15, 2024

Hi Reto
Yes, the redeploy triggers the initialread as well, but if you select "deploy only changed nodes" it should not be triggered.
I'll think about double queue. Maybe i can move a "read" request from the "initialread" queue, to the main telegram queue only if the main telegram queue is empty.
About clearing timers, i need to clear all timers everytime, most importantly, if i've a timer that pushes telegrams from "initialread" queue, into the main queue from time to time.
Let me do a gurumeditation about that.

from node-red-contrib-knx-ultimate.

heleon19 avatar heleon19 commented on June 15, 2024

Thanks for thinking about it ;-)

I would have a two more feature requests, are you open for it?

from node-red-contrib-knx-ultimate.

Supergiovane avatar Supergiovane commented on June 15, 2024

Yes, but please create a new issue for each.

from node-red-contrib-knx-ultimate.

Supergiovane avatar Supergiovane commented on June 15, 2024

Ok, solved in a very elegant way.
Out soon in v 1.1.40
If you wanna try, create a function node "Massive read request" and paste this code
for (let index = 0; index < 1000; index++) {
node.send({readstatus:true});
}
Node-RED

Then start the function and in the meantime, turn on/off any other knx-ultimate node.
The "write" and "response" does have the higher priority in the massive flooding "read" telegrams.

from node-red-contrib-knx-ultimate.

heleon19 avatar heleon19 commented on June 15, 2024

Thank you for optimizing this!

Could you create node setting parameters for the read delay time and the delay between telegerams can be read/write?

from node-red-contrib-knx-ultimate.

Supergiovane avatar Supergiovane commented on June 15, 2024

Hi Reto,
not now sorry, we've fighting with Coronavirus here.
We're very in trouble..
Hope in the next weeks...

from node-red-contrib-knx-ultimate.

Supergiovane avatar Supergiovane commented on June 15, 2024

In the meantime, you can disable the automatic read and use an inject node with delay you want, that sends a read request to knx-ultimate.
Please see here https://github.com/Supergiovane/node-red-contrib-knx-ultimate/wiki/-Sample---Read-value-from-Device

from node-red-contrib-knx-ultimate.

Related Issues (20)

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.