Read the statement by Michael Teeuw here.
MMM-solar showing "Loading" and is doing nothing .... did someone get it running?
-
@mwel1977 thats just bad logging
edit the node_helper.js file in the MMM-Solar folder, at the end
after this
if (!error && response.statusCode == 200) { var jsonData = JSON.parse(body); self.sendSocketNotification("SOLAR_DATA", jsonData); }
add this
else{ if(error!=null){ console.log("api request error ="+ JSON.stringify(error)); } else{ console.log("api response code error ="+ response.statusCode); } }
i get this
Notification: GET_SOLAR Payload: [object Object] api response code error =401
401 is authentication failed
-
I submitted that code to the MMM-Solar author for the future
-
@sdetweil - Just FYI for everyone: 401 is an Unauthorized Request error message. For some reason, your combination of API key, userID and systemID are not working.
-
@bhepler I know. I don’t have a key. So it should fail. I was just giving an example of the improved error reporting to help out
-
@sdetweil I’ll try it tonight.
Been busy last couple of days (sadly not with my MM2).
But I think it has something to do with the API not being able to connect to my solarpanel system. Like I mentionent before. -
@mwel1977 cool… let us know what you find out…
I don’t know anything about the solar panel system
-
@mwel1977 Did you go to the authorization link on your developer portal? Do you see the app you created in the developer portal in your Enlighten site (under Account)?