Bug 514419 - Weather Report widget taskbar tooltip pressure can be shown with too many digits
Summary: Weather Report widget taskbar tooltip pressure can be shown with too many digits
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Weather widget (other bugs)
Version First Reported In: 6.5.4
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-10 18:48 UTC by M. Schlegel
Modified: 2026-01-12 22:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.5.5
Sentry Crash Report:


Attachments
screen copy of Weather Report taskbar tooltip (45.18 KB, image/png)
2026-01-10 18:48 UTC, M. Schlegel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description M. Schlegel 2026-01-10 18:48:03 UTC
Created attachment 188398 [details]
screen copy of Weather Report taskbar tooltip

SUMMARY
When Weather Report plasma widget is used and pressure is selected to be shown, the pressure shown in the taskbar tooltip has too many digits

STEPS TO REPRODUCE
1. Set pressure to be displayed in Weather Report (WR) "Appearance" config
2. Hover mouse over WR taskbar widget
3. See pressure has too many digits

OBSERVED RESULT
Pressure shows too many digits of resolution like:   30.039989471435537 inches

EXPECTED RESULT
Show the pressure in a more usable resolution, instead of 30.039989471435537 inches,  "30.04" inches would be fine

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 43
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Kernel Version: 6.18.4-200.fc43.x86_64 (64-bit)

ADDITIONAL INFORMATION
Comment 1 TraceyC 2026-01-12 16:59:23 UTC
I can reproduce this on Plasma built from git master, using the same weather station, with Pressure set to hPa

I also noticed that the number doesn't appear to change in the tooltip regardless of what unit type I select in settings for Pressure
Comment 2 Nate Graham 2026-01-12 18:50:36 UTC
Hah! I guess we should cap the precision of the value we get from the weather station.
Comment 3 M. Schlegel 2026-01-12 20:08:44 UTC
(In reply to TraceyC from comment #1)
> I can reproduce this on Plasma built from git master, using the same weather
> station, with Pressure set to hPa
> 
> I also noticed that the number doesn't appear to change in the tooltip
> regardless of what unit type I select in settings for Pressure

Have you tried waiting the 30 mins or whatever the refresh time is?  Maybe it's only implements the unit change onward after the next update.
Comment 4 Bug Janitor Service 2026-01-12 21:23:59 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/978
Comment 5 Ismael Asensio 2026-01-12 22:11:26 UTC
Git commit 515d68d6f4be1c80c5c0857f81222e988e962d91 by Ismael Asensio.
Committed on 12/01/2026 at 21:16.
Pushed by iasensio into branch 'master'.

applets/weather: Fix pressure representation on tooltip

The pressure value shown in the tooltip was missing the unit conversion
to the user's unit choice. The conversion also sets the right decimal
precision of the display string.
FIXED-IN: 6.5.5

M  +3    -3    applets/weather/qml/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/515d68d6f4be1c80c5c0857f81222e988e962d91
Comment 6 Ismael Asensio 2026-01-12 22:28:43 UTC
Git commit 83fb7a26ac8a496cab8b6dae6b7e1fca540059c4 by Ismael Asensio.
Committed on 12/01/2026 at 22:12.
Pushed by iasensio into branch 'Plasma/6.5'.

applets/weather: Fix pressure representation on tooltip

The pressure value shown in the tooltip was missing the unit conversion
to the user's unit choice. The conversion also sets the right decimal
precision of the display string.
FIXED-IN: 6.5.5


(cherry picked from commit 515d68d6f4be1c80c5c0857f81222e988e962d91)

Co-authored-by: Ismael Asensio <isma.af@gmail.com>

M  +3    -3    applets/weather/qml/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/83fb7a26ac8a496cab8b6dae6b7e1fca540059c4