VolosR / TTGOWeatherStation

129 stars 59 forks source link

Issue with ani.h and 'getFormattedDate' #17

Open fischer94563 opened 5 months ago

fischer94563 commented 5 months ago

Sorry to bother you with this, but I'm new and inexperienced....

I downloaded the weather file, including "ani.h" and "Orbitron_Medium_20.h". I seem to have some compiling errors, and was wondering if you could steer me in the right direction. I love your projects! Thanks. Kevin

In file included from C:\Users\fisch\Documents\Arduino\Weather\Weather.ino:3: C:\Users\fisch\Documents\Arduino\Weather\ani.h:1:1: error: stray '\357' in program int frames=10; ^ C:\Users\fisch\Documents\Arduino\Weather\ani.h:1:2: error: stray '\273' in program int frames=10; ^ C:\Users\fisch\Documents\Arduino\Weather\ani.h:1:3: error: stray '\277' in program int frames=10; ^ C:\Users\fisch\Documents\Arduino\Weather\Weather.ino: In function 'void loop()': C:\Users\fisch\Documents\Arduino\Weather\Weather.ino:191:30: error: 'class NTPClient' has no member named 'getFormattedDate'; did you mean 'getFormattedTime'? formattedDate = timeClient.getFormattedDate(); ^~~~ getFormattedTime

exit status 1

Compilation error: stray '\357' in program

snikitin-de commented 4 months ago

Resave the files with UTF8 encoding without BOM. That worked for me.

fischer94563 commented 4 months ago

Thanks!  I will give that a try.Kevin

On Tuesday, April 30, 2024 at 01:32:32 PM PDT, Sergey Nikitin ***@***.***> wrote:  

Resave the files with UTF8 encoding without BOM. That worked for me.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

JuniorPolegato commented 3 months ago

Hi! You can try updates made by me at: https://github.com/JuniorPolegato/TTGOWeatherStation

fischer94563 commented 3 months ago

Thanks!I will try.Kevin

On Friday, May 31, 2024 at 04:36:10 PM PDT, Junior Polegato ***@***.***> wrote:  

Hi! You can try updates made by me at: https://github.com/JuniorPolegato/TTGOWeatherStation

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

fischer94563 commented 3 months ago

Thanks Junior.

I'm still getting an error:

In file included from C:\Users\fisch\Documents\Arduino\TTGOWeatherStation-main\TTGOWeatherStation\TTGOWeatherStation.ino:5:0: c:\Users\fisch\Documents\Arduino\libraries\ESPAsyncWebServer\src/ESPAsyncWebServer.h:26:10: fatal error: functional: No such file or directory

include

      ^~~~~~~~~~~~

compilation terminated. exit status 1

Compilation error: exit status 1

I've copied all of the files from your ZIP, and they are in the directory, and show across the IDE banner. I haven't done the configurations shown in steps 3-6. I have the standard TFT_eSPI.h installed from Bodner. Do I need to change this and install your forked version? I'm not sure how to do this.

Sorry for being such a dolt on this, but I'm new, and don't have a software background. I'm just a hardware dude... Thanks. Kevin

fischer94563 commented 3 months ago

Bodmer. Sorry.

fischer94563 commented 3 months ago

In file included from C:\Users\fisch\Documents\Arduino\TTGOWeatherStation-main\TTGOWeatherStation\TTGOWeatherStation.ino:5:0: c:\Users\fisch\Documents\Arduino\libraries\ESPAsyncWebServer\src/ESPAsyncWebServer.h:26:10: fatal error: functional: No such file or directory

include

      ^~~~~~~~~~~~

compilation terminated. exit status 1

Compilation error: exit status 1

fischer94563 commented 3 months ago

Hmmm. For some reason it drops the after the #include.

In file included from C:\Users\fisch\Documents\Arduino\TTGOWeatherStation-main\TTGOWeatherStation\TTGOWeatherStation.ino:5:0: c:\Users\fisch\Documents\Arduino\libraries\ESPAsyncWebServer\src/ESPAsyncWebServer.h:26:10: fatal error: functional: No such file or directory

include

      ^~~~~~~~~~~~

compilation terminated. exit status 1

Compilation error: exit status 1

fischer94563 commented 3 months ago

Jeez. It strips out the ////. Screenshot 2024-06-07 163538

JuniorPolegato commented 2 months ago

Hi!

On Linux, I can find that at esp32 libraries, so have you installed esp32 board and libraries and selected correct board?

find ~/.arduino15/ -iname "functional.*" /home/junior/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/asio/asio/asio/include/asio/detail/functional.hpp /home/junior/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32s2/include/asio/asio/asio/include/asio/detail/functional.hpp /home/junior/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32/include/asio/asio/asio/include/asio/detail/functional.hpp /home/junior/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32s3/include/asio/asio/asio/include/asio/detail/functional.hpp

fischer94563 commented 2 months ago

Hi Junior,Yes, I have ESP32 libraries installed, and have been able to successfully generate ESP32 code.  I will go back and check if the functional.hpp is present.  Thanks for showing the path to look.

Thanks for your help!Kevin

On Tuesday, June 11, 2024 at 06:30:06 PM PDT, Junior Polegato ***@***.***> wrote:  

Hi!

On Linux, I can find that at esp32 libraries, so have you installed esp32 board and libraries and selected correct board?

find ~/.arduino15/ -iname "functional.*" /home/junior/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/asio/asio/asio/include/asio/detail/functional.hpp /home/junior/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32s2/include/asio/asio/asio/include/asio/detail/functional.hpp /home/junior/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32/include/asio/asio/asio/include/asio/detail/functional.hpp /home/junior/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32s3/include/asio/asio/asio/include/asio/detail/functional.hpp

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>