Page 1 of 1
Help with convert form celsius to fahrenheit on LUA?
Posted:
Sun Jul 05, 2015 11:56 am
by OG Style
I am new to all this and I currently having my ESP displaying the temp in a web browser. I used the code info from this page.
viewtopic.php?f=19&t=752Can someone please help we with converting it from celsuis to fahrenheit?
Thanks
Re: Help with convert form celsius to fahrenheit on LUA?
Posted:
Sun Jul 05, 2015 1:41 pm
by kolban
Just a thought ... but seeing as your question relates to an already existing forum thread ... would it not make sense to post your question into that existing thread? That way the folks who have been active already on that thread may be available to assist?
Re: Help with convert form celsius to fahrenheit on LUA?
Posted:
Sun Jul 05, 2015 3:16 pm
by tytower
Try google for converters . There is an easy formula and its used in most arduino sensor reading programs and there is one in the wiki above too.
Serial.print((9.0/5.0)*T+32.0,2); prints T in C as F
Re: Help with convert form celsius to fahrenheit on LUA?
Posted:
Sun Jul 05, 2015 6:54 pm
by OG Style
I did put a post on that thread first. I added your line to the code and I got and error. I added " * 9 / 5 + 32" to the end of line 77 and it seems to be working fine.