Closed fufar closed 1 year ago
i have the same issue. excavator temp reads as 4718652*C
I have the same :) Do we need to devide the value by 100.000? :D
for me divison by 100000 wouldnt work - numbers are different may be there is a way to test throu api what nicehash data recives - and understand where error is? @brianberg any ideas?
ok, found that addon based on https://github.com/nicehash/rest-clients-demo find issue https://github.com/nicehash/rest-clients-demo/issues/29 temp must be divided by 65536 for me it gives right temp
for ha i changed in custom_components/nicehash/device_sensors.py
264: self._temperature = device.temperature
to
264: self._temperature = device.temperature % 65536
and now see correct temp
@tcate03 @agoncalvesos try this pls, if work ok - i will make a pr
%
is the modulus operator. I'm curious to understand why that's necessary. It seems as though the NiceHash API is giving you the wrong value. What is the significance of 65536
?
Edit: Curiously, 2^16 = 65536
🤔
Did NiceHash change their API responses for GPU temps? Seems like an easy change to make to the integration but I don't want to break it for everyone else.
dont know why, found it here https://github.com/nicehash/rest-clients-demo/issues/29 may be some difference between nice hash versions( i use quick miner) or between versions of program?
This is more of a bandaid solution, but we could check the value of the temperature if it's above a certain value (eg. 1000 or 65536) then % 65536
🤷♂️
@fufar I think you're right, it's a QuickMiner thing
It's been a long time since I've even thought about unsigned integers 😆
ok, so can you make some fix?
I need to get my local test setup working again, but I think I can get a fix out for this, this week
Edit: this should do it but I need to verify and test
tryed, looks like working ok for me
Latest version 0.1.1
should fix this issue, I'll leave this open until it's confirmed
for me - ok @tcate03 @agoncalvesos ?
negative. Still seeing excavator temps of 65,535 C
Negative for me too, but at least the number is not as big.
@fufar using the low_temperature property works for me :) I have temperatures of 57ºC
Version of the custom_component
72543f6 ? latest
Configuration
2021.5.3, docker, debian
Describe the bug
A clear and concise description of what the bug is. This is not my gpu temp. This is sun temp or whatever :)
I have only 1 gpu so cant say - it is problem for one or all