01.11.2018, 08:16 AM
Eigentlich sollte wdtDisable das resetten unterbinden.
4.2" EPD E-Ink Display Wetter + Google Kalender per ESP8266 (Weifeng Wuxi Vision)
|
(02.09.2019, 12:43 PM)christianw. schrieb: Der kleine Kreis in der Mitte sagt, dass das System mit keinem WiFi verbunden ist.
...Stimmen die Betriebsspannungen für das Display? Poste doch mal ein Bild vom Displayinhalt.
Zitat:6:03:37.608 -> <<<stack<<<
16:03:37.608 ->
16:03:37.608 -> last failed alloc call: 4021F446(3064)
16:03:37.608 ->
16:03:37.608 -> ets Jan 8 2013,rst cause:2, boot mode3,6)
16:03:37.608 ->
16:03:37.608 -> load 0x4010f000, len 1384, room 16
16:03:37.608 -> tail 8
16:03:37.608 -> chksum 0x2d
16:03:37.608 -> csum 0x2d
16:03:37.608 -> v8b899c12
16:03:37.608 -> ~ld
16:03:37.967 -> *WM:
16:03:37.967 -> *WM: AutoConnect
16:03:37.967 -> *WM: Connecting as wifi client...
16:03:37.967 -> *WM: Already connected. Bailing out.
16:03:37.967 -> *WM: IP Address:
16:03:37.967 -> *WM: 192.168.178.52
16:03:38.313 -> Time since start until weather start: 630 milliseconds
16:03:38.418 -> Time to get weather done: 110 milliseconds
16:03:40.874 ->
16:03:40.874 -> Abort called
16:03:40.874 ->
16:03:40.874 -> >>>stack>>>
16:03:40.874 ->
16:03:40.874 -> ctx: cont
16:03:40.874 -> sp: 3fff4290 end: 3fff4690 offset: 01b0
16:03:40.874 -> 3fff4440: c02ac026 c00ec004 3fff4470 4021299b
16:03:40.874 -> 3fff4450: c09dc09c c0a1c0a0 003d003c 0035002f
16:03:40.874 -> 3fff4460: 00000000 3fff79cc 3fff54ac 40212c13
16:03:40.874 -> 3fff4470: 00000000 00000000 3fff44a4 00000000
16:03:40.874 -> 3fff4480: 3ffe8977 3fff79cc 3fff54ac 4021350c
....
(07.09.2019, 04:14 PM)RPW47 schrieb: [
16:03:37.608 -> ets Jan 8 2013,rst cause:2, boot mode: (3,6)
16:03:37.608 ->
16:03:37.608 -> load 0x4010f000, len 1384, room 16
16:03:37.608 -> tail 8
16:03:37.608 -> chksum 0x2d
16:03:37.608 -> csum 0x2d
16:03:37.608 -> v8b899c12
//#define DEBUG
#ifdef DEBUG
#define DPRINT(...) Serial.print(__VA_ARGS__)
#define DPRINTLN(...) Serial.println(__VA_ARGS__)
#else
#define DPRINT(...) //now defines a blank line
#define DPRINTLN(...) //now defines a blank line
#endif
(07.09.2019, 08:46 PM)christianw. schrieb: Andererseits durchaus möglich, dass der Reset-Handler der HW-Watchdog zuschlägt, weil der Calendar nicht geparst werden kann. Einfach mal
" syncCalendar();" auskommentieren.
Sun Sep 08 2019 00:00:00 GMT+0200 (MESZ);Geburtstag;true;Mon Sep 09 2019 15:00:00 GMT+0200 (MESZ);Termin XYZ ;false;Mon Sep 09 2019 16:45:00 GMT+0200 (MESZ);Termin bei Herr Dr. B.;false;Thu Sep 12 2019 14:45:00 GMT+0200 (MESZ);Bewerbungsgespräch;false;Thu Sep 12 2019 17:00:00 GMT+0200 (MESZ);Klavierunterrich;false;Mon Sep 16 2019 15:00:00 GMT+0200 (MESZ);Haus kaufen ;false;Thu Sep 19 2019 17:00:00 GMT+0200 (MESZ);Klavierunterricht;false;
DPRINT(F("data fetched from google: ")); DPRINTLN(googleCalData);
22:11:15.827 -> respLen 473
22:11:15.827 -> {"coord":{"lon":6.56,"lat":51.33},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10n"}],"base":"stations","main":{"temp":13.8,"pressure":1019,"humidity":76,"temp_min":12.22,"temp_max":15},"visibility":10000,"wind":{"speed":2.6,"deg":310},"rain":{"3h":0.188},"clouds":{"all":95},"dt":1567886687,"sys":{"type":1,"id":1303,"message":0.014,"country":"DE","sunrise":1567832137,"sunset":1567879719},"timezone":7200,"id":2884509,"name":"Krefeld","cod":200}
22:11:15.882 -> jsonstart {"coord":{"lon":6.56,"lat":51.33},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10n"}],"base":"stations","main":{"temp":13.8,"pressure":1019,"humidity":76,"temp_min":12.22,"temp_max":15},"visibility":10000,"wind":{"speed":2.6,"deg":310},"rain":{"3h":0.188},"clouds":{"all":95},"dt":1567886687,"sys":{"type":1,"id":1303,"message":0.014,"country":"DE","sunrise":1567832137,"sunset":1567879719},"timezone":7200,"id":2884509,"name":"Krefeld","cod":200}
22:11:15.916 -> Time to get weather done: 531 milliseconds
22:11:15.916 -> Free heap at sync start .. 27704
22:11:15.916 -> Connecting to script.google.com
22:11:17.943 ->
22:11:17.943 -> Abort called
22:11:17.943 ->
22:11:17.943 -> >>>stack>>>
22:11:17.943 ->
22:11:17.943 -> ctx: cont
22:11:17.943 -> sp: 3fff42d0 end: 3fff46d0 offset: 01b0
// define buffersize for several buffers - needs to be tidy, otherwise HTTPS crashs due to low free heap
int const bufferSize = 1350;
(07.09.2019, 10:21 PM)christianw. schrieb: Da dein Wetter-Response nur 473 Zeichen hat, mach den Buffer mal wesentlich kleiner.
Zeile 60:
Code:
// define buffersize for several buffers - needs to be tidy, otherwise HTTPS crashs due to low free heap
int const bufferSize = 1350;
probier mal Werte um 500-600.
(07.09.2019, 10:21 PM)christianw. schrieb: 27k heap ist schon nicht so "geil".ich habe die beiden Zeilen auskommentiert, aber alles bleibt dabei
Die andere Möglichkeit ist, mal das Wetter auszukommentieren, somit:
obtain_forecast("forecast");
obtain_forecast("weather");
und nur den Kalender zu parsen.
22:44:02.889 -> localTimeString: Samstag - 07.09.2019 - 22:43Time since start until weather start: 634 milliseconds
22:44:02.936 -> Time to get weather done: 2 milliseconds
22:44:02.936 -> Free heap at sync start .. 27840
22:44:02.936 -> Connecting to script.google.com
22:44:05.450 ->
22:44:05.450 -> Abort called
22:44:05.450 ->
22:44:05.450 -> >>>stack>>>
22:44:05.450 ->
22:44:05.450 -> ctx: cont
22:44:05.485 -> sp: 3fff42b0 end: 3fff46b0 offset: 01b0
22:44:05.485 -> 3fff4460: c02ac026 c00ec004 3fff4490 4021201f
22:44:05.485 -> 3fff4470: c09dc09c c0a1c0a0 003d003c 0035002f
*WM:
*WM: AutoConnect
*WM: Connecting as wifi client...
*WM: Using last saved values, should be faster
*WM: Waiting for connection result with time out
*WM: Connection result:
*WM: 3
*WM: IP Address:
*WM: 192.168.178.49
connected...yeey :)
Setup sync with NTP service.
UTC: Sat Sep 7 21:52:00 2019
Local Time: Sat Sep 7 23:52:00 2019
localTimeString: Samstag - 07.09.2019 - 23:52Time since start until weather start: 4584 milliseconds
GET /data/2.5/forecast?q=123,de&APPID=123&mode=json&units=metric&lang=en&cnt=3 HTTP/1.1
User-Agent: Weather Webserver
Accept: */*
Host: api.openweathermap.org
Connection: close
Connecting to api.openweathermap.org
GET /data/2.5/forecast?q=123,de&APPID=123&mode=json&units=metric&lang=en&cnt=3 HTTP/1.1
User-Agent: Weather Webserver
Accept: */*
Host: api.openweathermap.org
Connection: close
HTTP/1.1 200 OK
Server: openresty
Date: Sat, 07 Sep 2019 21:52:03 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 1263
Connection: close
X-Cache-Key: /data/2.5/forecast?APPID=123&cnt=3&lang=en&mode=json&q=123,de&units=metric
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST
respLen 1264
{"cod":"200","message":0.0077,"cnt":3,"list":[{"dt":1567900800,"main":{"temp":12.47,"temp_min":12.05,"temp_max":12.47,"pressure":1017.72,"sea_level":1017.72,"grnd_level":1013.08,"humidity":89,"temp_kf":0.42},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10n"}],"clouds":{"all":97},"wind":{"speed":1.32,"deg":173.445},"rain":{"3h":0.125},"sys":{"pod":"n"},"dt_txt":"2019-09-08 00:00:00"},{"dt":1567911600,"main":{"temp":11.17,"temp_min":10.85,"temp_max":11.17,"pressure":1017.83,"sea_level":1017.83,"grnd_level":1013.21,"humidity":92,"temp_kf":0.32},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":95},"wind":{"speed":0.43,"deg":174.83},"sys":{"pod":"n"},"dt_txt":"2019-09-08 03:00:00"},{"dt":1567922400,"main":{"temp":12.75,"temp_min":12.54,"temp_max":12.75,"pressure":1017.88,"sea_level":1017.88,"grnd_level":1013.32,"humidity":86,"temp_kf":0.21},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":{"all":92},"wind":{"speed":0.63,"deg":116.811},"sys":{"pod":"d"},"dt_txt":"2019-09-08 06:00:00"}],"city":{"id":2870310,"name":"123","coord":{"lat":52.5301,"lon":13.3425},"country":"DE","timezone":7200,"sunrise":1567830415,"sunset":1567878186}}
jsonstart {"cod":"200","message":0.0077,"cnt":3,"list":[{"dt":1567900800,"main":{"temp":12.47,"temp_min":12.05,"temp_max":12.47,"pressure":1017.72,"sea_level":1017.72,"grnd_level":1013.08,"humidity":89,"temp_kf":0.42},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10n"}],"clouds":{"all":97},"wind":{"speed":1.32,"deg":173.445},"rain":{"3h":0.125},"sys":{"pod":"n"},"dt_txt":"2019-09-08 00:00:00"},{"dt":1567911600,"main":{"temp":11.17,"temp_min":10.85,"temp_max":11.17,"pressure":1017.83,"sea_level":1017.83,"grnd_level":1013.21,"humidity":92,"temp_kf":0.32},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":95},"wind":{"speed":0.43,"deg":174.83},"sys":{"pod":"n"},"dt_txt":"2019-09-08 03:00:00"},{"dt":1567922400,"main":{"temp":12.75,"temp_min":12.54,"temp_max":12.75,"pressure":1017.88,"sea_level":1017.88,"grnd_level":1013.32,"humidity":86,"temp_kf":0.21},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":{"all":92},"wind":{"speed":0.63,"deg":116.811},"sys":{"pod":"d"},"dt_txt":"2019-09-08 06:00:00"}],"city":{"id":2870310,"name":"123","coord":{"lat":52.5301,"lon":13.3425},"country":"DE","timezone":7200,"sunrise":1567830415,"sunset":1567878186}}
3h forecast:
04n 11.17 92 1017.83 Sun Sep 8 03:00:00 2019
6h forecast:
04d 12.75 86 1017.88 Sun Sep 8 06:00:00 2019
GET /data/2.5/weather?q=123,de&APPID=123&mode=json&units=metric&lang=en&cnt=3 HTTP/1.1
User-Agent: Weather Webserver
Accept: */*
Host: api.openweathermap.org
Connection: close
Connecting to api.openweathermap.org
GET /data/2.5/weather?q=123,de&APPID=123&mode=json&units=metric&lang=en&cnt=3 HTTP/1.1
User-Agent: Weather Webserver
Accept: */*
Host: api.openweathermap.org
Connection: close
HTTP/1.1 200 OK
Server: openresty
Date: Sat, 07 Sep 2019 21:52:04 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 454
Connection: close
X-Cache-Key: /data/2.5/weather?APPID=123&cnt=3&lang=en&mode=json&q=123,de&units=metric
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST
respLen 455
{"coord":{"lon":13.34,"lat":52.53},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10n"}],"base":"stations","main":{"temp":13.4,"pressure":1019,"humidity":87,"temp_min":12.22,"temp_max":15},"visibility":10000,"wind":{"speed":1.5,"deg":300},"clouds":{"all":100},"dt":1567892850,"sys":{"type":1,"id":1275,"message":0.0071,"country":"DE","sunrise":1567830416,"sunset":1567878186},"timezone":7200,"id":2870310,"name":"Moabit","cod":200}
jsonstart {"coord":{"lon":13.34,"lat":52.53},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10n"}],"base":"stations","main":{"temp":13.4,"pressure":1019,"humidity":87,"temp_min":12.22,"temp_max":15},"visibility":10000,"wind":{"speed":1.5,"deg":300},"clouds":{"all":100},"dt":1567892850,"sys":{"type":1,"id":1275,"message":0.0071,"country":"DE","sunrise":1567830416,"sunset":1567878186},"timezone":7200,"id":2870310,"name":"Moabit","cod":200}
Time to get weather done: 3583 milliseconds
Free heap at sync start .. 28832
Connecting to script.google.com
GET: Fetch Google Calendar Data:
data fetched from google: Sun Sep 08 2019 00:00:00 GMT+0200 (MESZ);Geburtstag;true;Mon Sep 09 2019 15:00:00 GMT+0200 (MESZ);Ergotherapie Emilia ;false;Mon Sep 09 2019 16:45:00 GMT+0200 (MESZ);Termin bei Herr Dr. B.;false;Thu Sep 12 2019 14:45:00 GMT+0200 (MESZ);Termin 123;false;Thu Sep 12 2019 17:00:00 GMT+0200 (MESZ);Klavierunterricht;false;Mon Sep 16 2019 15:00:00 GMT+0200 (MESZ);Haus kaufen ;false;Thu Sep 19 2019 17:00:00 GMT+0200 (MESZ);Klavierunterricht;false;
Next appointment: Geburtstag at Sun Sep 08 2019 00:00:00 GMT+0200 (MESZ)
Next appointment: Termin XYZ at Mon Sep 09 2019 15:00:00 GMT+0200 (MESZ)
Next appointment: Termin bei Herr Dr. B. at Mon Sep 09 2019 16:45:00 GMT+0200 (MESZ)
Next appointment: Termin 123 at Thu Sep 12 2019 14:45:00 GMT+0200 (MESZ)
appDateString0: Sonntag 08. Sep um 00:00
appDateString1: Montag 09. Sep um 15:00
appDateString2: Montag 09. Sep um 16:45
appDateString3: Donnerstag 12. Sep um 14:45
Free heap at sync end .. 27536
Fetching data is done now.
Time used for google calendar sync: 3921 milliseconds
Powering down WiFi now!
Time since start in high power mode: 13181 milliseconds
localHour: 23
icona: eventl. Regen
10n
04n
04d
appointment0 index : -1
Next update in: 60 minutes.
Pulling RST low in 5000us..
Pulling RST low now!
Time since start in low power mode: 5274 milliseconds
Serial.println(dstHost); Serial.println(dstPath); // hilfs