Celcius to Farenheit

9 years 8 months ago #878 by tonyn79
Celcius to Farenheit was created by tonyn79
Hopefully this is a simple one. Is there a method in place that I can call the temp to be displayed in farenheit?

Please Log in or Create an account to join the conversation.

9 years 8 months ago #879 by EasyIoT
Replied by EasyIoT on topic Celcius to Farenheit

tonyn79 wrote: Hopefully this is a simple one. Is there a method in place that I can call the temp to be displayed in farenheit?


Do you mean in EasyIoT server? No, because EasyIoT server is unit independent. The best solution is to convert in farenheit in sensor node. If you can not do that than create one additional virtual module and in make conversion in Automation and then send value in Fahrenheit to this virtual module.

Please Log in or Create an account to join the conversation.

9 years 8 months ago #880 by tonyn79
Replied by tonyn79 on topic Celcius to Farenheit
Alright that will work, I will add it to the sketch and see how that comes out. TY

Please Log in or Create an account to join the conversation.

9 years 8 months ago #892 by tonyn79
Replied by tonyn79 on topic Celcius to Farenheit
Worked like a champ, I replaced the line:
esp.send(msgTemp.set(Temperature, 1));
with:
esp.send(msgTemp.set(dht.toFahrenheit(Temperature, 1));

Thanks for the help!

Please Log in or Create an account to join the conversation.

Time to create page: 0.532 seconds

Forum latest

  • No posts to display.