Celsius to Fahrenheit

adafruit.io wippersnapper BETA support, discussions, and more!

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Post Reply
User avatar
TheGodmothersGarden
 
Posts: 9
Joined: Tue May 24, 2022 6:50 pm

Celsius to Fahrenheit

Post by TheGodmothersGarden »

Is there a wat to make the components like the aht20 work in F not Celsius. It kind of of makes it useless because i have to look up the conversions every time.

I feel like most of the users of adafruit io are in the States. Would really love to see an option or at least have it be F by default.

User avatar
dastels
 
Posts: 11042
Joined: Tue Oct 20, 2015 3:22 pm

Re: Celsius to Fahrenheit

Post by dastels »

You can always wrap the AHTx0 class's temperature method with something that converts C to F.

As for making F the default... most of the world uses metric so C is a sensible default. And the sensor reports temperature in C.

I'm not seeing the connection between the sensory library and Adafruit IO. And I don't see anything in Adafruit IO that specifically mentions units.

Dave

User avatar
brubell
 
Posts: 1740
Joined: Fri Jul 17, 2015 10:33 pm

Re: Celsius to Fahrenheit

Post by brubell »

Hi, thanks for the feedback. We have an open issue for adding conversions to the WipperSnapper Beta firmware.

User avatar
TheGodmothersGarden
 
Posts: 9
Joined: Tue May 24, 2022 6:50 pm

Re: Celsius to Fahrenheit

Post by TheGodmothersGarden »

Any luck with adding this to the next firmware update I use this very often and it would be amazing if it’s not to hard for you guys to do. Please and thank you 🙏

User avatar
brubell
 
Posts: 1740
Joined: Fri Jul 17, 2015 10:33 pm

Re: Celsius to Fahrenheit

Post by brubell »

TheGodmothersGarden wrote: Wed Sep 21, 2022 6:17 am Any luck with adding this to the next firmware update I use this very often and it would be amazing if it’s not to hard for you guys to do. Please and thank you 🙏
We discussed this last week and merged in a solution.(https://github.com/adafruit/Wippersnapp ... 06cfafefef).

For devices with a temperature sensor, we'll present component options for enabling a temperature sensor to report data either degC or degF.

It's not live yet, but it'll be in an upcoming firmware release, we'll blog about it when it's up :)

User avatar
whmckinley
 
Posts: 14
Joined: Thu Oct 13, 2011 12:43 am

Re: Celsius to Fahrenheit

Post by whmckinley »

Can't wait for it to go live, Got about 15 of these I'll need to deploy for family.
IMG_3262.JPG
IMG_3262.JPG (86.52 KiB) Viewed 9 times
AHT20 with ESP32-S3 qty

Post Reply
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Adafruit IO Wippersnapper Beta”