jef-sure / ili9341_dgx

Weather clock with automatic time synchronization
MIT License
16 stars 3 forks source link

How can I change the city? #1

Open dorinik opened 4 weeks ago

dorinik commented 4 weeks ago

Hello jef-sure! Congratulations on your work! I really like watches, and yours is a particularly spectacular one! I've been trying to make your project for a few days, but for now I can't get it to work completely... This is the first time I use Eclipse IDE. I installed Version 2024-03 (4.31.0), Build id: 20240307-1437. I tried several versions for ESP-IDF 5.2.1, 5.0.6 and 4.4.7. Compilation is completed successfully only with version 4.4.7. After compilation, the 2nd problem appeared: my display was only bright, without anything displayed on it, because the CS pin of the display was not connected. After several attempts I "discovered" that the CS pin connects to GPIO2. Now on the display I have a kind of counter, missing the weather data and the city. I specify that I added my configuration to the Kconfig.projbuild file, then I followed through the Termite program what esp32 is doing - I noticed the lack of network connection. I then added my configuration to the sdkconfig file, in the Example Configuration section, then I recompiled and esp32 connected to the network. After several "digs" on the Internet, I added in sdkconfig, to Component config-ESP-TLS: CONFIG_ESP_TLS_INSECURE=y CONFIG_ESP_TLS_SKIP_SERVER_CERT_VERIFY=y. Now I have the correct time (Romania), but the city and including the weather are of a city (Alba Iulia) located 64km from my city (Abrud). How can I correct the city? Can I somehow "correct" the IPinfo? Thank you and sorry for the long message!

jef-sure commented 4 weeks ago

Hello,

When I made this project, current ESP-IDF version was 4.2. Your TLS changes for 4.4 are needed for 4.3-4.4 versions. Why I didn't set CS - I can't say now, the project is 3 years old :-) To change city you have to change the code somehow. Probably you can configure your city in sdkconfig and use it in code. Theoretically, you can suggest your corrections to IPInfo service. I addressed this problem in my next project.

Good talking with you. Best regards. Anton