<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Module MMM-OpenWeatherMapForecast is not running]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">since some days the module MMM-OpenWeatherMapForecast is not running.</p>
<p dir="auto">When I start my MMM with display:0 I got the following messages</p>
<pre><code>...
[2024-09-05 08:23:20.846] [LOG]   Connecting socket for: MMM-OpenWeatherMapForecast
[2024-09-05 08:23:20.851] [LOG]   ====================== Starting node_helper for module [MMM-OpenWeatherMapForecast]
...
</code></pre>
<p dir="auto">and</p>
<pre><code>...
[2024-09-05 08:23:32.054] [LOG]   [MMM-OpenWeatherMapForecast] 5-Sep-24 08:23 ** ERROR ** null
...
</code></pre>
<p dir="auto">In my pm2 error logs I can´t find any error messages</p>
<p dir="auto">It would be great if someone had a hint as to why the module is no longer running.</p>
<p dir="auto">Thank you in advance.<br />
Klinge</p>
]]></description><link>https://forum.magicmirror.builders/topic/18956/module-mmm-openweathermapforecast-is-not-running</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 23:56:41 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18956.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Sep 2024 06:28:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Module MMM-OpenWeatherMapForecast is not running on Fri, 13 Sep 2024 12:49:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Now I corrected the first line and then I tried to update the module again.</p>
<p dir="auto">What should I say. Now the MMM is running.</p>
<p dir="auto">But now I have on my second mirror another problem.  I will open a new post for it.</p>
<p dir="auto">Thank you all for your help :-)</p>
]]></description><link>https://forum.magicmirror.builders/post/119708</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/119708</guid><dc:creator><![CDATA[Klinge]]></dc:creator><pubDate>Fri, 13 Sep 2024 12:49:30 GMT</pubDate></item><item><title><![CDATA[Reply to Module MMM-OpenWeatherMapForecast is not running on Mon, 09 Sep 2024 11:31:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/klinge" aria-label="Profile: Klinge">@<bdi>Klinge</bdi></a> yes, line 1 you accidentally added an extra / to the beginning</p>
<p dir="auto">this makes it a single line comment and the next line becomes active</p>
<p dir="auto">in a diff, red is old, green is new</p>
]]></description><link>https://forum.magicmirror.builders/post/119603</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/119603</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 09 Sep 2024 11:31:38 GMT</pubDate></item><item><title><![CDATA[Reply to Module MMM-OpenWeatherMapForecast is not running on Mon, 09 Sep 2024 11:29:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mumblebaj" aria-label="Profile: mumblebaj">@<bdi>mumblebaj</bdi></a> Thank you for your advice. I configured the following line in my config</p>
<pre><code>language: "de",
</code></pre>
<p dir="auto">and I changed the node.helper as <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> had advised</p>
]]></description><link>https://forum.magicmirror.builders/post/119602</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/119602</guid><dc:creator><![CDATA[Klinge]]></dc:creator><pubDate>Mon, 09 Sep 2024 11:29:51 GMT</pubDate></item><item><title><![CDATA[Reply to Module MMM-OpenWeatherMapForecast is not running on Mon, 09 Sep 2024 11:25:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Ok, I did “git diff” and got the following result</p>
<pre><code>pi@raspberrypi:~/MagicMirror/modules/MMM-OpenWeatherMapForecast $ git diff
diff --git a/node_helper.js b/node_helper.js
index 74c92ae..620e2b5 100644
--- a/node_helper.js
+++ b/node_helper.js
@@ -1,4 +1,4 @@
**-/***********************************
+//*********************************

   Node Helper for MMM-OpenWeatherMapForecast.

@@ -60,7 +60,7 @@ module.exports = NodeHelper.create({
                         self.sendSocketNotification("OPENWEATHER_ONE_CALL_FORECAST_DATA", resp);

                     } else {
-                        console.log("[MMM-OpenWeatherMapForecast] " + moment().format("D-MMM-YY HH:mm") + " ** ERROR ** " + error);
+                        console.log("[MMM-OpenWeatherMapForecast] " + moment().format("D-MMM-YY HH:mm") + " ** ERROR ** " + response.statusCode);
                     }

                 });
diff --git a/package-lock.json b/package-lock.json
index e597610..5fdbf9f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,51 +1,72 @@
 {
     "name": "mmm-openweathermapforecast",
     "version": "1.0.0",
-    "lockfileVersion": 1,
+    "lockfileVersion": 3,
     "requires": true,
-    "dependencies": {
-        "debug": {
+    "packages": {
+        "": {
+            "name": "mmm-openweathermapforecast",
+            "version": "1.0.0",
+            "license": "MIT",
+            "dependencies": {
+                "moment": "^2.28.0",
+                "needle": "^2.5.2"
+            }
+        },
+        "node_modules/debug": {
             "version": "3.2.7",
             "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
             "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
-            "requires": {
+            "dependencies": {
                 "ms": "^2.1.1"
             }
         },
-        "iconv-lite": {
+        "node_modules/iconv-lite": {
             "version": "0.4.24",
             "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
             "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
-            "requires": {
+            "dependencies": {
                 "safer-buffer": "&gt;= 2.1.2 &lt; 3"
+            },
+            "engines": {
+                "node": "&gt;=0.10.0"
             }
         },
-        "moment": {
+        "node_modules/moment": {
             "version": "2.29.1",
             "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz",
-            "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ=="
+            "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==",
+            "engines": {
+                "node": "*"
+            }
         },
-        "ms": {
+        "node_modules/ms": {
             "version": "2.1.3",
             "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
             "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
         },
-        "needle": {
+        "node_modules/needle": {
             "version": "2.5.2",
             "resolved": "https://registry.npmjs.org/needle/-/needle-2.5.2.tgz",
             "integrity": "sha512-LbRIwS9BfkPvNwNHlsA41Q29kL2L/6VaOJ0qisM5lLWsTV3nP15abO5ITL6L81zqFhzjRKDAYjpcBcwM0AVvLQ==",
-            "requires": {
+            "dependencies": {
                 "debug": "^3.2.6",
                 "iconv-lite": "^0.4.4",
                 "sax": "^1.2.4"
+            },
+            "bin": {
+                "needle": "bin/needle"
+            },
+            "engines": {
+                "node": "&gt;= 4.4.x"
             }
         },
-        "safer-buffer": {
+        "node_modules/safer-buffer": {
             "version": "2.1.2",
             "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
             "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
         },
-        "sax": {
+        "node_modules/sax": {
             "version": "1.2.4",
             "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
             "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="

</code></pre>
<p dir="auto">Because the colours of the result could be important, I have also included a screenshot as an attachment.</p>
<p dir="auto"><img src="/assets/uploads/files/1725881141011-screenshot-2024-09-09_part1.png" alt="Screenshot 2024-09-09_part1.png" class=" img-fluid img-markdown" /> <img src="/assets/uploads/files/1725881141148-screenshot-2024-09-09_part2.png" alt="Screenshot 2024-09-09_part2.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/119601</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/119601</guid><dc:creator><![CDATA[Klinge]]></dc:creator><pubDate>Mon, 09 Sep 2024 11:25:53 GMT</pubDate></item><item><title><![CDATA[Reply to Module MMM-OpenWeatherMapForecast is not running on Sat, 07 Sep 2024 12:26:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/klinge" aria-label="Profile: Klinge">@<bdi>Klinge</bdi></a> Just tested the module and it is working fine for me. The module requires a language in the config but it is not in the sample. So you may want to check that. As for the error you are getting, Have you changed anything in line one of the node_helper? The comment section.</p>
]]></description><link>https://forum.magicmirror.builders/post/119563</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/119563</guid><dc:creator><![CDATA[mumblebaj]]></dc:creator><pubDate>Sat, 07 Sep 2024 12:26:02 GMT</pubDate></item><item><title><![CDATA[Reply to Module MMM-OpenWeatherMapForecast is not running on Sat, 07 Sep 2024 11:21:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/klinge" aria-label="Profile: Klinge">@<bdi>Klinge</bdi></a> looks like you must have have changed something else</p>
<p dir="auto">in the module folder do</p>
<p dir="auto">git diff</p>
<p dir="auto">to see the changes</p>
]]></description><link>https://forum.magicmirror.builders/post/119559</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/119559</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 07 Sep 2024 11:21:56 GMT</pubDate></item><item><title><![CDATA[Reply to Module MMM-OpenWeatherMapForecast is not running on Sat, 07 Sep 2024 08:04:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Thank you for your response.</p>
<p dir="auto">When I change the line 63 I got the following error when I start my MMM</p>
<pre><code>[2024-09-07 09:56:11.233] [ERROR] (node:3736) UnhandledPromiseRejectionWarning: /home/pi/MagicMirror/modules/MMM-OpenWeatherMapForecast/node_helper.js:3
  Node Helper for MMM-OpenWeatherMapForecast.
       ^^^^^^

SyntaxError: Unexpected identifier 'Helper'
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1160:20)
    at Module._compile (node:internal/modules/cjs/loader:1212:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12)
    at c._load (node:electron/js2c/node_init:2:13672)
    at Module.require (node:internal/modules/cjs/loader:1122:19)
    at require (node:internal/modules/helpers:130:18)
    at loadModule (/home/pi/MagicMirror/js/app.js:187:19)
    at loadModules (/home/pi/MagicMirror/js/app.js:217:10)
    at async App.start (/home/pi/MagicMirror/js/app.js:272:3)
(Use `electron --trace-warnings ...` to show where the warning was created)
[2024-09-07 09:56:11.240] [ERROR] (node:3736) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

</code></pre>
<p dir="auto">I checked the line a few times to make sure I hadn’t mistyped it.</p>
]]></description><link>https://forum.magicmirror.builders/post/119547</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/119547</guid><dc:creator><![CDATA[Klinge]]></dc:creator><pubDate>Sat, 07 Sep 2024 08:04:22 GMT</pubDate></item><item><title><![CDATA[Reply to Module MMM-OpenWeatherMapForecast is not running on Thu, 05 Sep 2024 18:30:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/klinge" aria-label="Profile: Klinge">@<bdi>Klinge</bdi></a> yeh,  that error handler</p>
<p dir="auto">do this<br />
cd to the module folder<br />
nano node_helper.js</p>
<p dir="auto">change line 63 from</p>
<p dir="auto">ERROR ** " + error);</p>
<p dir="auto">to<br />
ERROR ** " + response.statusCode);</p>
<p dir="auto">then rerun MagicMirror and look at the stdout content in the pm2 logs</p>
]]></description><link>https://forum.magicmirror.builders/post/119508</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/119508</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 05 Sep 2024 18:30:23 GMT</pubDate></item></channel></rss>