Giter Club home page Giter Club logo

Comments (9)

ozett avatar ozett commented on August 17, 2024 1

thanks for reply... do so, 👪 more important than bits&bytes (at least)..

from node-red-contrib-knx.

aborovsky avatar aborovsky commented on August 17, 2024

Hi, ozett,
Thank you for response! Your attention to the module is pleasure for us :)

Please, paste your JS code (of function node-red's node, i suppose) here.
And try to explain - how exactly you want to modify it.
I'll try to give you an advice.

from node-red-contrib-knx.

ozett avatar ozett commented on August 17, 2024

hi, thank for your fast reply,
your module is a pleasure for me.. 😄

what i want to do:
i want to build the same diagrams i have from my ESPeasy modules via MQTT comin in to node-red
with my knx-devices.
zwischenablage1-knx

from node-red-contrib-knx.

ozett avatar ozett commented on August 17, 2024

but i am not able to build a working flow.. 😟

i only need the temperatur-value from my GA 3/2/11 to feed into the chart-module of the node-red-gui.
i dont know how to get this in a timed interval (may 2 min..) and only the value from the ga of the knx-node. i am unsure, if i need an inject node, and how to build this exactly.
may you can help me out..? 😳

zwischenablage06

what i have:
the knx-connection is working, i have debug-messages and can feed the msg.payload to a text-node.

from node-red-contrib-knx.

ozett avatar ozett commented on August 17, 2024

to basic question for experienced user?
sorry,.. 😰

from node-red-contrib-knx.

ozett avatar ozett commented on August 17, 2024

i tried to quirk some code like this in a function, but that did not work out..

var map = {
'3/2/11' : {"nodeid": 5, "value": msg.payload.value},
'2/2/51' : {"nodeid": 5, "cmdclass": 38, "value": msg.payload.value},
'2/2/81': {"nodeid": 8, "instance":1, "value": msg.payload.value},
'2/2/82': {"nodeid": 8, "instance":2, "value": msg.payload.value},
'2/2/90' : {"nodeid": 9, "value": msg.payload.value}
}
switch (msg.topic) {
// or forward them to KNX
//case "knx: read":
case "read":
if (msg.payload.dstgad in map) {
var response = {"topic": "setValue", "payload": map[msg.payload.dstgad] };
console.log('== knx to zwave: %j', response);
return response;
}
}
return;

zwischenablage01-2

from node-red-contrib-knx.

aborovsky avatar aborovsky commented on August 17, 2024

I'll take a look in 12hours. Need to spent time with my family, sorry :)
Пт, 29 апр. 2016 г. в 20:17, ozett [email protected]:

i tried to quirk some code like this in a function, but that did not work
out..

var map = {
'3/2/11' : {"nodeid": 5, "value": msg.payload.value},
'2/2/51' : {"nodeid": 5, "cmdclass": 38, "value": msg.payload.value},
'2/2/81': {"nodeid": 8, "instance":1, "value": msg.payload.value},
'2/2/82': {"nodeid": 8, "instance":2, "value": msg.payload.value},
'2/2/90' : {"nodeid": 9, "value": msg.payload.value}
}
switch (msg.topic) {
// or forward them to KNX
//case "knx: read":
case "read":
if (msg.payload.dstgad in map) {
var response = {"topic": "setValue", "payload": map[msg.payload.dstgad] };
console.log('== knx to zwave: %j', response);
return response;
}
}
return;

[image: zwischenablage01-2]
https://cloud.githubusercontent.com/assets/5937811/14923702/f18f225a-0e3e-11e6-899c-9216cecf85b4.png


You are receiving this because you commented.

Reply to this email directly or view it on GitHub
#3 (comment)

[image: BeeToo] http://beetoo.me/
Когда умный дом по-настоящему умный
Александр Боровский, Технический директор
Alexander Borovsky, CTO, Co-Founder
+7-926-0-945-00 <+7926094500>
+7-499-391-33-62
<+74993913362>[email protected]
http://beetoo.me

from node-red-contrib-knx.

aborovsky avatar aborovsky commented on August 17, 2024

Proper flow for your case will be:

  1. inject node [with timer configured] -- read request --> knx out [write] node
  2. knx in [read] node ----> chart node of node-red-contrib-ui

Right now you trying to send msg with topic 'read' in knx-out node.
But underlying library knx.js doesn't support yet such kind of datagrams.

If you'll analyze stdout [or stderr] of node.js process you'll see the line:

Unsupported action[read] inside of groupAddrSend

Conclusion: read command should be implemented.

I'll close this ticket.

Please, contact me directly by email: [email protected]. I'll try to help you.

from node-red-contrib-knx.

ozett avatar ozett commented on August 17, 2024

thanks for suggestion how to build the flow-connections.
i did it like you advised, and now see the "knx out [write] node" as inactive,
and i attach a picture, how i set up the inject node.
i am still doing something wrong, but .... thankx...

after that: how can i select the "knx-in-node" for other GADs for charting?
i cannot see how to do this...
thaaanks a lot, 😃

zwischenablage01

from node-red-contrib-knx.

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.