M5PaperWeather icon indicating copy to clipboard operation
M5PaperWeather copied to clipboard

Cannot be complied

Open Janaboy opened this issue 3 years ago • 7 comments

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

Thank you in advance.

Janaboy avatar Jan 10 '22 07:01 Janaboy

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 <M5EPD.h> #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)

tomschlde avatar Mar 09 '22 09:03 tomschlde

> 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 <M5EPD.h> #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.

Janaboy avatar Mar 09 '22 09:03 Janaboy

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

stevejoung avatar Nov 27 '23 21:11 stevejoung

Please notice: using Arduinojson ver 6.12.0 to compile

bluejazzCHN avatar Dec 11 '23 04:12 bluejazzCHN

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 <M5EPD.h> #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???

orion14794 avatar Dec 18 '23 01:12 orion14794

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.

meldraknailo avatar Dec 29 '23 15:12 meldraknailo

Yes please?

GIGObug avatar Jun 10 '24 18:06 GIGObug