Zirnox getTemp(), getPressure() show random numbers #1482
Answered
by
gmhs022
AceOfZpades
asked this question in
Q&A
-
|
Beta Was this translation helpful? Give feedback.
Answered by
gmhs022
May 10, 2024
Replies: 1 comment 1 reply
-
The values are not measured in C or Bar, they're measured in abstract units found in the Zirnox tile entity code. local temp_c = zirnox.getTemp() * 1e-5 * 780 + 20 -- abstract temperature unit into *C
local pres_b = zirnox.getPressure() * 1e-5 * 30.0 -- abstract pressure unit into Bar |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AceOfZpades
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The values are not measured in C or Bar, they're measured in abstract units found in the Zirnox tile entity code.
I've made some simple functions to convert them here: