• .
  • Willkommen im Forum!
  • Alles beim Alten...
  • Du hast kaum etwas verpasst ;-)
  • Jetzt noch sicherer mit HTTPS
Hallo, Gast! Anmelden Registrieren


4.2" EPD E-Ink Display Wetter + Google Kalender per ESP8266 (Weifeng Wuxi Vision)
#36
So soll es aussehen:

Code:
*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

Probiers mal mit

// ESP.wdtDisable();

in Zeile 777
 
Reply
  


Nachrichten in diesem Thema
RE: 4.2" EPD E-Ink Display Wetter + Google Kalender per ESP8266 (Weifeng Wuxi Vision) - von christianw. - 07.09.2019, 11:56 PM