Pressure InHg incorrectly rounded using weather station data

Have you found an error? Report here!
Post Reply
wuhu_software

Pressure InHg incorrectly rounded using weather station data

Post by wuhu_software »

When using a weather station configured for Inches of Mercury (InHg), the pressure value is rounded.

In the below example, 30.05 InHg is rounded to 30.1 InHg on the main YoWindow display.

It would be nice if the precision of all fields follow what is given in the XML file (including temperature and wind speed). For example, if the XML contains 10.1 degrees the main display should show 10.1 (rather than the rounded down 10 that it does now).

Thank you for the great program.

---

<response>
<current_weather>
<temperature unit="f">
<current value="48.7"/>
<feels_like value="48.7"/>
</temperature>
<humidity value="93"/>
<pressure value="30.05" unit="inchMerc"/>
<wind>
<speed value="0.0" unit="mph"/>
<direction value="231"/>
<gust value="0.0" unit="mph"/>
</wind>
<sky>
<precipitation>
<rain>
<rate value="0.00" unit="iph"/>
<daily_total value="0.09" unit="inch"/>
</rain>
</precipitation>
</sky>
<auto_update>
<interval value="60"/>
</auto_update>
</current_weather>
</response>
User avatar
par
Posts: 8741
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: Pressure InHg incorrectly rounded using weather station data

Post by par »

Welcome, Wuhu!

Yes, this is an old problem, still not solved, I hope to find time to fix it.
Thanks for reminding me about it.
Get YoWindow weather app for your phone or tablet.

Image Image Image
wuhu_software

Re: Pressure InHg incorrectly rounded using weather station data

Post by wuhu_software »

Thank you for the quick response.

Yes, the pressure issue is a fairly large problem for us here in the U.S. where we would like to see precision of 0.01. The different between 29.00 and 31.00 in the relative pressure makes quite a bit of difference.
Post Reply