-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
negative temps #2
Comments
When you say aren't reading correctly can you provide a bit more information i.e. is it over/under reading by a lot, a little etc? Regarding the Fahrenheit option - do you get any errors in your NodeRed logs? |
I actually found another node I'm trying, node-red-contrib-ds18b20-sensor,
along with a function to convert to Fahrenheit, it simplified my layout
some this way also.
I will try and set it up to provide a reading from both your node and this
newer one.
…On Dec 14, 2016 1:23 AM, "RobQuads" ***@***.***> wrote:
When you say aren't reading correctly can you provide a bit more
information i.e. is it over/under reading by a lot, a little etc?
Regarding the Fahrenheit option - do you get any errors in your NodeRed
logs?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABJpRDR412SnKpu6pbvbd9F_X5PWgwxKks5rH6dlgaJpZM4LMfoX>
.
|
I’ve had the same issue. Negative temps just come through as positive |
The regex does not match negative numbers ie t=-1234 1Wire.js change data.match(/t=(\d*)/) to data.match(/t=(-?\d*)/) and it works. |
I'm having issues with negative temperatures, they aren't reading correctly, and they don't work if I select the Fahrenheit option.
The text was updated successfully, but these errors were encountered: