recipes icon indicating copy to clipboard operation
recipes copied to clipboard

Temperature Conversion

Open Techognito opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe.

A lot of the recipes that get imported often use Fahrenheit. I live in Europe and use Celsius most of the time.

Describe the solution you'd like

A quick and integrated way to change from Fahrenheit to Celsius, and maybe set a default in my profile settings

Describe alternatives you've considered

Currently, I just use a conversion app

Additional context

This is not any high priority for me, as I change the recipes to show Celsius and use a conversion app for if I need Fahrenheit. However, I thought I would add this Feature Request as it would be a nice feature to have.

Techognito avatar Mar 25 '25 14:03 Techognito

I fear that this might be difficult as there is no machine readable field/standard way of including temperature units in a recipe description. One could probably build some kind of front end logic that detects the ° sign and shows a conversion around it automatically. I will leave this open as I find it a useful idea but please dont expect anything here soon.

vabene1111 avatar Mar 27 '25 16:03 vabene1111

A regex like (?i)\b(\d{2,3})\s?(°|degrees)?\s?(f|fah?renheit)\b extracts the number out of multiple variations including:

350F 350°F 350 degrees F 350 Fahrenheit 350° Fahrenheit 350 fahrenheit

See: https://regex101.com/r/9xL4PY/1

If no unit is provided it gets a bit tricky, but that is the same of any unit in any recipe.

timdonovanuk avatar Apr 03 '25 10:04 timdonovanuk