https://bugs.kde.org/show_bug.cgi?id=425770

--- Comment #2 from Chris Holland <zrenf...@gmail.com> ---
This bug was encountered again by a redditor:
https://www.reddit.com/r/kde/comments/mbqdee/how_to_fix_weather_widget_wrong_icon_at_night/

So this issue is really the "time" dataengine's solar calculations as there's
reports of it affecting bbcomet, wettercom, and envcan.

We need to find out if the "weather" dataengine is entering the wrong solar
"time" dataengine "source" name, or if the bug is really in the "time"
dataengine's solar calculation code.

*
https://invent.kde.org/plasma/plasma-workspace/-/blame/master/dataengines/weather/ions/envcan/ion_envcan.cpp#L733
* https://invent.kde.org/plasma/plasma-workspace/-/tree/master/dataengines/time

Install `plasma-sdk` to get the Plasma Engine Explorer app.

* Run `grep source= ~/.config/plasma-org.kde.plasma.desktop-appletsrc` to find
out the weather "source name".
  * Eg: If grep says `source=envcan|weather|Toronto, ON` then your source name
is `envcan|weather|Toronto, ON`.
* Select the "weather" dataengine.
* Enter your "Source name", then click "Request Source". The data should appear
in the table at the bottom.
* Screenshot: https://i.imgur.com/yAyFdKi.png
* Copy the `Observation Timestamp`, `Latitude`, and `Longitude` values. You can
select the "Value" cell and press `Ctrl+C`.
* The London timezone in the `Observation Timestamp=Tue Mar 23 23:00:00 2021
GMT` is the `GMT` at the end. For Toronto it was `Tue Mar 23 19:00:00 2021
UTC-04:00`, so the timezone code was `UTC-04:00`.

-----

Now we need to check the solar time data.

* Select the "time" dataengine.
* Enter something like this into the source name:
`America/Toronto|Solar|Latitude=50|Longitude=50|DateTime=2021-03-23T19:06:00`
* https://i.imgur.com/19I0c8f.png
* Toronto:
`UTC-04:00|Solar|Latitude=43.68|Longitude=79.63|DateTime=2021-03-23T19:00:00`
* https://i.imgur.com/uuLxib5.png
* Click "Request Source", then scroll down to the bottom to find the data.
* Jot down all that data.

Now we finally have all the data we need to solve the bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to