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 4.2k 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.
    • prototype0815P Offline
      prototype0815
      last edited by

      Hey folks,

      I have updated my whole MM-SD-Card to a new “Raspbian Buster with desktop and recommended software” and also up to MM². I got everything to work except the weatherchart of paphko (https://github.com/paphko/mmm-weatherchart). If I put the module inside config.js the MM will not come up again. the monitor stays completely black (irrelevant to mention that I tried also the default module “code” :expressionless_face: ). By the way, its possible to kill the pm2 prcoess with CTRL+Q.

      Then I tried the fork of that weatherchart-module from szech (https://github.com/szech/mmm-weatherchart). So I decided to rename the paphko-weatherchart-module-folder and to install the szech one at the correct location (/home/pi/MagicMirror/modules/mmm-weatherchart/). First I tried the default module-code and (a little success :smiling_face_with_open_mouth_smiling_eyes: ) the MM² came up again!

      But without any weatherchart :sleepy_face: . So I decided to alter the module-config to my own settings, but nothing changed. Then I have tried some different locations for the weatherchart module, but nothing worked. The MM² shows all modules but not the desired weatherchart.

      However, one thing was noticed, as I set the same location as the newsfeed module (region = bottom_bar) the newsfeed appeared two inches higher than before :hushed_face: . So I guess something took that space below the newsfeed. I suspect that is the szech mmm-weatherchart, but a kind of invisible.

      Thx in advance, I appreciate your help. :smiling_face_with_smiling_eyes:

      lavolp3L 1 Reply Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer @prototype0815
        last edited by lavolp3

        @prototype0815 You really need to learn how to debug/troubleshoot. There are two kinds of logs, one on the server side (in the console of your Raspberry pi) and one on the client side (in the browser).

        Open your mirror in the browser of a laptop and press F12 for dev tools. You can see on the console tab if there is an error. That’s the client side logging.

        Or go via ssh into your Raspberry pi and try dev mode. This will show you the server side logs.

        pm2 stop all
        cd ~/MagicMIrror && npm start dev
        

        But my bet is on the issue on github
        So try out this

        cd ~/MagicMirror/modules/MMM-weatherchart
        npm install del
        pm2 restart mm
        

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        1 Reply Last reply Reply Quote 0
        • prototype0815P Offline
          prototype0815
          last edited by prototype0815

          Yes I do! But unfortunately I’m not very familiar with linux. I’ll give it a try. Thank you
          EDIT: npm install del doesn’t work for both modules.

          EDIT2: after the installation of “del”, the MM² come up again. But there is still no weatherchart.

          EDIT3: cd ~/MagicMIrror && npm start dev
          console issued the following text --> { [Error: EACCES: permission denied, open ‘/home/pi/MagicMirror/modules/mmm-weatherchart/cache/map-1581788960498.png’]
          errno: -13,
          code: ‘EACCES’,
          syscall: ‘open’,
          path: ‘/home/pi/MagicMirror/modules/mmm-weatherchart/cache/map-1581788960498.png’ }

          I tried ‘sudo chmod -R 777 .’ inside the mmm-weatherchart module directory. But this also dosn’t help.

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by A Former User

            generaly caused by

            maybe:

            1. you have installed this module with root account (by using sudo ?)
            2. git clone with sudo
            3. npm install with sudo

            notes: ALL modules and MagicMirror program sould be installed with user account (pi with raspberry)
            and NOT with root account (sudo command)

            If you install with sudo command is equal to modify or rewrite a file in windows system -> you can’t access or modify it with simple windows user account

            prototype0815P 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil
              last edited by

              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 Do not disturb
                sdetweil
                last edited by sdetweil

                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 Reply Quote 0
                • prototype0815P Offline
                  prototype0815 @Guest
                  last edited by

                  @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
                  • prototype0815P Offline
                    prototype0815
                    last edited by

                    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 Reply Quote 0
                    • S Do not disturb
                      sdetweil @prototype0815
                      last edited by

                      @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 Do not disturb
                        sdetweil @sdetweil
                        last edited by

                        @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 Do not disturb
                          sdetweil
                          last edited by

                          @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
                          • prototype0815P Offline
                            prototype0815
                            last edited by

                            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 Reply Quote 0
                            • S Do not disturb
                              sdetweil @prototype0815
                              last edited by

                              @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
                              • prototype0815P Offline
                                prototype0815
                                last edited by

                                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 Reply Quote 0
                                • S Do not disturb
                                  sdetweil @prototype0815
                                  last edited by

                                  @prototype0815 thx… weird…

                                  thats the whole point the dependencies section

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better 💗

                                  Register Login
                                  • 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