iprak / weatherapi

HomeAssistant custom integration to fetch data from weatherapi
MIT License
8 stars 3 forks source link

Pressure is always returned as "0" #15

Closed MikeKade closed 2 years ago

MikeKade commented 2 years ago

I have setup several lat / lon for various places that I want to measure. I am using the free service at the moment in order to determine if this service will give me what I need in regards to the weather.

Currently, both of the locations that I have selected will only return "0" for the pressure instead of inches of mercury (imperial measurements).

iprak commented 2 years ago

Thanks for reporting that, incorrect data pieces were being extracted. While evaluating the data, I also noted that weatherAPI documentation or the data is incorrect.

The pressure is reported as pressure_mb (Pressure in millibars) and pressure_in (Pressure in inches). But actually the values are in Pa and Psi.