• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 DHT11/DHT22 Web Server Output Format Question

Q&A Forum › Category: ESP32 › ESP32 DHT11/DHT22 Web Server Output Format Question
0 Vote Up Vote Down
Michael asked 1 year ago

I have been working with this sketch and have some questions regarding the output format.  I would like to display the temperature to one decimal point and humidity as an integer.  Can anyone recommend a text or web page that will help me decode the xml portion of the sketch?  I am having trouble keeping all of the variables and strings sorted out and the output commands are a mystery.
Thanks.
Mike
 

Question Tags: Output
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
Can you tell me exactly the project you are following?
Regards,
Sara

0 Vote Up Vote Down
Michael answered 1 year ago

Hi:  I have been working on both the ESP32 and ESP8266 web server projects that use the DHT22 to read and then display temperature and humidity on a web page.  Both of them work fine and I am trying to get a better understanding of how the data is stored and displayed on the webpage.  It is easy to set how many decimal places is displayed on the serial monitor but for me so far not on the webpage.  I do not have a good background in HTML, XML, Java Script, etc. and am looking for some information that will help me learn more about this.  
Thanks for any information that you can provide.
 

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
It depends on the type of webserver you’re building.
Depending on the project, you might need to adjust the decimal places on the arduino sketch, or using javascript.
But, it depends on the method you’re using to build the web server.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.