Bug 453659

Summary: Option to display pressure in Pascals
Product: [Unmaintained] kdeplasma-addons Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: WeatherAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: nate
Priority: NOR    
Version First Reported In: 5.24.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.25
Sentry Crash Report:

Description Roke Julian Lockhart Beedell 2022-05-11 14:13:28 UTC
STEPS TO REPRODUCE
1. Invoke "Weather Report Settings".
2. Navigate to "Units".

OBSERVED RESULT
Solely kilopascals and hectopascals are available, whereas merely pascals are the SI unit.

EXPECTED RESULT
Pascals should be available.

SOFTWARE/OS VERSIONS
Windows: Negative.
macOS: Negative.
Linux/KDE Plasma: Positive.
KDE Plasma Version: 5.24.5.
KDE Frameworks Version: 5.93.0.
Qt Version: 5.15.3.

ADDITIONAL INFORMATION
If hecto- and mili- versions, etcetera, of any measurement are desired, I suggest that they be devisible by a user-provided numerical value within the interface of Weather Report. I shall suggest this formally separately.
Comment 1 Roke Julian Lockhart Beedell 2022-05-12 14:15:04 UTC
I am certain that "https://bugs.kde.org/show_bug.cgi?id=453660" is the best method of implementation of this.
Comment 2 Nate Graham 2022-05-14 21:26:27 UTC
Git commit d7e35ace37d42f23257c69dc4ac672aa3af63b74 by Nate Graham.
Committed on 14/05/2022 at 21:25.
Pushed by ngraham into branch 'master'.

applets/weather: allow showing pressure in regular Pascals
FIXED-IN: 5.25

M  +1    -0    applets/weather/plugin/plugin.cpp

https://invent.kde.org/plasma/kdeplasma-addons/commit/d7e35ace37d42f23257c69dc4ac672aa3af63b74
Comment 3 Nate Graham 2022-05-14 21:27:59 UTC
The change above added only a single line of code and avoided adding any new UI that is visible by default (you have to click on the combobox to see the option to use Pascals as the unit) so I feel fairly confident it was the actual best way to implement the requested feature. :)
Comment 4 Roke Julian Lockhart Beedell 2022-05-15 14:07:48 UTC
However, I must disagree, because what should I do if I desire milipascals?
Comment 5 Nate Graham 2022-05-15 19:04:37 UTC
You would file a bug report asking for it. But why would you want milipascals? What's the use case?
Comment 6 Roke Julian Lockhart Beedell 2022-05-17 16:35:33 UTC
Identical rationale to what causes onself to utilise pascals or hectopascals. During some situations, different divisions are desired. Specifically for this, it reduces the mathematical buden during scientific analysis. Consequently, please reconsider implementation of `http://bugs.kde.org/show_bug.cgi?id=453660`.

Is KDE's software not supposed to be extensible and easy to maintain? What I have proposed allows that better than what currently exists.