Read the statement by Michael Teeuw here.
MMM-DWD-Pollen
-
@CarstenD
Hi Carsten,
love the idea of this module. I have just installed it with DWD_region: 120, for Bayern. It does not show any data. Does that mean there is no “Pollenwarnung” for today? When I put in the default DWD_region: 92, it shows me two values for Erle. If this is not a mistake, it might be a goog idea to show something like “Keine” when there is no “Pollenwarnung”.Thanks and excuse my bad English ;)
-
@thedoorsfanatic
Hi,thanks for the hint. I am parsing for the partregion_id which in case of of Bayern has 4 sub regions 121-124:
121 Allgäu/Oberbayern
122 Donauniederungen
123 Bayern n. der Donau, o. Bayr. Wald, o. Mainfranken
124 MainfrankenThere is a map showing the regions (even though the numbers are wrong): https://www.dwd.de/DE/leistungen/gefahrenindizespollen/Gebiete.html?nn=16102&lsbId=463856
But good idea with the “no data” warning.
Thanks (btw, I mad a bug fix yesterday that prevented some of the items showing up)
-
Hey @CarstenD,
thanks for the update. I put in DWD_region: 121, for Munich and now it shows up data.
Keep up the good work! -
New version available with icons as alternative display
-
@CarstenD
Hi Carsten,
I have installed the module MMM-DWD-Pollen according to specification. Unfortunately it (as the only module) does not provide any data. I have also tested different DWD regions (81,92 and 122), but it only shows “Load …”. tcpdump (tcpdump -n host 141.38.3.62 -A -s 0) shows no connection attempt to https://opendata.dwd.de/climate_environment/health/alerts/s31fg.jsonnpm run config:check
magicmirror@2.11.0 config:check /home/pi/MagicMirror
node tests/configs/check_config.jsChecking file… /home/pi/MagicMirror/config/config.js
Your configuration file doesn’t contain syntax errors :)What can I do to isolate the error?
…
start log:
x:~/MagicMirror $ npm startmagicmirror@2.11.0 start /home/pi/MagicMirror
[2020-05-11 18:05:28.755] [LOG] Starting MagicMirror: v2.11.0
[2020-05-11 18:05:28.769] [LOG] Loading config …
[2020-05-11 18:05:28.778] [LOG] Loading module helpers …
[2020-05-11 18:05:28.782] [LOG] No helper found for module: alert.
[2020-05-11 18:05:28.868] [LOG] Initializing new module helper …
[2020-05-11 18:05:28.870] [LOG] Module helper loaded: updatenotification
[2020-05-11 18:05:28.872] [LOG] No helper found for module: clock.
[2020-05-11 18:05:29.546] [LOG] Initializing new module helper …
[2020-05-11 18:05:29.547] [LOG] Module helper loaded: calendar
[2020-05-11 18:05:29.549] [LOG] No helper found for module: currentweather.
[2020-05-11 18:05:29.551] [LOG] No helper found for module: weatherforecast.
[2020-05-11 18:05:29.554] [LOG] Initializing new module helper …
[2020-05-11 18:05:29.556] [LOG] Module helper loaded: MMM-DWD-Pollen
[2020-05-11 18:05:29.598] [LOG] Initializing new module helper …
[2020-05-11 18:05:29.600] [LOG] Module helper loaded: newsfeed
[2020-05-11 18:05:29.601] [LOG] All module helpers loaded.
[2020-05-11 18:05:29.787] [LOG] Starting server on port 8080 …
[2020-05-11 18:05:29.808] [LOG] Server started …
[2020-05-11 18:05:29.810] [LOG] Connecting socket for: updatenotification
[2020-05-11 18:05:29.811] [LOG] Connecting socket for: calendar
[2020-05-11 18:05:29.813] [LOG] Starting node helper for: calendar
[2020-05-11 18:05:29.814] [LOG] Connecting socket for: MMM-DWD-Pollen
[2020-05-11 18:05:29.815] [LOG] MMM-DWD-Pollen helper started …
[2020-05-11 18:05:29.816] [LOG] Connecting socket for: newsfeed
[2020-05-11 18:05:29.817] [LOG] Starting module: newsfeed
[2020-05-11 18:05:29.818] [LOG] Sockets connected & modules started …
[2020-05-11 18:05:30.023] [LOG] Launching application.THX Heiko
-
@Sachse - Have you tried running the mirror in developer mode and looking for errors?
x:~/MagicMirror $ npm start dev
-
@bhepler said in MMM-DWD-Pollen:
npm start dev
you mean the error messages in the bash or the console of Chromium?
$ npm start dev
magicmirror@2.11.0 start /home/pi/MagicMirror
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js “dev”Gtk-Message: 19:18:06.195: Failed to load module “canberra-gtk-module”
Gtk-Message: 19:18:06.204: Failed to load module “canberra-gtk-module”
[2020-05-12 19:18:07.380] [LOG] Starting MagicMirror: v2.11.0
[2020-05-12 19:18:07.393] [LOG] Loading config …
[2020-05-12 19:18:07.402] [LOG] Loading module helpers …
[2020-05-12 19:18:07.405] [LOG] No helper found for module: alert.
[2020-05-12 19:18:07.507] [LOG] Initializing new module helper …
[2020-05-12 19:18:07.508] [LOG] Module helper loaded: updatenotification
[2020-05-12 19:18:07.509] [LOG] No helper found for module: clock.
[2020-05-12 19:18:08.251] [LOG] Initializing new module helper …
[2020-05-12 19:18:08.252] [LOG] Module helper loaded: calendar
[2020-05-12 19:18:08.253] [LOG] No helper found for module: currentweather.
[2020-05-12 19:18:08.255] [LOG] No helper found for module: weatherforecast.
[2020-05-12 19:18:08.258] [LOG] Initializing new module helper …
[2020-05-12 19:18:08.260] [LOG] Module helper loaded: MMM-DWD-Pollen
[2020-05-12 19:18:08.306] [LOG] Initializing new module helper …
[2020-05-12 19:18:08.307] [LOG] Module helper loaded: newsfeed
[2020-05-12 19:18:08.308] [LOG] All module helpers loaded.
[2020-05-12 19:18:08.510] [LOG] Starting server on port 8080 …
[2020-05-12 19:18:08.533] [LOG] Server started …
[2020-05-12 19:18:08.535] [LOG] Connecting socket for: updatenotification
[2020-05-12 19:18:08.536] [LOG] Connecting socket for: calendar
[2020-05-12 19:18:08.537] [LOG] Starting node helper for: calendar
[2020-05-12 19:18:08.538] [LOG] Connecting socket for: MMM-DWD-Pollen
[2020-05-12 19:18:08.539] [LOG] MMM-DWD-Pollen helper started …
[2020-05-12 19:18:08.540] [LOG] Connecting socket for: newsfeed
[2020-05-12 19:18:08.541] [LOG] Starting module: newsfeed
[2020-05-12 19:18:08.542] [LOG] Sockets connected & modules started …
[2020-05-12 19:18:08.772] [LOG] Whoops! There was an uncaught exception…
[2020-05-12 19:18:08.773] [ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8080
at Server.setupListenHandle [as _listen2] (net.js:1226:14)
at listenInCluster (net.js:1274:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1413:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:65:10) {
code: ‘EADDRINUSE’,
errno: ‘EADDRINUSE’,
syscall: ‘listen’,
address: ‘127.0.0.1’,
port: 8080
}
[2020-05-12 19:18:08.792] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[2020-05-12 19:18:08.793] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[2020-05-12 19:18:08.802] [LOG] Launching application.
[22416:0512/191926.709481:ERROR:CONSOLE(24)] “Empty response arrived for script ‘devtools://devtools/remote/serve_file/@74afbfc65bd4d271bc09280abd5783ffe47444b9/accessibility/accessibility_module.js’”, source: devtools://devtools/bundled/shell.js (24)
[22416:0512/191926.710572:ERROR:CONSOLE(109)] “Uncaught (in promise) Error: Could not instantiate: Accessibility.AccessibilitySidebarView”, source: devtools://devtools/bundled/shell.js (109)
[22416:0512/191936.736681:ERROR:CONSOLE(24)] “Empty response arrived for script ‘devtools://devtools/remote/serve_file/@74afbfc65bd4d271bc09280abd5783ffe47444b9/product_registry_impl/product_registry_impl_module.js’”, source: devtools://devtools/bundled/shell.js (24)
[22416:0512/191936.802627:ERROR:CONSOLE(109)] “Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry”, source: devtools://devtools/bundled/shell.js (109)
In the network analysis from the console of Chromium I find under MMM-DWD-Pollen.js:
Request URL: http://localhost:8080/modules/MMM-DWD-Pollen//MMM-DWD-Pollen.js
Request Method: GET
Status Code: 304 Not Modified
Remote Address: 127.0.0.1:8080
Referrer Policy: no-referrer-when-downgrade
Accept-Ranges: bytes
Cache-Control: public, max-age=0
Connection: keep-alive
Date: Tue, 12 May 2020 17:30:47 GMT
ETag: W/“1e7a-1720040e625”
Last-Modified: Sun, 10 May 2020 20:22:32 GMT
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Accept: /
Accept-Encoding: gzip, deflate, br
Accept-Language: de
Connection: keep-alive
Host: localhost:8080
If-Modified-Since: Sun, 10 May 2020 20:22:32 GMT
If-None-Match: W/“1e7a-1720040e625”
Referer: http://localhost:8080/
Sec-Fetch-Mode: no-cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.146 Electron/6.0.12 Safari/537.36under Console with the word filter “pollen” I see:
Load script: modules/MMM-DWD-Pollen//MMM-DWD-Pollen.js
module.js:479 Module registered: MMM-DWD-Pollen
loader.js:150 Bootstrapping module: MMM-DWD-Pollen
loader.js:155 Scripts loaded for: MMM-DWD-Pollen
loader.js:194 Load stylesheet: modules/MMM-DWD-Pollen/MMM-DWD-Pollen.css
loader.js:157 Styles loaded for: MMM-DWD-Pollen
loader.js:159 Translations loaded for: MMM-DWD-PollenI hope I got the right error messages
Greetings Heiko
-
Hi Mate, could you do the same for Switzerland? Or chat bilateral to talk about what is required and I will see what I can organize. Thanks!
-
@Sachse - I mean the console in Chromium. The dev mode should display the console on your mirror so you can see the log from the display layer. The log in “bash” is the log from the back end (the
node_helper.js
and similar scripts).@Sachse said in MMM-DWD-Pollen:
ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8080
This means that some other process is already using port 8080 on your Pi. Usually, this means that you have two instances of Magic Mirror running. You may have something else using that port, but usually it’s another script attempting to also run your mirror. First, let’s check if PM2 has two instances defined. If you type
pm2 status all
what do you see?General principle: You can ignore just about everything in a log file unless it is preceded by
ERROR
. -
@bhelper
Ohh, this is almost embarrassing. I could have figured that out myself by looking at netstat -plan|grep 8080. I was just irritated that the other modules worked without problems, so I didn’t suspect the error there. The module “MMM-DWD-Pollen” works great now :-)
Thanks for your support