VolosR / TTGOWeatherStation

132 stars 59 forks source link

Issue with ani.h and 'getFormattedDate' #17

Open fischer94563 opened 8 months ago

fischer94563 commented 8 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 6 months ago

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

fischer94563 commented 6 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 5 months ago

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

fischer94563 commented 5 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 5 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 5 months ago

Bodmer. Sorry.

fischer94563 commented 5 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 5 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 5 months ago

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

JuniorPolegato commented 5 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 5 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: @.***>

AussiSG commented 4 weeks ago

@JuniorPolegato

Edit: Managed to get it compiled but it seems that the sketch is too big ....

Sketch uses 2039437 bytes (155%) of program storage space. Maximum is 1310720 bytes.
Global variables use 61556 bytes (18%) of dynamic memory, leaving 266124 bytes for local variables. Maximum is 327680 bytes.
Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.
text section exceeds available space in board

Compilation error: text section exceeds available space in board
JuniorPolegato commented 4 weeks ago

Hi!

@AussiSG

I updated to resolve the compilation errors with new versions of getParam and LED Control, but now I see you've resolved the issue.

About sketch size, at board configuration, you need to select a partiton scheme at last 2 MB:

Screenshot from 2024-10-16 02-01-08

Screenshot from 2024-10-16 02-01-39

AussiSG commented 3 weeks ago

Hi!

@AussiSG

I updated to resolve the compilation errors with new versions of getParam and LED Control, but now I see you've resolved the issue.

About sketch size, at board configuration, you need to select a partiton scheme at last 2 MB:

Thanks! Managed to compile and download. But the display seems to be a bit off to the left side. Checked with 2 boards which both show the similar left side off.

And also trying to connect to my wi-fi ssid seems to be failing because i've tried it sometimes but it always falls back to it's own AP.

PXL_20241016_190538761.jpg

PXL_20241016_190552161.MP.jpg

JuniorPolegato commented 3 weeks ago

Hi, @AussiSG!

You need to follow these steps, especially step 4, did you do it?

https://github.com/JuniorPolegato/TTGOWeatherStation?tab=readme-ov-file#how-to-get-it-on

AussiSG commented 3 weeks ago

hi @JuniorPolegato ,

Indeed I didn't read it carefully forgot to comment the “#include ”.... But it seems that it is skipping my WiFi SSID for some reason.

I got some special characters inside the password and also a blank space in the WiFi SSID it looks like that's not possible. Cause i try it with my personal hotspot which has not special characters and no black spaces that one connected.

JuniorPolegato commented 3 weeks ago

Hi @AussiSG !

Maybe & character, but you can add your Wi-Fi data into known_wifis.txt file, where name and password are separated by a tabulation \t. After that, you will just need upload this file.

New on 20-oct-2024: REPO

  1. Bluetooth disabled for a smaller sketch and power saving, it was just used to advertise IP;
  2. Press and hold the left button to swap the city name with the IP, release to restore;
  3. Press and hold the right button to sleep;
  4. During sleep, press the right button to wake up;
  5. Timeout to switch cities;
  6. Sleep timeout;
  7. Wake up timeout;
  8. Access the IP in your web browser on the same network to set timeouts, set to zero to disable it;
  9. At first time, access the AP IP and upload the files from files_to_upload folder, then configure your Wi-Fi.

Weather Station by Junior Polegato REPO

JuniorPolegato commented 3 weeks ago

In time, @AussiSG, the ESP32 just connect to 2.4GHz Wi-Fi band, check yours.

AussiSG commented 3 weeks ago

Hi @JuniorPolegato , thanks for the update ! will certainly check it out.

I tried editing the 'known_wifi.txt' file and uploading but that didnt succeeded. tried it with a 'manual tab' in .txt file . And indeed it's only 2.4Ghz which i'm trying to connect to. My password contains '+' and '=' this seems to be a dealbreaker.

Do I need to make it in the .txt as followed in real text: 'WIFI SSID' \t 'PASSWD'

JuniorPolegato commented 3 weeks ago

Hi! You can edit one line of the original file, just keep the tabulation character: (enable your editor to view invísible characters)

image