charlielito / node-red-contrib-sensor-ds18b20 Goto Github PK
View Code? Open in Web Editor NEWNode-Red Contrib module to read temperature from DS19B20 Temperature Sensor
License: Apache License 2.0
Node-Red Contrib module to read temperature from DS19B20 Temperature Sensor
License: Apache License 2.0
Pretty new to NodeRed.
Using RPi Stretch/NR 0.18.7
Checked with
$ cat /sys/bus/w1/devices/w1_bus_master1/w1_master_slaves
28-051693ea56ff
$ cat /sys/bus/w1/devices/28-051693ea56ff/w1_slave
76 01 4b 46 7f ff 0c 10 d3 : crc=d3 YES
76 01 4b 46 7f ff 0c 10 d3 t=23375
any idea ?
Node https://flows.nodered.org/node/node-red-contrib-ds18b20-sensor works.
Can you add an offset field?
I have 3x ds18b20 on the same water system. So if no heating is working, all should read the same value.
But that is not the case. So instead off adding an extra function to add an offset, can you implement this in the library?
Thank you
I testet you code with two different sensores: DS18B20 (what it is designed for) and DS1820.
Found different values:
DS18B20 leads to values around 25.5 whats correct.
DS1820 leads to values around 3.18 what seems to small for roomtemperature.
Next i had a look at the code where you get the data from sensors :
node-red-contrib-sensor-ds18b20/node_modules/ds18b20/lib/ds18b20.js
Lines 39 to 56 in 99e8701
my "w1_slave" files look like this:
94 01 4b 46 7f ff 0c 10 26 : crc=26 YES
94 01 4b 46 7f ff 0c 10 26 t=25250
33 00 4b 46 ff ff 07 10 0b : crc=0b YES
33 00 4b 46 ff ff 07 10 0b t=25312
I am not really uset do java but it looks like you are calculating the value and you dont use the "t=" to find the value.
Could you maybe have a look on this?
Topic is missing in produced message. Even if Name/Topic is filled.
Hi
This node has stopped reading negative temperatures - I've tried 3 different sensors and 2 different pi (a Pi 4 2gb and Pi 4 4gb). The same sensors display negative numbers on my sonoff with tasmota so I don't believe there is anything wrong with the sensors.
What is really strange is that the node was able to report negative temperatures several weeks ago. I've run various updates on the pi's since that time but that shouldn't have broken this. Any ideas - (I can obviously fix it with a function block!)
If you need any other info - let as know.
Thanks in advance
Data:
Probes placed outside monitoring the temperature dropping)
Sonoff | Pi
0.7 | 0.7
0.6 | 0.6
0.5 | 0.5
0.4 | 0.4
0.3 | 0.3
0.2 | 0.2
0.1 | 0.1
0 | 0
-0.1 | 4095.9
-0.2 | 4095.8
-0.3 | 4095.7
-0.4 | 4095.6
Node red v1.2.9 running in docker (IOTstack build)
Pi 4 2gb & 4gb
Versions:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
PR #4 added a very nice bug fix and that code doesn't seem to be published to npm.
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.