Skip to content

Zirnox getTemp(), getPressure() show random numbers #1482

Answered by gmhs022
AceOfZpades asked this question in Q&A
Discussion options

You must be logged in to vote

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:

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AceOfZpades
Comment options

Answer selected by AceOfZpades
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants