pimoroni / weatherhat-python

MIT License
23 stars 16 forks source link

Celsius to Fahrenheit? #11

Closed omgcyrilic closed 1 year ago

omgcyrilic commented 2 years ago

I live in the .us and I'd like to convert C to F -- is there a clever way to do this in the python scripts?

thanks!

helgibbons commented 2 years ago

I don't think there's a conversion function currently built into the library, but it's straightforward to do like this:

fahrenheit = (celsius * 1.8) + 32