Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with ani.h and 'getFormattedDate' #17

Open
fischer94563 opened this issue Mar 16, 2024 · 20 comments
Open

Issue with ani.h and 'getFormattedDate' #17

fischer94563 opened this issue Mar 16, 2024 · 20 comments

Comments

@fischer94563
Copy link

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
Copy link

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

@fischer94563
Copy link
Author

fischer94563 commented May 1, 2024 via email

@JuniorPolegato
Copy link

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

@fischer94563
Copy link
Author

fischer94563 commented May 31, 2024 via email

@fischer94563
Copy link
Author

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
Copy link
Author

Bodmer. Sorry.

@fischer94563
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

@JuniorPolegato
Copy link

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
Copy link
Author

fischer94563 commented Jun 12, 2024 via email

@AussiSG
Copy link

AussiSG commented Oct 14, 2024

@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
Copy link

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
Copy link

AussiSG commented Oct 16, 2024

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
Copy link

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
Copy link

AussiSG commented Oct 19, 2024

hi @JuniorPolegato ,

Indeed I didn't read it carefully forgot to comment the “#include <User_Setup.h>”....
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
Copy link

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
Copy link

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

@AussiSG
Copy link

AussiSG commented Oct 20, 2024

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
Copy link

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

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants