<?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[MMM-DarkSkyForecast]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I have updated to 2.23.0.<br />
Now I have a problem with MMM-DarkSkyForecast, which was still working before the update. At the moment nothing is displayed anymore, except loading…</p>
<p dir="auto">The log file tells me:</p>
<pre><code>&lt;!DOCTYPE "... is not valid JSON
    at JSON.parse (&lt;anonymous&gt;)
    at Request._callback (/home/pi/MagicMirror/modules/MMM-DarkSkyForecast/node_helper.js:57:29)
    at self.callback (/home/pi/MagicMirror/modules/MMM-DarkSkyForecast/node_modules/request/request.js:185:22)
    at Request.emit (node:events:513:28)
    at Request.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-DarkSkyForecast/node_modules/request/request.js:1154:10)
    at Request.emit (node:events:513:28)
    at IncomingMessage.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-DarkSkyForecast/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (node:events:627:28)
    at IncomingMessage.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1358:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
[06.04.2023 10:45.14.538] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[06.04.2023 10:45.14.540] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[06.04.2023 10:55.11.221] [ERROR] Whoops! There was an uncaught exception...
[06.04.2023 10:55.11.224] [ERROR] SyntaxError: Unexpected token '&lt;', "
</code></pre>
<p dir="auto">I have carried out a new update of MMM-DarkSkyForecast, unfortunately without success.</p>
<p dir="auto">Can anyone help me?</p>
]]></description><link>https://forum.magicmirror.builders/topic/17716/mmm-darkskyforecast</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 09:33:27 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/17716.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Apr 2023 21:02:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-DarkSkyForecast on Thu, 06 Apr 2023 22:32:13 GMT]]></title><description><![CDATA[<p dir="auto">dark sky api was switched off on March 31st, 2023</p>
]]></description><link>https://forum.magicmirror.builders/post/108702</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/108702</guid><dc:creator><![CDATA[karsten13]]></dc:creator><pubDate>Thu, 06 Apr 2023 22:32:13 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-DarkSkyForecast on Fri, 07 Apr 2023 13:18:58 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://github.com/jclarke0000/MMM-OpenWeatherForecast" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/jclarke0000/MMM-OpenWeatherForecast</a></p>
]]></description><link>https://forum.magicmirror.builders/post/108709</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/108709</guid><dc:creator><![CDATA[swvalenti]]></dc:creator><pubDate>Fri, 07 Apr 2023 13:18:58 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-DarkSkyForecast on Thu, 06 Apr 2023 22:32:13 GMT]]></title><description><![CDATA[<p dir="auto">dark sky api was switched off on March 31st, 2023</p>
]]></description><link>https://forum.magicmirror.builders/post/108702</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/108702</guid><dc:creator><![CDATA[karsten13]]></dc:creator><pubDate>Thu, 06 Apr 2023 22:32:13 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-DarkSkyForecast on Thu, 06 Apr 2023 21:21:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mipraso" aria-label="Profile: MiPraSo">@<bdi>MiPraSo</bdi></a> i do not know, as there is some missing info</p>
<p dir="auto">edit the module node_helper.js</p>
<p dir="auto">and change this code</p>
<pre><code>        // console.log("[MMM-DarkSkyForecast] Getting data: " + url);
        request({url: url, method: "GET"}, function( error, response, body) {

          if(!error &amp;&amp; response.statusCode == 200) {

            //Good response
            var resp = JSON.parse(body);
            resp.instanceId = payload.instanceId;
            self.sendSocketNotification("DARK_SKY_FORECAST_DATA", resp);

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

        });
</code></pre>
<p dir="auto">to look like this<br />
(just copy/paste after selecting or deleting the old code above)</p>
<pre><code>        // console.log("[MMM-DarkSkyForecast] Getting data: " + url);
        request({url: url, method: "GET"}, function( error, response, body) {

          if(!error){

            if(response.statusCode == 200) {

              //Good response
              var resp = JSON.parse(body);
              resp.instanceId = payload.instanceId;
              self.sendSocketNotification("DARK_SKY_FORECAST_DATA", resp);
            }
            else {
              console.log( "[MMM-DarkSkyForecast] " + moment().format("D-MMM-YY HH:mm") + " ** unexpected response code ** " + response.statusCode + " data="+body );
            }

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

        });
</code></pre>
<p dir="auto">then run mm again so we can see what the api is complaining about</p>
]]></description><link>https://forum.magicmirror.builders/post/108700</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/108700</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 06 Apr 2023 21:21:57 GMT</pubDate></item></channel></rss>