A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By Rizzo
#62423 Very Nice. One suggestion on the HTML file.
Add an interval to update the data without redrawing the graphics.
That way you can leave the page open and the data and gauges appear to magically update without drawing the chart and gauges everytime.
as in,
Code: Select allsetInterval('drawChart()', 60000);


This would go just before the end of the closing script tag. </script>
The value is in milliseconds.
The above is an example of 1 min updates.
User avatar
By Beto San
#65733 These error occurs when i try to compile the sketch, i saved the sketch.ino alonside the DHT.h from https://github.com/adafruit/DHT-sensor- ... ster/DHT.h in the same folder:

Archiving built core (caching) in: C:\Users\Beto\AppData\Local\Temp\arduino_cache_129390\core\core_esp8266_esp8266_generic_CpuFrequency_80,FlashFreq_40,FlashMode_dio,UploadSpeed_115200,FlashSize_512K64,ResetMethod_ck,Debug_Disabled,DebugLevel_None_____d15f8909c9b4e6a4f9b307e83a579dfe.a
sketch\ESP8266_DHT22.ino.cpp.o:(.text.setup+0x2c): undefined reference to `DHT::begin()'

sketch\ESP8266_DHT22.ino.cpp.o:(.text.setup+0x51): undefined reference to `DHT::begin()'

sketch\ESP8266_DHT22.ino.cpp.o: In function `setup':

C:\Users\Beto\Desktop\ESP8266_DHT22/ESP8266_DHT22.ino:43: undefined reference to `DHT::DHT(unsigned char, unsigned char, unsigned char)'

sketch\ESP8266_DHT22.ino.cpp.o: In function `__static_initialization_and_destruction_0':

C:\Users\Beto\Desktop\ESP8266_DHT22/ESP8266_DHT22.ino:45: undefined reference to `DHT::DHT(unsigned char, unsigned char, unsigned char)'

sketch\ESP8266_DHT22.ino.cpp.o:(.text.loop+0x6c): undefined reference to `DHT::readHumidity(bool)'

sketch\ESP8266_DHT22.ino.cpp.o:(.text.loop+0x70): undefined reference to `DHT::readTemperature(bool, bool)'

sketch\ESP8266_DHT22.ino.cpp.o:(.text.loop+0x74): undefined reference to `DHT::computeHeatIndex(float, float, bool)'

sketch\ESP8266_DHT22.ino.cpp.o:(.text.loop+0x9b): undefined reference to `DHT::readHumidity(bool)'

sketch\ESP8266_DHT22.ino.cpp.o:(.text.loop+0xa9): undefined reference to `DHT::readTemperature(bool, bool)'

sketch\ESP8266_DHT22.ino.cpp.o:(.text.loop+0xb8): undefined reference to `DHT::readTemperature(bool, bool)'

sketch\ESP8266_DHT22.ino.cpp.o: In function `String::operator+=(char const*)':

C:\Users\Beto\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.h:121: undefined reference to `DHT::computeHeatIndex(float, float, bool)'

collect2.exe: error: ld returned 1 exit status

exit status 1
Erro compilando para a placa Generic ESP8266 Module