• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-solar showing "Loading" and is doing nothing .... did someone get it running?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
12 Posts 4 Posters 3.8k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    MWel1977 @sdetweil
    last edited by Jan 3, 2019, 3:32 PM

    @sdetweil … WOW! :fearful_face: :fearful_face: :fearful_face:
    Didn’t know about this! Looks nice!
    But back to the problem…in the console tab I can see some errors but not about the Solar module. There are 2 warnings that the Solar module got a notification from another module but don’t think that’s a problem.
    I can see 3 errors for the modules: MMM-Buienradar, weatherforcast (openweathermap is unauthorized yet it works fine) and for my crypto coins chart (it can’t find cryptocoin picture/logo’s in a specific folder).
    So the Solar-module should work fine looking at this.

    1 Reply Last reply Reply Quote 0
    • S Offline
      sdetweil
      last edited by Jan 3, 2019, 3:34 PM

      ok, can u find the console window where you did npm start dev, and see if there are errors reported there? alt-tab, should bring up a list of windows, so you can select the right console window

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Jan 3, 2019, 3:51 PM Reply Quote 0
      • M Offline
        MWel1977 @sdetweil
        last edited by Jan 3, 2019, 3:51 PM

        @sdetweil
        I’m not seeing any errors but I see something strange…
        Down at the bottomit says:
        “…
        Sockets connected & moduls started …
        Launching application.
        …”
        Then a bit futher down a line reads:
        “…
        Notification: GET_SOLAR Payload: [object object]
        …”

        Looks like it’s missing data that it needs to find somewere. Am I right?

        S 1 Reply Last reply Jan 3, 2019, 11:14 PM Reply Quote 0
        • S Offline
          sdetweil @MWel1977
          last edited by sdetweil Jan 3, 2019, 11:17 PM Jan 3, 2019, 11:14 PM

          @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

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          B M 2 Replies Last reply Jan 4, 2019, 1:41 AM Reply Quote 1
          • S Offline
            sdetweil
            last edited by Jan 3, 2019, 11:20 PM

            I submitted that code to the MMM-Solar author for the future

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 1
            • B Offline
              bhepler Module Developer @sdetweil
              last edited by Jan 4, 2019, 1:41 AM

              @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.

              S 1 Reply Last reply Jan 4, 2019, 3:35 AM Reply Quote 0
              • S Offline
                sdetweil @bhepler
                last edited by sdetweil Jan 4, 2019, 12:22 PM Jan 4, 2019, 3:35 AM

                @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

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MWel1977 @sdetweil
                  last edited by Jan 7, 2019, 4:09 PM

                  @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.

                  S M 2 Replies Last reply Jan 7, 2019, 4:48 PM Reply Quote 0
                  • S Offline
                    sdetweil @MWel1977
                    last edited by Jan 7, 2019, 4:48 PM

                    @mwel1977 cool… let us know what you find out…

                    I don’t know anything about the solar panel system

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mash55 @MWel1977
                      last edited by Feb 20, 2019, 11:54 PM

                      @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)?

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy