marcotammaro / M5Paper---Modern-Weather-Dashboard

A modern weather dashboard that looks great!
13 stars 1 forks source link

Lots of problems when compiling #2

Closed meldraknailo closed 10 months ago

meldraknailo commented 10 months ago

Hi! I really want to try this out. Here are the errors I encountered when trying to compile the project:

/Users/X/.platformio/penv/lib/python3.9/site-packages/urllib3/init.py:34: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020 warnings.warn( Processing m5stack-fire (platform: espressif32; board: m5stack-fire; framework: arduino)

/Users/X/.platformio/penv/lib/python3.9/site-packages/urllib3/init.py:34: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020 warnings.warn( Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stack-fire.html PLATFORM: Espressif 32 (6.4.0) > M5Stack FIRE HARDWARE: ESP32 240MHz, 4.31MB RAM, 16MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

marcotammaro commented 10 months ago

Hi @meldraknailo, it seems that the problem is releated to the installed version of PlatformIO and the releated Python version. Could you please specify the version of PlatformIO and Python you are using?

If you are using the latest version of PlatformIO (3.3.2) I would suggest to follow the steps described into the changelog to start the transition to the latest Python 3.11.

Let me know if the transition will solve the problem.

meldraknailo commented 10 months ago

Hi! I just tried this on my windows machine. I just installed a fresh copy of visual studio and platformio core 6.1.11 home 3.4.4

I get these errors on windows:

Processing m5stack-fire (platform: espressif32; board: m5stack-fire; framework: arduino)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stack-fire.html PLATFORM: Espressif 32 (6.5.0) > M5Stack FIRE HARDWARE: ESP32 240MHz, 4.31MB RAM, 16MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimo dule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

meldraknailo commented 10 months ago

I followed the instructions in the changelog and get the same exact issues. I really appreciate your help.

marcotammaro commented 10 months ago

Thank to you to help improving the project; I'm currently unable to replicare the problem but I notice different version of espressif32 platform. I just created a temporary branch that force the platform version at this link link. Could you please try to build the project from the "fix-issue-2" branch?

meldraknailo commented 10 months ago

Dude!!!! That worked and I was able to compile the code without any errors. Let me send it to the device and see what happens

meldraknailo commented 10 months ago

It uploaded to the device and initialized. It shows a circle, a battery indicator and weather at the top of the screen and thats it. It showed a loading icon in the middle of the screen for a few seconds. I did put the SD card contents onto an SD card before uploading the code to the device.

meldraknailo commented 10 months ago

image

Processing m5stack-fire (platform: espressif32@^1.0.6; board: m5stack-fire; framework: arduino)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stack-fire.html PLATFORM: Espressif 32 (1.12.4) > M5Stack FIRE HARDWARE: ESP32 240MHz, 6.25MB RAM, 16MB Flash DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb -tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

marcotammaro commented 10 months ago

@meldraknailo got it, just released and tested a new fix on "fix-issue-2" branch, could you please try to pull and upload onto device to check if everything works well?

meldraknailo commented 10 months ago

Okay so I deleted all of the repository files and downloaded the fix-issue-2 branch. I compiled it and got two yellow lines. I made them bold and italic below:

Processing m5stack-fire (platform: espressif32@6.5.0; board: m5stack-fire; framework: arduino)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stack-fire.html PLATFORM: Espressif 32 (6.5.0) > M5Stack FIRE HARDWARE: ESP32 240MHz, 4.31MB RAM, 16MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex -arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

meldraknailo commented 10 months ago

image

I uploaded it anyways and this is what I get.

I totally understand if you can't solve this issue right now. I'm super appreciative of you trying to help me. I got the M5Paper just to use it as a weather display.😀

meldraknailo commented 10 months ago

my lat/long is N 30.xxxx and W -95.xxxx. I put 30.xxxx and -95.xxxx. Do I need to put a N or W or remove the negative?

define LATITUDE 30.redacted

define LONGITUDE -95.redacted

define LOCALIZATION "en"

meldraknailo commented 10 months ago

Progress! I unplugged it from the pc and into a charger and when it rebooted it looked better:image

By the way, my API key works for a similar albeit much simpler weather dashboard. Not sure if that info helps.

meldraknailo commented 10 months ago

Okay success! I changed it to run on my guest network with a simple password and it worked! The only issue I am having now is that it wants to show me weather somewhere else. It is definitely not -23 here. Do you know how I should format my location?

my lat/long is N 30.xxxxxx and W -95.xxxxxx. I put 30.xxxxxx and -95.xxxxxx. Do I need to put a N or W or remove the negative?

define LATITUDE 30.redacted

define LONGITUDE -95.redacted

define LOCALIZATION "en"

meldraknailo commented 10 months ago

I got it to work! I used the info above and changed the units to imperial in the weathercontroller.cpp on line 66 and it works fantastic! For some reason it gives me "null" as my city name. Other than that its perfect, You rock dude. Question: does "#define REFRESH_INTERVAL 60 * 60 // in seconds" mean it will refresh once per hour?

marcotammaro commented 10 months ago

Amazing! Thanks a lot. Yes, the default refresh rate is 1 hour 😉

meldraknailo commented 10 months ago

Thank you so much for all of your help. If I want this to refresh every 10 minutes then it would be 60 * 10 right? Man, I cant thank you enough for your help and for this repository!

marcotammaro commented 10 months ago

Yes, correct! Just released new version in "fix-issue-2" with "units" field in config file for an easy configurability