Skip to content
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

Open
nate8199 opened this issue Dec 14, 2016 · 4 comments
Open

negative temps #2

nate8199 opened this issue Dec 14, 2016 · 4 comments

Comments

@nate8199
Copy link

I'm having issues with negative temperatures, they aren't reading correctly, and they don't work if I select the Fahrenheit option.

@IBMRob
Copy link
Owner

IBMRob commented Dec 14, 2016

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?

@nate8199
Copy link
Author

nate8199 commented Dec 14, 2016 via email

@freddy4th
Copy link

I’ve had the same issue. Negative temps just come through as positive

@cuetus
Copy link
Contributor

cuetus commented Nov 10, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants