• 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-Powerwall

Scheduled Pinned Locked Moved Utilities
13 Posts 7 Posters 4.2k Views 8 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.
  • D Offline
    Dano @MikeBishop
    last edited by Dano Aug 24, 2020, 10:00 PM Aug 24, 2020, 9:59 PM

    This post is deleted!
    1 Reply Last reply Reply Quote 0
    • M Offline
      MikeBishop
      last edited by Aug 24, 2020, 11:42 PM

      Hi, Dano - did you do an npm install to pick up the dependencies? If not, you won’t have chart.js installed, which means no graphs.

      C 1 Reply Last reply Aug 11, 2021, 1:06 AM Reply Quote 0
      • N Offline
        NicB72
        last edited by Sep 6, 2020, 4:53 PM

        I love this component. Few questions and a request.

        1. I have 2 Tesla’s, soon to be 3. Could you add an option to chose which vehicle to display?
        2. I display this on a Mini Magic Mirror on my next using the MMM-Carousel component. Because of the real estate I have to use a single graph but they appear tiny. I’ve tried to get my head around the module’s css file but haven’t worked it out. Can you either create another graph for Mini-Magic-Mirror’s or help me understand how to modify the css to make this work.

        Cheers

        M 1 Reply Last reply Sep 8, 2020, 3:56 PM Reply Quote 1
        • M Offline
          MikeBishop @NicB72
          last edited by Sep 8, 2020, 3:56 PM

          @NicB72, I’d love to work with you on both of these.

          The intent is that the car tile will periodically rotate through the cars on the account; if cars are charging and your TWC is capable of reporting VINs (not all are), then it will show the cars currently charging; otherwise, it rotates through all of them on your Tesla account.

          Now, the limiting factor: I only have one Tesla vehicle, so I’ve never been able to test that code path with several. 😁 Sounds like it’s not working. Send me a private message, and we can hopefully figure out why. If you’re moderately handy with webdev, you might want to put breakpoints in the functions focusOnVehicles() and advanceToNextVehicle() to figure out why they’re always choosing the same vehicle.

          The way I’d expect it to work with MMM-Carousel is that you’ll have multiple instances of MMM-Powerwall, each displaying a single graph. MMM-Carousel would then be responsible for rotating through the several instances, while the messages from the node_helper make them all stay in sync. (Though now that you mention it, there might be a bit of conflict between the CarCharging graph rotating between cars and MMM-Carousel rotating through all of them. Hm.) There’s a fork of MMM-Carousel that has more robust support for multiple instances of the same module in slides mode, though the original might work fine in global or positional mode.

          When you say they’re tiny… How tiny? The individual graphs are currently fixed-size at 430x250; if that’s too large for your screen, you might have some success with a CSS scale() transform.

          1 Reply Last reply Reply Quote 0
          • C Offline
            contactmike1 @MikeBishop
            last edited by Aug 11, 2021, 1:06 AM

            @mikebishop

            I am having the same issue with all the pictures missing. I updated to the latest version with a git pull in the MMM-Powerwall directory and NPM install in the MMM-Powerwall directory. I also tried installing chart.js manually again with npm install chart.js. I also tried deleting the full MM installation and followed the MM documentation for a fresh install. Nothing has helped.

            Are there other things to try? The module loses some of its magic without painting the actual charts. 541d3754-75c1-454b-b219-38618f8cf611-image.png

            M 1 Reply Last reply Aug 12, 2021, 11:33 AM Reply Quote 0
            • C Offline
              cowboysdude Module Developer @MikeBishop
              last edited by Aug 11, 2021, 11:42 PM

              @mikebishop LOL

              1 Reply Last reply Reply Quote 0
              • M Offline
                mumblebaj Module Developer @contactmike1
                last edited by Aug 12, 2021, 11:33 AM

                @contactmike1 Are there any errors in the NPM or PM2 logs or in the developer console?

                Check out my modules at: https://github.com/mumblebaj?tab=repositories

                C 1 Reply Last reply Aug 18, 2021, 2:39 PM Reply Quote 0
                • C Offline
                  contactmike1 @mumblebaj
                  last edited by Aug 18, 2021, 2:39 PM

                  @mumblebaj said in MMM-Powerwall:

                  errors in the NPM or PM2 logs or in the developer console?

                  Sorry I missed your reply earlier. Here’s NPM
                  a43c66d2-066a-4af0-9e61-9118ad11ef30-image.png

                  Reinstall chart.js
                  57dc1087-b88b-4628-832e-e87c989cf1cd-image.png

                  PM2 Log - These just repeat over and over.
                  9d1d9e20-532b-40cc-bf6e-1e7d522d924f-image.png or developer console.

                  I am not sure what is the developer console. You mean on the browser? I don’t think I have web enabled. I’ll have to look into it.

                  Is there a better command for installing chart.js or is chart.js not the issue?

                  M 1 Reply Last reply Aug 18, 2021, 5:55 PM Reply Quote 0
                  • M Offline
                    mumblebaj Module Developer @contactmike1
                    last edited by sdetweil Aug 18, 2021, 5:55 PM Aug 18, 2021, 5:55 PM

                    @contactmike1 Hi. Not what I meant. When you start your mirror, do you start it with PM2 or NPM? If you start it with NPM are there any errors in the console? If you start with PM2 you can do pm2 logs --lines=100 to get the last 100 lines and see if there are any errors. For the developer Window you can press Ctrl + i which would open the developer window. In the console tab look for any errors related to the module.

                    Check out my modules at: https://github.com/mumblebaj?tab=repositories

                    M 1 Reply Last reply Aug 18, 2021, 6:24 PM Reply Quote 0
                    • M Offline
                      MikeBishop @mumblebaj
                      last edited by Aug 18, 2021, 6:24 PM

                      @mumblebaj, chart.js needs to come from npm. If you do npm install chart.js, what does it say?

                      Also, recent versions have taken a couple of dependencies that require newer Node versions – what version are you running? (node --version)

                      I see the exceptions thrown on retrieving Storm Watch status; I’ve just pushed a commit to ensure that skips if it gets null back for now. However, besides log pollution, that shouldn’t actually be breaking anything – Node will log that it failed and move on to the next message.

                      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