-
Notifications
You must be signed in to change notification settings - Fork 22
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 temperatures #13
Comments
I can reproduce it with the help of an ice pack!
I think there's a problem in I may have been a bit naive with my above calculation. See the spec sheet: I think i'll be better off doing the proper two's complement on the bytes. |
Samples taken at 3 different temperatures with icepack from my freezer: It would be very useful if you could use the pre-calculated value from the scratchpad and thus exchange some precision for valid temperatures below zero. |
Posted some examples for both +ve and -ve temperatures
… On 9 Jun 2017, at 20:08 , Toby ***@***.***> wrote:
Any chance you could post a couple of example files (e.g. from /sys/bus/w1/devices/28-0416a443d6ff/w1_slave)?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#13 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/Ab8rCQzcOT3uUrL1dKXlCWlxHu7m4ewsks5sCZg8gaJpZM4N1TPZ>.
|
I have updated Parser.scala and ParserTest.scala in both client and server but temperatures below zero still display as large positive numbers. Is there anything else I need to do? |
I haven't deployed myself yet so am still testing. I'll prepare a 'package' once done and close the issue here. How are you deploying (see http://temperature-machine.com/docs/getting_started.html#setup-the-software). If you're building from source, you can test by following these instructions having first done the following;
|
Thanks, maybe I jumped the gun here. I originally deployed using the pre-installed image. If I build from source does this just overwrite the original temperature-machine? |
Yep, on the pre-installed image under So basically,
(You can drop/alter the Then restart. Note that this will checkout the branch so once it's merged back into Let me know how you get on. Oh, and I tend to take down the server / hub first to upgrade, then take down each child node. To be super safe, you can take them all down and update, server first. |
Just merged bf10a84 to master so ignore the |
I have rebuilt both master and slave as described above but am still getting large positive numbers when temperature goes below zero. Separately monitoring the sensor scratch file pre-calculated value shows the correct negative temperature. |
and the |
|
Cool, when you run |
Mostly success. My two client units built successfully and the one I've tested displays negative temperatures correctly. However the server returns errors and won't build. I have attached the console output for your comment. I may have to start over with the server if I can't solve it.
|
I have fixed server by re-installing from image then rebuilding from git. Great to see 24h time in main graph now and I see you have removed reference to sensor serial numbers too. Thanks for your help. |
Great stuff, glad its working for you! (BTW, if you have more than one sensor attached, it'll display the serial numbers again). 😄 |
Problem with temperatures below zero being logged as large positive numbers (e.g. 4085.3 °C). This is also reflected in the graphs auto-scaling to 4000 °C.
When I read the sensor temperature using a python script with an expression such as
echo
/usr/local/bin/get_temp.py | head -1 | awk -F. '{print $1"."int(($2/100)+0.5)}'`` this returns the correct negative temperature.Could this be a problem with how Temperature-Machine reads the sensor and handles signing?
get_temp.py.zip
The text was updated successfully, but these errors were encountered: