Bastelschlumpf / M5PaperWeather

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

Cannot be complied #7

Open Janaboy opened 2 years ago

Janaboy commented 2 years ago

Dear @Bastelschlumpf , is there any chance to fix the code? Unfortunately it cannot be compiled, there are multiple issues.

Thank you in advance.

tomschlde commented 2 years ago

Hi, compiles without errors - there is no need to fix the code.

it is important to add all libraries mentioned in the code (see below) to the Arduino SDK. Then it will work! see: https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries

include

include "Config.h"

include "ConfigOverride.h" // Remove this line

include "Data.h"

include "Display.h"

include "Battery.h"

include "EPD.h"

include "EPDWifi.h"

include "Moon.h"

include "SHT30.h"

include "Time.h"

include "Utils.h"

include "Weather.h"

IMG_20220309_101436 (002)

Janaboy commented 2 years ago

> Hi, compiles without errors - there is no need to fix the code.

it is important to add all libraries mentioned in the code (see below) to the Arduino SDK. Then it will work! see: https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries

include #include "Config.h" #include "ConfigOverride.h" // Remove this line #include "Data.h" #include "Display.h" #include "Battery.h" #include "EPD.h" #include "EPDWifi.h" #include "Moon.h" #include "SHT30.h" #include "Time.h" #include "Utils.h" #include "Weather.h"

Okay an update here. I just installed the m5edp 1.0.3 library and was able to finally compile.

stevejoung commented 9 months ago

The code fails with the comment "MyData not declared in this scope"

bluejazzCHN commented 9 months ago

Please notice: using Arduinojson ver 6.12.0 to compile

orion14794 commented 8 months ago

Hi, compiles without errors - there is no need to fix the code.

it is important to add all libraries mentioned in the code (see below) to the Arduino SDK. Then it will work! see: https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries

include #include "Config.h" #include "ConfigOverride.h" // Remove this line #include "Data.h" #include "Display.h" #include "Battery.h" #include "EPD.h" #include "EPDWifi.h" #include "Moon.h" #include "SHT30.h" #include "Time.h" #include "Utils.h" #include "Weather.h"

Okay an update here. I just installed the m5edp 1.0.3 library and was able to finally compile.

There is no 1.03 M5EPD library file. File versions go up to .01.5 Where did you get your version from???

meldraknailo commented 8 months ago

Fantastic Project!!!!!!!! I was able to get it to work with ArduinoJson 6.12.0 and M5EPD 0.1.5. I was able to get everything to work with USA formatting. I changed the date to MM:DD:YYYY, the units for the daily to show F by returning imperial units from openweather and by changing the display to show (F) instead of (C). There is only one thing I need help with: changing the SHT-30 data to show up as F. I know the conversion formula, but where do I put it? The temp graph displayed fine but appeared to show no data, until I realized I needed to change the scale of the temperature graph from 0-100 for Fahrenehit. So I now see mph, F, and MM:DD:YYYY. Thanks so much! If you want to fork off a US measurement branch let me know and I can share the modded files with you, or create a new repository with your permission that credits your work.

GIGObug commented 3 months ago

Yes please?