-->
Page 2 of 3

Re: Free Cloud based weather monitor (ESP8266,DHT22,sparkfun

PostPosted: Sat Feb 11, 2017 7:23 pm
by Rizzo
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.

Re: Free Cloud based weather monitor (ESP8266,DHT22,sparkfun

PostPosted: Wed Apr 05, 2017 5:38 am
by prokysoft
HI, how I can change it to Celsius instead od Farenheit?

Thank you very much in advance.

Re: Free Cloud based weather monitor (ESP8266,DHT22,sparkfun

PostPosted: Mon May 08, 2017 7:53 pm
by Beto San
Where can i download the DHT.h? I don't have it!

Re: Free Cloud based weather monitor (ESP8266,DHT22,sparkfun

PostPosted: Mon May 08, 2017 8:53 pm
by Beto San
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