Pressure InHg incorrectly rounded using weather station data
Posted: Sat Oct 02, 2010 9:25 pm
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>
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>