This has been an informative series, well presented. I have been doing just this with your #4 code, converting it to read an AHT10 sensor for Temp and Humidity. I think my next step is to have sort of data storage and allow various spans of time to be displayed. Keeping the slider as the picker to vary the amount of time between readings is another usefull feature for my purpose. Thanks!
@@duribv This was a working version near where I left off. After more than a year and a HD loss, I'm not sure if it still has the slider, but everything else worked.
Hello and thank you for your vids. I'm new to coding and it makes me feel lost very easily. I see the same types of projects that do the exact same things, yet the code can be written several different ways. I tried plugging in parts from other sketches that have worked to get the sensor readout to be in Fahrenheit but it just exit's the upload before it flashes. Your coding is different that others, better I'd say cuz I can almost read the progression as the lines go on. But I'm still stuck at noob status unable to figure out this minor Fº conversion or formula. How can I get itto read out in Fahrenheit? Looking forward to future videos from you. You got my sub! Dan
Hi Dan, Great to hear that my code is working for you. The temperature is read in the main loop with the following comment: dht.temperature().getEvent(&event); if this is successful, the temperature is available as a float value in event.temperature As you already noticed this is in Celsius. To convert this to Fahrenheit, you can do: float fahrenheit = (event.temperature* 1.8) + 32; With this statement we defined a new float variable "fahrenheit" that contains the temperature in fahrenheit. We then use this new variable as sensor variable, so this: sens_vals[ARRAY_LENGTH - 1] = round(10*event.temperature); should be changed to sens_vals[ARRAY_LENGTH - 1] = round(10*fahrenheit); NOTE: I am traveling and dont have a setup here to test this. I am fairly confident it is correct though. Please let me know if this worked for you. Regards, Sander
Hi Paul, I am not sure I fully understand the question. The .ino sketch is on my github and it includes the javascript data files. The .ino file is here: github.com/mo-thunderz/ESP32WifiTempSensor/tree/main/Arduino/Esp32WifiSensor/ and the javascript files are in the data subfolder: github.com/mo-thunderz/ESP32WifiTempSensor/tree/main/Arduino/Esp32WifiSensor/data
You explain things very well and make it easy to understand. Can't wait for the next one! Thank you
Thank you very much!
This has been an informative series, well presented. I have been doing just this with your #4 code, converting it to read an AHT10 sensor for Temp and Humidity.
I think my next step is to have sort of data storage and allow various spans of time to be displayed. Keeping the slider as the picker to vary the amount of time between readings is another usefull feature for my purpose. Thanks!
Thank you for your feedback, excellent usage of the slider!
Hi, have you been successful? I am doing similar task, so I would appreciate if you could share your code.
@@duribv This was a working version near where I left off. After more than a year and a HD loss, I'm not sure if it still has the slider, but everything else worked.
I always love your videos ..very informative and helped me alot for my projects. keep it up
Thank you very much for your feedback, really appreciated!
You are great man
Here, you only send data every second. Can I send data every millisecond instead, or is there a limit to how fast I can send my data?
Very good your videos, could implement the triggering of digital inputs and button triggers via websocket with a web interface
Yes, will do in my next video - stay tuned
Hello and thank you for your vids. I'm new to coding and it makes me feel lost very easily. I see the same types of projects that do the exact same things, yet the code can be written several different ways. I tried plugging in parts from other sketches that have worked to get the sensor readout to be in Fahrenheit but it just exit's the upload before it flashes. Your coding is different that others, better I'd say cuz I can almost read the progression as the lines go on. But I'm still stuck at noob status unable to figure out this minor Fº conversion or formula. How can I get itto read out in Fahrenheit? Looking forward to future videos from you. You got my sub! Dan
Hi Dan,
Great to hear that my code is working for you. The temperature is read in the main loop with the following comment:
dht.temperature().getEvent(&event);
if this is successful, the temperature is available as a float value in event.temperature
As you already noticed this is in Celsius. To convert this to Fahrenheit, you can do:
float fahrenheit = (event.temperature* 1.8) + 32;
With this statement we defined a new float variable "fahrenheit" that contains the temperature in fahrenheit. We then use this new variable as sensor variable, so this:
sens_vals[ARRAY_LENGTH - 1] = round(10*event.temperature);
should be changed to
sens_vals[ARRAY_LENGTH - 1] = round(10*fahrenheit);
NOTE: I am traveling and dont have a setup here to test this. I am fairly confident it is correct though. Please let me know if this worked for you.
Regards,
Sander
Instead of seeing website in our IP address, can we make it on real website? Any difference in the code? Thanks in advance...
You can look into mDNS for this. Alternatively you can use your router at home to configure a name instead of IP address
how to combine this using bootstrap sir
My apologies, but I have not looked into this yet
MoThunderz, where do I download the updated Javascript data file for this sketch - ESP32WiFiTenp Sensor.ino??
Hi Paul, I am not sure I fully understand the question. The .ino sketch is on my github and it includes the javascript data files. The .ino file is here:
github.com/mo-thunderz/ESP32WifiTempSensor/tree/main/Arduino/Esp32WifiSensor/
and the javascript files are in the data subfolder:
github.com/mo-thunderz/ESP32WifiTempSensor/tree/main/Arduino/Esp32WifiSensor/data