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-SunnyPortal not reading data - more then one plants not showing any values on MM2

    Scheduled Pinned Locked Moved Utilities
    14 Posts 2 Posters 1.1k Views 2 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.
    • S Offline
      sdetweil @frits.erasmus
      last edited by

      @frits-erasmus yep. either didn’t get data or api changed

      1000025938.jpg

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      F 1 Reply Last reply Reply Quote 0
      • F Offline
        frits.erasmus @sdetweil
        last edited by

        @sdetweil
        Sam,

        I think it is because I have two plants registered and manually logging onto the site incurs another step where one has to select the correct plant. That step is not a usual step when you only have one plant registered. That, I think causes MMM-SunnyPoprtal to fail.

        I also have two SunnyBow inverters that might contribute to this complexity.

        I will then go the MQTT route until the SunnyPortal is resolved. I also left a message for the developer in Github.
        I have an MQTT server running on my LAN and I have feeds of everything I would like to monitor, so that could potentially be the better route to take

        To play save I am going to start fresh with an SSD /NVME - M.2 for stability

        In your message starting with " no. how do you start MagicMirror?" I learned quite a lot.
        Is that way of starting supposed to give no RED messages when I connect via SSH?

        I saw several lines withRED text.

        c8b0edfe-8af1-4ce5-80bf-9cac99638b3d-image.png

        I suppose there should be no RED text when there are no errors?

        I will also do a little more reading now that I have a basic understanding of how MM2 works

        See you in my next post (Sorry for being such a nuisance)

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @frits.erasmus
          last edited by

          @frits-erasmus yes the red is a fatal error on the module.

          request is a li rare to get data (request it). many developers did not properly handle errors.

          in this case it looks like the data is supposed to contain an array xxx[1] and that is not the case. oops…

          I don’t know if it because of error, or api change , or multiple sources.

          how MagicMirror works
          the modulename.js runs in the browser (electron is a browser), but as such it cannot directly access the system it runs on for security (can’t read files, fiddle w hardware , reformat your disks…)

          so the module has a helper, that runs o the server side which CAN do all that.

          so the modulename.js sends a request to the helper to get data. the helper does it, and sends back. … the modilenane.js is waiting (loading… on the screen)
          but if there is an error most helpers do not send back. so both sides are waiting…
          helper gor another request modulename.js a response to last request…

          stalemate…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • F Offline
            frits.erasmus
            last edited by

            Thanks Sam for that info.
            Although I do not understand it 100% it gives me an idea why there is an issue with that module.

            I started from scratch and this time took it slow.
            Used your script on your github page made the install so much cleaner.
            THANKS for your effort there!!

            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 2 / 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