Giter Club home page Giter Club logo

Comments (9)

aborovsky avatar aborovsky commented on July 17, 2024

Thanks for bug report! Will check it in few days.
Ср, 15 июня 2016 г. в 12:33, Gert-Jan Niewenhuijse <[email protected]

:

I like to write a knx address to the bus so i add a injector with the
following json payload:
{"dstgad":"2/1/19", "value":"0", "dpt":"1"}

But then i receive an error, see atteched screenshot.
[image: naamloos]
https://cloud.githubusercontent.com/assets/1484623/16074907/f259b9a2-32ec-11e6-928f-21aaa1bbc08c.png

How to solve this?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#8, or mute the
thread
https://github.com/notifications/unsubscribe/ABl5LGjIPF0aWhcYOqG91WtMsuXggBOkks5qL8bggaJpZM4I2KuM
.

[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.

ykornilov avatar ykornilov commented on July 17, 2024

We have tried the same flow and it works

Try to update node-red-contrib-knx:
npm install -g node-red-contrib-knx

Which version Node-red are you using?
@gjniewenhuijse

from node-red-contrib-knx.

gjniewenhuijse avatar gjniewenhuijse commented on July 17, 2024

Hello, i used v0.13.4

Started Node-RED graphical event wiring tool..

Welcome to Node-RED

17 Jun 06:01:20 - [info] Node-RED version: v0.13.4
17 Jun 06:01:20 - [info] Node.js version: v0.10.29
17 Jun 06:01:20 - [info] Linux 4.4.11+ arm LE

from node-red-contrib-knx.

ykornilov avatar ykornilov commented on July 17, 2024

Hello!
Object Buffer in Node.js version v0.10.x has no method writeIntLE.
Update Node.js to version v0.12.x
We used version v0.12.7

from node-red-contrib-knx.

gjniewenhuijse avatar gjniewenhuijse commented on July 17, 2024

thanks, i give it a try...

from node-red-contrib-knx.

polarathene avatar polarathene commented on July 17, 2024

@aborovsky I just ran into similar problem myself. I am new to node-red. I was able to send message and trigger switch(light on/off) but each time it crash.

It is because of this line I think.

[info] [knx-out:TestNodeKNXOutput] sendAPDU: true
20 Jun 07:28:42 - [red] Uncaught Exception:
20 Jun 07:28:42 - TypeError: callback is not a function
    at SendWrap.cb [as callback] (/usr/local/lib/node_modules/node-red-contrib-knx/node_modules/knx.js/src/KnxSenderTunneling.js:40:21)
    at SendWrap.afterSend [as oncomplete] (dgram.js:407:8)

Either that or the previous call to Action: connection.Action(dstgad.toString(), value, null);, I'm not familiar with node-red, but if null is meant to be a function, that could also be reason it break.

Also on docs:
--- dpt: datapoint type (1 for booleans, 5 for 4-bit dimming setpoints etc) - defaults to 1 for boolean on/off GA's
This does not say it is required. But you can see value is assigned here, it is using .toString(), this throws error if you do not provide a value, see here for more info why. Use String(dpt) || '1' instead if you want to avoid error and also provide default. Your default case for switch statement throws an error as well, perhaps you should add REQUIRED to docs?

from node-red-contrib-knx.

aborovsky avatar aborovsky commented on July 17, 2024

@polarathene, first problem 'TypeError: callback is not a function' is fixed. Try to update library to version 0.7.1:
$ npm install [email protected]

from node-red-contrib-knx.

gjniewenhuijse avatar gjniewenhuijse commented on July 17, 2024

problem solved when i update node js.

from node-red-contrib-knx.

polarathene avatar polarathene commented on July 17, 2024

@aborovsky Works great thanks :)

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.