Bug 479478 - OpenWeatherMap "warnings" configuration: category mismatch
Summary: OpenWeatherMap "warnings" configuration: category mismatch
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: 3.6.7
Platform: unspecified Unspecified
: NOR normal
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-06 19:39 UTC by frederico.tony
Modified: 2024-07-31 12:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 3.7.2
Sentry Crash Report:


Attachments
OpenWeatherMap parameters set for a "good" config even the values that correspond to the UI look "bad". (219.73 KB, image/png)
2024-01-06 19:39 UTC, frederico.tony
Details
01 Correct Setup Warnings (123.24 KB, image/png)
2024-01-11 03:47 UTC, frederico.tony
Details
02 Temperature Warning (136.50 KB, image/png)
2024-01-11 03:48 UTC, frederico.tony
Details

Note You need to log in before you can comment on or make changes to this bug.
Description frederico.tony 2024-01-06 19:39:59 UTC
Created attachment 164718 [details]
OpenWeatherMap parameters set for a "good" config even the values that correspond to the UI look "bad".

SUMMARY
***
When using the openweathermap option for weather in EKOS the parameter to set warnings as listed in the UI appears to be mismatched to the wrong parameter.

UI displayed parameter vs the parameter that generates warnings
Temp actually alerts for the Weather parameter
Pressure actually alerts for the Temp parameter
Humidity: I'm unsure what parameter is set here, but it isn't Humidity
Wind : I'm unsure what parameter is set here, but it isn't Wind
Clouds actually alerts for the Wind parameter
Status Code actually alerts for the Rain parameter
***
I'm observing this on the Raspberry Pi version of KStars/EKOS/INDI

STEPS TO REPRODUCE
1. Enable OpenWeatherMap, connect, go to the "parameters" tab on the INDI page for OpenWeatherMap
2. In the Pressure warning parameter set the min/max values to 80/100


OBSERVED RESULT
Observe that the OpenWeatherMap module begins providing warnings for Temperature instead of Pressure

EXPECTED RESULT
The OpenWeatherMap module should provide warnings on Pressure

ADDITIONAL INFORMATION
Attached is a screenshot that shows the UI for the parameters within OpenWeatherMap for EKOS.

Thank you!
Comment 1 Jasem Mutlaq 2024-01-08 07:47:17 UTC
is the issue in the INDI driver?? Please show an example of the issue you describe.
Comment 2 frederico.tony 2024-01-11 03:47:06 UTC
I see it on the INDI Control Panel, but I'm not knowledgeable enough to know if that means that it's the INDI driver.

I'll add two more screenshots to the bug report: 

"01 Correct Setup Warnings" This shot shows the parameters that I've set myself (not the defaults) to get the warnings to quiet down. Note that my current temp is 4.92, but the temperature warning is set to min 0 / max 0. The temperature warning should be going off, but it's not. Also note, the pressure warning range is set to min -10 and max 30.

*Unrelated to this bug: The weather warning is going off because it's currently cloudy here and triggering an 802 or "2" weather code which is outside my normal weather warning parameter.

"02 Temperature Warning" In this next screenshot I've changed the pressure (not temperature) warning max from 30 down to 0. So my pressure warning is now set to min -10 and max 0. As a result of making this change to pressure, the temperature starts issuing a warning.

The Bug: This observation is why I think the warning field labels in this screen are mapped to the wrong warning parameter data.

I hope this helps and I'm happy to provide more info or answer other questions to help get this resolved. Thank you for looking into this for me!
Comment 3 frederico.tony 2024-01-11 03:47:40 UTC
Created attachment 164802 [details]
01 Correct Setup Warnings
Comment 4 frederico.tony 2024-01-11 03:48:00 UTC
Created attachment 164803 [details]
02 Temperature Warning
Comment 5 Jasem Mutlaq 2024-07-31 12:23:33 UTC
Should be fixed in 3.7.2