Open ps2aux opened 3 years ago
I confirm this is happening on both Android 10 and 11.
This text is not generated by Geometric Weather (these words don't appear in the translation files). Please check weather on AccuWeather official website and let us know if you can find the same sentence.
Here is an example of the difference between the AccuWeather website and the Geometric app. There is often a discrepancy of a degree or two on the temperatures, not a big deal, but kind of strange. What I find very odd though, is that the temperature is in Fahrenheit, but the snow is given in centimeters.
OK, so I just ran a little test. It sure looks to me like we have a bug here. I changed the temperature unit settings and it most definitely does affect the forecast text even though not generated by Geometric Weather. However changing the precipitation unit setting does nothing for the forecast text. Does this not indicate that something was overlooked in the code that connects the precipitation setting to the forecast?
Since then, I had a look at AccuWeather code, and here is what happens: 1) Data is always requested in metric (it is converted on display if the user preferes another unit) 2) The weather text returned by the API is different if you request metric or imperial. Since we are requesting metric, you will have imperial units for number data (converted from metric on display) and metric units for text data. 3) There is a built-in function to parse this weather text and change the unit, but it seems to no longer work. 4) You can't request data in imperial directly (and do a different conversion for numbers in that case: imperial (API) > metric (database) > imperial (on display)) because there are actually 4 units available in Geometric Weather, just for precipitation (let alone the other data to handle).
The customization possibilities of Geometric Weather are not making it easy to find a solution.
Regardless of the units I've selected in the settings, the forecast is delivered to me in Celsius.
My guess is that the AccuWeather API is returning your requests in Celsius, and a quick client side conversion is in order. Unfortunately, that's just a shot in the dark, as I don't have access to a packet sniffer at my current location.