PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Better Unit Conversion for PowerToys Run

Open Antokoy opened this issue 2 years ago • 1 comments

Description of the new feature / enhancement

I noticed that not all units can be conversed. For example kilowatt per hour to horsepower. I would appreciate if there were more units supported

Scenario when this would be used?

Using physics equations such as mass and energy conservation, usually problems are expressed using the imperial system but many books where someone can find the equations mentioned above use the metric system. Thus it would be very helpful not searching the internet each time for these types of conversions. Thanks a lot! image

Supporting information

No response

Antokoy avatar May 10 '24 11:05 Antokoy

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar May 10 '24 11:05 github-actions[bot]

Kilowatt-hours is a unit of energy, while horsepower is a unit of power.

To convert kWh to hp, you need to know the time period over which the energy is used. The formula to convert kWh to hp is:

hp = (kWh × 1.3404825737) / hours​

For example, if you have a machine that uses 200 kWh over a period of 20 hours, the power in horsepower would be:

hp = (200 × 1.3404825737) / 20​ = 13.404825 hp

I don't think this is a reasonable conversion ask without a second parameter into the equation. Reformatting this logic to be able to accept two parameters might feels too complex.

ethanfangg avatar May 10 '24 18:05 ethanfangg

Even other launchers (like Raycast for Mac) don't support this type of conversion:

image

I think general guidance is that we should aim to support unit conversions when additional parameters (like time in this case) aren't required. But for this example, it's likely better off to use a proper calculator or online conversion.

ethanfangg avatar May 10 '24 18:05 ethanfangg

Ohh right right, my mistake, by the way thanks a lot.

On Fri, May 10, 2024, 9:07 PM Ethan Fang @.***> wrote:

Closed #32807 https://github.com/microsoft/PowerToys/issues/32807 as completed.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/PowerToys/issues/32807#event-12772619912, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEZDTHSGQT4MRESY45P4DH3ZBUEHZAVCNFSM6AAAAABHQOF4MKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSG43TENRRHE4TCMQ . You are receiving this because you authored the thread.Message ID: @.***>

Antokoy avatar May 10 '24 18:05 Antokoy