logo elektroda
logo elektroda
X
logo elektroda

Compile error for weather station on ESP8266 - Timezone-master library, Arduino 1.8.13

pier 1155 18
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18904562
    pier
    Level 24  
    Hello.
    I wanted to run a meteo station on an ESP8266.
    During compilation it threw a long error. I am unable to deal with it. I have the libraries all, the boards updated and I can't compile.
    And here is the error:
    Code: C / C++
    Log in, to see the code
    .

    Please help.
  • ADVERTISEMENT
  • #2 18904817
    JacekCz
    Level 42  
    Note: the Timezone-master library runs on avr architecture(s) and may not be compatible with the current board which runs on esp8266 architecture(s).
    .

    Is there something unreadable about this?
    You have acquired the wrong library.

    And:

    Found multiple libraries in "SD.h" .

    I will leave aside my mischievous view, about the quality of most of the so-called "libraries" of the arduino.
  • #3 18905340
    khoam
    Level 42  
    I compiled the example (TFT_eSPI_OpenWeather) from the link you provided (OpenWeather library):
    Code: Bash
    Log in, to see the code
    .
    As you can see, there is no problem with the OpenWeather library itself. I would suggest verifying the version of the libraries installed in the Arduino IDE and that they are not duplicated.
  • #4 18905342
    pier
    Level 24  
    JacekCz wrote:
    Note: the Timezone-master library runs on avr architecture(s) and may not be compatible with the current board which runs on esp8266 architecture(s).
    .

    Is there something unreadable about this?
    You have acquired the wrong library.

    And:

    Found multiple libraries in "SD.h" .

    I will leave aside my mischievous view, about the quality of most of the so-called "libraries" of the arduino.


    I have tried various Timezone libraries and always the same errors. I have already used this library several times with ESP and no problem.

    As for the SD.h library, I don't know what the issue is. I can't delete any of them because it throws new errors.
  • ADVERTISEMENT
  • #5 18905356
    khoam
    Level 42  
    pier wrote:
    I have already tried various Timezone libraries and always the same errors. I've already used this library several times with ESP and there was no problem.
    As for the SD.h library, I don't know what the issue is. I can't remove any of them because it throws new errors.
    .
    In post #3 the versions of the libraries are listed . The SD library, on the other hand, has been "system" for some time and does not need to be installed additionally - hence the errors about two different SD libraries.

    Added after 6 [minutes]:

    Although the Timezone library is only labelled as "avr", OpenWeather only uses the part of it that is independent of the MCU type.
  • ADVERTISEMENT
  • #6 18905405
    pier
    Level 24  
    khoam wrote:
    pier wrote:
    I have already tried various Timezone libraries and always the same errors. I've already used this library several times with ESP and there was no problem.
    As for the SD.h library, I don't know what the issue is. I can't remove any of them because it throws new errors.
    .
    In post #3 the versions of the libraries are listed . The SD library, on the other hand, has been "system" for some time and does not need to be installed additionally - hence the errors about two different SD libraries.

    Added after 6 [minutes]:

    Although the Timezone library is only labelled "avr", OpenWeather only uses the part of it that is independent of the MCU type.


    I don't know what the SD.h is about but I didn't install anything extra. As you can see from the error description one is in the Arduino folder and the other one I don't know like with the ESP board.
    Which one to remove and which one to leave?
  • #7 18905481
    khoam
    Level 42  
    It should remain the one that is in Arduino Core for ESP8266. However, I don't think this is the cause of the problems in this case - the Arduino IDE selects the version of the library that is in the Arduino Core first anyway.
  • #8 18905498
    pier
    Level 24  
    khoam wrote:
    The one that should remain is the one that is in Arduino Core for ESP8266. However, I don't think this is the cause of the problems in this case - the Arduino IDE selects the version of the library that is in Arduino Core first anyway.
    .
    I have removed the library from the Arduino folder. Still a bunch of errors. What else to cling to?
  • #9 18905505
    khoam
    Level 42  
    What version of the TFT_eSPI library do you have installed?
  • #10 18905510
    pier
    Level 24  
    khoam wrote:
    What version of the TFT_eSPI library do you have installed?
    .
    2.2.14
  • #11 18905512
    khoam
    Level 42  
    Update perhaps to version 2.2.19 (the latest) - I compiled the example with this version.
  • ADVERTISEMENT
  • #12 18905516
    pier
    Level 24  
    khoam wrote:
    Update maybe to version 2.2.19 (the latest) - I compiled the example with this version.
    .
    In the list I have the highest version 2.2.14
  • #14 18905526
    pier
    Level 24  
    khoam wrote:
    Uninstall version 2.2.14 download the ZIP package from https://github.com/Bodmer/TFT_eSPI - the library can also be installed from a ZIP file.
    .
    Well that's what I'm doing and still errors.
  • #15 18905541
    khoam
    Level 42  
    The same exact errors, or different ones?
    What is the content of your library.properties file in the TFT_eSPI library? In mine it is:
    Code: Ini
    Log in, to see the code
    .
    Libraries installed from ZIP, are not updated later by the Arduino IDE. This has to be done "manually".
  • #16 18905546
    pier
    Level 24  
    khoam wrote:
    Same exact errors, or different?
    What is the content of your library.properties file in the TFT_eSPI library? In mine it is:
    Code: Ini
    Log in, to see the code
    .
    Libraries installed from ZIP, are not updated later by Arduino IDE. This has to be done "manually".
    .

    This is exactly what I have.

    Added after 8 [hours] 59 [minutes]: .

    Khoam I may have a stupid idea but I don't know what to do anymore.
    Maybe I uninstall the whole Arduino with libraries and install from scratch? Might that help?
  • #17 18906428
    khoam
    Level 42  
    pier wrote:
    Maybe I'll uninstall the whole Arduino with libraries and reinstall from scratch? Might help?
    .
    It certainly won't do any harm. The TFT_eSPI, JPEGDecoder, JSON_Decoder libraries are probably better downloaded directly from the master on github. I did that myself and the compilation went without problems.
  • #18 18906724
    pier
    Level 24  
    khoam wrote:
    pier wrote:
    Maybe I uninstall the whole Arduino with libraries and reinstall from scratch? Might help?
    .
    It certainly won't do any harm. The TFT_eSPI, JPEGDecoder, JSON_Decoder libraries are probably better downloaded directly from the master on github. I did that myself and the compilation went without problems.
    .

    I did as written. The program compiled, uploaded and poof again. It does not display any icon.
    On the serial port, it is sending messages that it has not found fonts and icons.
    In the folder with the program is the data with all the fonts and icons, where do I put this to make it work?

Topic summary

The discussion revolves around a compilation error encountered while attempting to run a weather station project on an ESP8266 using the Arduino IDE (version 1.8.13). The user reports issues with the Timezone-master library, which is incompatible with the ESP8266 architecture, leading to compilation failures. Various responses suggest checking library versions, specifically recommending an update to the TFT_eSPI library to version 2.2.19. The user also faces conflicts with multiple SD.h libraries and is advised to retain the version included with the ESP8266 core. After reinstalling libraries and the Arduino IDE, the user still experiences issues with missing fonts and icons during runtime, prompting further guidance on using SPIFFS for file management.
Summary generated by the language model.
ADVERTISEMENT