Bastelschlumpf / M5PaperWeather

M5Paper project with weather information from openweathermap
115 stars 36 forks source link

Can't burn sketch to my M5Paper V1.1 #12

Open orion14794 opened 8 months ago

orion14794 commented 8 months ago

I have installed all libraries and all required to get my M5Paper detected and loaded on Arduino. I am able to upload other sketches to my device, except this one. Attached to this post is a txt file with the results of Terminal posting error. M5Weather station error report.txt

nicolasborn commented 7 months ago

I had the same issue. Just use ArduinoJson version 6.12.0 to compile.

nicolasborn commented 7 months ago

Hi! You need a valid subscription for the oneCall API. The first 1000 calls per day are free but you need to register a credit card anyway. And I changed the uri in Weather.h to version 3.0: uri += "/data/3.0/onecall“;

Am 28.12.2023 um 01:06 schrieb jdbaluch @.***>:

I am able to compile using version 6.12.0 and the software loads up on the M5Paper v1.1; however when reviewing the serial output I getGetWeather failed, error: DateTime: 26.09.2020 16:56:53and the device is never able to connect. I'm connected successfully to my wifi. It's as though the JSON isn't being parsed. Any guidance? Thanks!

— Reply to this email directly, view it on GitHub https://github.com/Bastelschlumpf/M5PaperWeather/issues/12#issuecomment-1870703932, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANM5H2H3ZUKL5NA4VJV5Z3YLSZZRAVCNFSM6AAAAABAYYXGEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZQG4YDGOJTGI. You are receiving this because you commented.

meldraknailo commented 7 months ago

I tried using ArduinoJson 6.12.0 to complie and I am still having issues with compiling the sketch. On a side note, you can also set a limit to the calls per day to ensure you dont get charged. I use the 3.0 call service for several different weather apps on M5Paper and M5Stack devices and dont get close to the 1,000 calls per day limit.

Here are my error messages if anyone can provide guidance: In file included from /Users/X/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Array/ArrayIterator.hpp:8, from /Users/X/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Array/ArrayRef.hpp:8, from /Users/X/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson.hpp:17, from /Users/X/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson.h:9, from /Users/X/Downloads/M5PaperWeather-master/weather/Weather.h:25, from /Users/X/Downloads/M5PaperWeather-master/weather/Data.h:24, from /Users/X/Downloads/M5PaperWeather-master/weather/weather.ino:25: /Users/X/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson/Variant/VariantRef.hpp:12:10: fatal error: ArduinoJson/Operators/VariantOperators.hpp: No such file or directory

include <ArduinoJson/Operators/VariantOperators.hpp>

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

compilation terminated.

exit status 1

Compilation error: exit status 1

meldraknailo commented 7 months ago

I figured it out. ArduinoJson 6.12.0 and M5EPD 0..1.5 worked and it now runs great!

GIGObug commented 2 months ago

I figured it out. ArduinoJson 6.12.0 and M5EPD 0..1.5 worked and it now runs great!

WOW!!! Thank you! It compiled, and uploaded. Now I need to change the data to Imperial. It appears that the code is not sending the Call to OpenWeather.org. The code compiles and uploads to the M5Paper without errors. The only data currently updating is the temperature and humidity from the internal SHT30 sensors. I checked on OpenWeather.org, and it appears no calls have been received on my account. About every 30 seconds the display flashes and refreshes the display. The WiFi signal strength changes depending on how far I am from the router, and the battery indicator displays the current charge %. Is anyone else seeing this?

UPDATE: I changed the API OneCall in the weather.h file to read "/data/3.0/onecall“, as mentioned above by"nicolasborn". Thank you! Now all the fields are updating, and API Calls are showing up on my OpenWeather account. Now I just need to change the data to Imperial units, or use the G37/G39 switch to select metric/imperial. More to come, I'm sure.....