0 votes
asked in Touch Interface by (160 points)

Hi all.

First off, a big thank you to the Thingpulse team for the WeatherStation project.

Amazing what these tiny things can do...

Anyway, here's my problem:

I am trying to run the WeatherStation Color code.

After changing my settings in the settings.h file and trying to compile in Arduino IDE, I get the following error:


Arduino: 1.8.5 (Windows 7), Board: "WeMos D1 R2 & mini, 80 MHz, 115200, 4M (3M SPIFFS)"

Archiving built core (caching) in: Z:\TEMP\arduino_cache_556507\core\core_esp8266_esp8266_d1_mini_CpuFrequency_80,UploadSpeed_115200,FlashSize_4M3M_a3d2f3ba9d42ea8481f365c66a945f01.a

sketch\esp8266-weather-station-color.ino.cpp.o: In function `drawAbout()':

D:\BackUp\ARDUINO\PROJECTS\ThingPulse Weather Station Color\esp8266-weather-station-color/esp8266-weather-station-color.ino:610: undefined reference to `gmtime'

sketch\esp8266-weather-station-color.ino.cpp.o: In function `getTime(long*)':

D:\BackUp\ARDUINO\PROJECTS\ThingPulse Weather Station Color\esp8266-weather-station-color/esp8266-weather-station-color.ino:610: undefined reference to `gmtime'

libraries\esp8266-weather-station-master\OpenWeatherMapForecast.cpp.o:(.text._ZN22OpenWeatherMapForecast5valueE6String+0x9e): undefined reference to `gmtime'

collect2.exe: error: ld returned 1 exit status

exit status 1

Error compiling for board WeMos D1 R2 & mini.


My hardware is a 2.8 Inch ILI9341 240x320 SPI Touch Panel SPI and a Wemos D1 Mini.

Could you please guide me on what I am doing wrong?

Thanks in advance

2 Answers

0 votes
answered by (5k points)

You're likely running an outdated version of the ESP8266 Arduino-core (i.e. toolchain). Check https://docs.thingpulse.com/guides/wifi-color-display-kit/#prepare-arduino-ide-for-esp8266 and make sure everything is up to date.

WeMos D1 R2 & mini

You should select the Pro board. Furthermore, this board is listed as LOLIN(WEMOS) D1 mini Pro in current versions.

and a Wemos D1 Mini.

Ah, you're not running ThingPulse hardware?

0 votes
answered by (160 points)

Hello Marcel, thank you for your reply.

I was indeed running ARDUINO IDE 1.8.5, now upgraded to 1.8.7.

No, I am not running Thingpulse hardware, just a Wemos D1 Mini.

I followed the instructions on the page you mentioned and now I get a different error


Board d1_mini (platform esp8266, package esp8266) is unknown

Error compiling for board LOLIN(WEMOS) D1 R2 & mini.


Any ideas?

commented by (2.7k points)
You have to update the ESP core, currently 2.4.2 or beyond.

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...