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.

    PVOutput widget module

    Scheduled Pinned Locked Moved Development
    4 Posts 2 Posters 4.2k 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.
    • mrvanesM Offline
      mrvanes
      last edited by mrvanes

      I was wondering if it would be possible to show my generated solar panel output on MM and found out my favorite output aggregator pvoutput serves tiny widgets that satisfy my needs. The problem is, these widgets make extensive use of javascript and seem to clash with MagicMirror functionality when loaded in a

      but works when loaded as separate page using iframe (which I serve from /public folder).

      So, my personal need is satisfied, but if I wanted to share my effort with the community, the iframe method is not very customizable because I can’t access the systemid via http GET very easily (I know there is window.location work-around). Could anybody shed some light why the pvoutput widget code doesn’t work in a

      ?

      As far as I understand it, the graph makes use of jquery.sparkline to draw the graph and loads jquery 1.5.2 ondemand via widget/inc.jsp. Can dynamically loaded javascript be evaluated this way in the first place?

      1 Reply Last reply Reply Quote 0
      • mrvanesM Offline
        mrvanes
        last edited by mrvanes

        Ok, so I put up my tin-foil hat and created a real (no widget in iframe) MagicMirror module for PVOutput.org.
        It’s not tested for multiple instances of the module, pull requests are welcome.

        https://github.com/mrvanes/MMM-PVoutput
        0_1482330013918_pvoutput.jpg

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          skipperskip @mrvanes
          last edited by skipperskip

          <a class=@mrvanes Thanks for your great work! I was just what I was looking for. It works perfectly." class=" img-fluid img-markdown" />

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            skipperskip @skipperskip
            last edited by

            @skipperskip said in PVOutput widget module:

            ![@mrvanes Thanks for your great work!
            I was just what I was looking for. It works perfectly.]

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