The Weather usermod does not display correct temperatures plus documentation is needed #112
Open
1 task done
Labels
bug
Something isn't working
What happened?
The Weather usermod is presenting a few important bugs, which I describe below:"
To Reproduce Bug
One can set the locations for lat=45.54 and lon=-73.63, activate the Weather usermod, cycle through the unit settings, and compare with what would be expected within openweathermap's website.
Expected Behavior
I would expect the temperatures to be displayed correctly.
Install Method
From https://wled-install.github.io/
What version/release of MM WLED?
The latest MoonModule XL release
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
No response
Anything else?
A few recommendations:
I suspect the issue is within the definition and conversion of Kelvin to Celsius and Fahrenheit, if there are any. One option is to incorporate the formulae for Kelvin to Fahrenheit (F = 1.8*(K-273) + 32), and from Kelvin to Celsius (C = K - 273.15) directly to the code (Kelvin is the standard output from the API).
Alternatively, one could define the
units
parameter within the API call, usingmetric
orimperial
, as inhttps://api.openweathermap.org/data/2.5/weather?lat=45.54&lon=-73.63&units=metric&appid=INCLUDE_YOUR_API_KEY
, and pull the variable directly from there. Perhaps this could be the simplest option.It is unclear what the bars in the chart describing future weather mean. Knowing the unit and value of each square, and the length of the x-axis is fundamental for this chart.
In addition to these changes, the documentation would greatly benefit from more writing and a more extensive definition of parameters. Without this, it is difficult for someone else to contribute to the project.
Code of Conduct
The text was updated successfully, but these errors were encountered: