Follow

thanks to i was able to figure out the weird calculations used to convert the values returned by the api to kelvin 🥳

github.com/skylot/jadx

· · Web · 1 · 0 · 0

damn it, i have no idea how to revert it, though 🙈

@schrofi It's `kelvin = 1_000_000 / value` rounded to the nearest multiple of 50. If you only use Int you don't need any additional rounding going the other way. So it's `value = 1_000_000 / kelvin`

Sign in to participate in the conversation
digitalcourage.social

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!