com.ruuvi.station.ios icon indicating copy to clipboard operation
com.ruuvi.station.ios copied to clipboard

Check that all platforms calculate humidity measurements same way

Open markoaamunkajo opened this issue 2 years ago • 8 comments

Description:

Customer contacted us with his observation that in iOS application absolute humidity readings are changing "wildly" as the temperature changes.

Let's check humidity calculation formulas on all platforms just to make sure we are using same on all.

markoaamunkajo avatar Jul 19 '22 03:07 markoaamunkajo

The absolute humidity is calculated with relative humidity which is dependent on air temperature. I find it logical that change in temperature affects humidity. However, I am keen to know more about the "wildly" situation. And, I am going to double check this with android app as well.

priyonto avatar Jul 19 '22 06:07 priyonto

@priyonto please share formula so we can collect and compare

markoaamunkajo avatar Jul 21 '22 04:07 markoaamunkajo

@markoaamunkajo iOS is using the default methods provided by Apple for measurements. You can find more about the methods here, but I am unsure whether that will be helpful because we don't know about the internal calculation.

Documentation: https://developer.apple.com/documentation/foundation/measurement

priyonto avatar Jul 21 '22 09:07 priyonto

I quickly checked abs humi graphs of a same sensor and iOS looks different than the others:

iOS:

image

Web:

image

Android:

image

Also dew point calculations are different on iOS than others:

iOS:

image

Web:

image

Android:

image

laurijamsa avatar Jul 27 '22 12:07 laurijamsa

@laurijamsa @priyonto so conclusion is that Apple uses different method and there is nothing we can do about it?

markoaamunkajo avatar Aug 08 '22 03:08 markoaamunkajo

@markoaamunkajo Kind of, but I wouldn't say we can't do anything about it. I mean, we can probably do the custom implementation if needed.

But, the reason for mentioning you in this card is to double-check the issue and confirm whether you can reproduce it. I have tried to reproduce it on my end, but I could not find any dissimilarities between the android and the iOS app.

priyonto avatar Aug 08 '22 20:08 priyonto

It may be that the issue https://github.com/ruuvi/com.ruuvi.station.ios/issues/1070 was the problem here. But I'll keep this issue self-assigned and will try to reproduce the problem before closing.

laurijamsa avatar Oct 27 '22 03:10 laurijamsa