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

Black screen when insert https://github.com/paphko/mmm-weatherchart

Scheduled Pinned Locked Moved Unsolved Troubleshooting
15 Posts 4 Posters 2.5k Views 4 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
    last edited by Feb 16, 2020, 6:15 PM

    I installed this module yesterday and did a little debugging. The request for the graphic works ok (code=200), but the saving to disk doesn’t work for some reason.

    The web URL error also means not found. I am away from my system til late today before I can look at it again

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • S Offline
      sdetweil
      last edited by sdetweil Feb 16, 2020, 9:30 PM Feb 16, 2020, 9:29 PM

      ok, we have a timing problem… the file is written, but erased

      workaround

      change these lines in node_helper.js

      			http.get(options, function (response) {
      				var pngFiles = payload.mmDir + 'modules/mmm-weatherchart/cache/*.png';
      				del([pngFiles]);
      

      to

      			var pngFiles = payload.mmDir + 'modules/mmm-weatherchart/cache/*.png';
      			del.sync([pngFiles]);
      			http.get(options, function (response) {
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Feb 16, 2020, 11:10 PM Reply Quote 0
      • P Offline
        prototype0815 @Guest
        last edited by Feb 16, 2020, 9:34 PM

        @Bugsounet ok thank you for the explanation. I tried it with and without sudo, but it doesn’t matter. I have left the last clone of the module without the sudo command.

        1 Reply Last reply Reply Quote 0
        • P Offline
          prototype0815
          last edited by Feb 16, 2020, 9:42 PM

          Today it was very weird, I started my MM² to reinstall the module as @Bugsounet said, and the weatherchart was visible (the first time on my MM²)! After that I decided to change the region of the weatherchart, unfortunately the weatherchart is now gone again. No region is working reliable.

          S 1 Reply Last reply Feb 16, 2020, 10:00 PM Reply Quote 0
          • S Offline
            sdetweil @prototype0815
            last edited by Feb 16, 2020, 10:00 PM

            @prototype0815 see the fix above

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @sdetweil
              last edited by Feb 16, 2020, 11:10 PM

              @prototype0815 see my reply above

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil
                last edited by Feb 17, 2020, 1:07 PM

                @prototype0815 better solution, download my fork of the module with both fixes

                stop your magicmirror

                cd ~/MagicMirror/modules
                mv mmm-weatherchart mmm-weatherchart.original
                git clone https://github.com/sdetweil/mmm-weatherchart.git
                cd mmm-weatherchart
                npm install
                cd ~/MagicMirror
                npm start
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 1
                • P Offline
                  prototype0815
                  last edited by Feb 17, 2020, 8:31 PM

                  Hey guys thank you all for your help! The sdetweil fork is working very well if “del” is installed too.
                  :handshake: :thumbs_up: great community

                  S 1 Reply Last reply Feb 17, 2020, 8:33 PM Reply Quote 0
                  • S Offline
                    sdetweil @prototype0815
                    last edited by Feb 17, 2020, 8:33 PM

                    @prototype0815 said in Black screen when insert https://github.com/paphko/mmm-weatherchart:

                    if “del” is installed too

                    what does that mean? del was added to the package.json file and should have been installed when u did the new npm install after cloning my repo…

                      "dependencies": {
                        "del": "^5.1.0",
                        "request": "latest"
                      }
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      prototype0815
                      last edited by Feb 21, 2020, 4:06 PM

                      I did exactly what you had written, but the weatherchart didnt work.
                      I had to install “del” separately after --> “cloning your repo and use npm install”

                      S 1 Reply Last reply Feb 21, 2020, 4:35 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        9/15
                        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