coolchip / node-enocean-esp2 Goto Github PK
View Code? Open in Web Editor NEWNode to parse eltako br14 bus telegrams, based on EnOcean Serial Protocol 2
License: MIT License
Node to parse eltako br14 bus telegrams, based on EnOcean Serial Protocol 2
License: MIT License
Hi,
I used your node red enocean esp2 package for over a year now. I had to modify it to get a good verification of all valid received data from my Eltako FGW14-USB gateway.
Regards
Lars
This is the diff:
diff --git a/parser.js b/parser.js
index d0db21b..380e935 100644
--- a/parser.js
+++ b/parser.js
@@ -83,11 +83,12 @@ const hexStringToByteArray = function (hex) {
return bytes;
};
-const verifyChecksum = function (buf, checksum) {
+const verifyChecksum = function (buf, checksum, hseq) {
let result = 0;
for (let index = 0; index < buf.length; index++) {
result = (result + buf[index]) % 0xff;
result = (result + buf[index]);
@@ -100,7 +101,7 @@ const sliceBuffer = function (buf) {
telegram.org = buf.readUInt8(3);
telegram.payload = buf.slice(4, 4 + telegram.length - 2);
telegram.checksum = buf.readUInt8(4 + telegram.length - 2);
I really want to use this nodes in nodered. I've been able to hook up the incoming node and am seeing telegram messages from the Eltako enocean bus, but want to know how to use the output node. How to send telegram messages (format in nodered), more concrete: how do I control actuators (f.e. fud14 dimmer) from nodered? How to receive feedback from the actuators?
If you could share an example nodered flow with a demonstration of the capabilities that would be great.
Thanks in advance!
Ps. I could not find any documentation. If there is any, a link to it will help me also.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.