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-bergfex not working

    Scheduled Pinned Locked Moved Troubleshooting
    mmm-bergfexbergfexsnow
    38 Posts 5 Posters 17.3k Views 5 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.
    • M Offline
      MajorC Project Sponsor
      last edited by

      Hello,

      I tried to install the MMM-bergfex following the instructions of the readme file on GitHub.
      Also, I include the example config.

      https://github.com/nebulx29/MMM-bergfex

      But now I only get a complete black screen with the mouse visible. All my modules that where working before are not shown anymore?

      Any suggestions how to troubleshoot this? Is @nebulx29 still around?

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

        @MajorC black screen, do this

        open the developers console, ctrl-shift-i on the mirror keyboard
        select the console tab
        and scroll up to see any errors, usually red text

        u can also filter messages for specific modules by putting part of the module name in the filter field, ‘berg’ for example here

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • M Offline
          MajorC Project Sponsor
          last edited by

          I can open the developers console without mmm-bergfex in the config and will see a couple of entries, no errors.

          As soon as I include mmm-bergfex in the config, the developers console says: DevTool was disconnected from the page. Once page is reloaded, DevTools will automatically reconnect.

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

            @MajorC ok, look in the window where you start MM, npm start or pm2 ,
            if pm2 the pm2 logs --lines=???
            where ??? is a number, 15 is the default

            to get to the window if MM is showing, alt-spacebar, n

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • M Offline
              MajorC Project Sponsor
              last edited by MajorC

              /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
              0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-bergfex/node_helper.js:11:13)
              0|MagicMir |     at Module._compile (internal/modules/cjs/loader.js:786:30)
              0|MagicMir |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
              0|MagicMir |     at Module.load (internal/modules/cjs/loader.js:645:32) {
              0|MagicMir |   code: 'MODULE_NOT_FOUND',
              0|MagicMir |   requireStack: [
              0|MagicMir |     '/home/pi/MagicMirror/modules/MMM-bergfex/node_helper.js',
              0|MagicMir |     '/home/pi/MagicMirror/js/app.js',
              0|MagicMir |     '/home/pi/MagicMirror/js/electron.js',
              0|MagicMir |     '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
              0|MagicMir |     undefined
              0|MagicMir |   ]
              0|MagicMir | }
              0|MagicMir | [2020-09-27 17:30:56.629] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
              0|MagicMir | [2020-09-27 17:30:56.630] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
              
              
              
              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @MajorC
                last edited by

                @MajorC looks like you didn’t do the npm install in the module folder after cloning

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  MajorC Project Sponsor @sdetweil
                  last edited by MajorC

                  @sdetweil

                  
                  pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install cheerio
                  npm WARN MMM-bergfex@ license should be a valid SPDX license expression
                  
                  + cheerio@1.0.0-rc.3
                  updated 1 package and audited 65 packages in 5.877s
                  
                  2 packages are looking for funding
                    run `npm fund` for details
                  
                  found 0 vulnerabilities
                  
                  pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install
                  npm WARN MMM-bergfex@ license should be a valid SPDX license expression
                  
                  audited 65 packages in 2.257s
                  
                  2 packages are looking for funding
                    run `npm fund` for details
                  
                  found 0 vulnerabilities
                  
                  pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $
                  
                  

                  I just did it again, but I am quite sure I already did it before.

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

                    @MajorC sadly he didn’t update package.json with all the required modules

                    do
                    npm install async --save
                    npm install sys – save

                    his code

                    var async = require('async');
                    var sys = require('sys');
                    var exec = require('child_process').exec;
                    const request = require('request');
                    const cheerio = require("cheerio");
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      MajorC Project Sponsor @sdetweil
                      last edited by

                      @sdetweil said in MMM-bergfex not working:

                      npm install async --save
                      npm install sys – save

                      in the MMM-bergfex folder?

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

                        @MajorC of course

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          MajorC Project Sponsor
                          last edited by

                          sorry, I am totaly new to this world, my first Raspberry project.

                          
                          pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install async --save
                          npm WARN MMM-bergfex@ license should be a valid SPDX license expression
                          
                          + async@3.2.0
                          added 1 package from 1 contributor and audited 66 packages in 2.709s
                          
                          2 packages are looking for funding
                            run `npm fund` for details
                          
                          found 0 vulnerabilities
                          
                          pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install sys -- save
                          npm WARN MMM-bergfex@ license should be a valid SPDX license expression
                          
                          + sys@0.0.1
                          + save@2.4.0
                          added 13 packages from 11 contributors and audited 79 packages in 8.763s
                          
                          2 packages are looking for funding
                            run `npm fund` for details
                          
                          found 0 vulnerabilities
                          
                          pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $
                          
                          
                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @MajorC
                            last edited by

                            @MajorC and then start mm

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              MajorC Project Sponsor
                              last edited by

                              well, I have my mirror back, including Bergfex Snow Report. At the moment there is only “loading…” visible.

                              I will double check my config.

                              Maybe you can include the help to the git? Would be nice to have it working as smooth as the rest in this wonderful project.

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

                                @MajorC he hasn’t updated in 2 years… so unlikely

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  MajorC Project Sponsor
                                  last edited by

                                  And it is working.

                                  This is important:

                                  This is an array with strings of the skiareas to display. String must exactly match the name on http://www.bergfex.at/oesterreich/schneewerte/
                                  
                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @MajorC
                                    last edited by

                                    @MajorC yes, precise config is required in each module. some don’t document well…

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      MajorC Project Sponsor
                                      last edited by

                                      Thanks for your very fast help. Maybe someone will rewrite this MMM. Winter is coming!

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

                                        Hi ,

                                        sorry for bringing this up again. I also have the bergfex “loading…” issue. However, in the logs I can see the values are retrieved. They just don’t show in the mirror:

                                        0|mm     | 83 snow reports from bergfex.at retrieved.
                                        0|mm     | [2020-11-12 21:40:29.367] [LOG]    searching for Koralpe
                                        0|mm     | [2020-11-12 21:40:29.369] [LOG]    searching for Hintertuxer Gletscher / Hintertux
                                        0|mm     | [2020-11-12 21:40:29.370] [LOG]    searching for Ischgl
                                        0|mm     | [2020-11-12 21:40:29.373] [LOG]    searching for Obergurgl - Hochgurgl
                                        0|mm     | [2020-11-12 21:40:29.375] [LOG]    searching for Seefeld/Rosshütte
                                        0|mm     | [2020-11-12 21:40:29.376] [LOG]    searching for Sölden
                                        0|mm     | [2020-11-12 21:40:29.377] [LOG]    searching for Stubaier Gletscher / Stubaital
                                        0|mm     | [2020-11-12 21:40:29.377] [LOG]    
                                        0|mm     | [
                                        0|mm     |   null,
                                        0|mm     |   {
                                        0|mm     |     skiarea: 'Hintertuxer Gletscher / Hintertux',
                                        0|mm     |     tal: '-',
                                        0|mm     |     berg: '135 cm',
                                        0|mm     |     neu: '-',
                                        0|mm     |     lifte: '0',
                                        0|mm     |     update: ''
                                        0|mm     |   },
                                        0|mm     |   {
                                        0|mm     |     skiarea: 'Ischgl',
                                        0|mm     |     tal: '-',
                                        0|mm     |     berg: '20 cm',
                                        0|mm     |     neu: '-',
                                        0|mm     |     lifte: '0',
                                        0|mm     |     update: ''
                                        0|mm     |   },
                                        0|mm     |   {
                                        0|mm     |     skiarea: 'Obergurgl - Hochgurgl',
                                        0|mm     |     tal: '-',
                                        0|mm     |     berg: '75 cm',
                                        0|mm     |     neu: '-',
                                        0|mm     |     lifte: '0',
                                        0|mm     |     update: ''
                                        0|mm     |   },
                                        0|mm     |   null,
                                        0|mm     |   {
                                        0|mm     |     skiarea: 'Sölden',
                                        0|mm     |     tal: '19 cm',
                                        0|mm     |     berg: '72 cm',
                                        0|mm     |     neu: '-',
                                        0|mm     |     lifte: '0',
                                        0|mm     |     update: ''
                                        0|mm     |   },
                                        0|mm     |   {
                                        0|mm     |     skiarea: 'Stubaier Gletscher / Stubaital',
                                        0|mm     |     tal: '35 cm',
                                        0|mm     |     berg: '110 cm',
                                        0|mm     |     neu: '-',
                                        0|mm     |     lifte: '0',
                                        0|mm     |     update: ''
                                        0|mm     |   }
                                        0|mm     | ]
                                        
                                        

                                        So the names of the resorts seem to be correct.
                                        Any ideas on this one?

                                        thanks
                                        Chris

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

                                          Argh… just 2 minutes after posting I found the issue:

                                          I had 2 values “Koralpe” and “Seefeld/Rosshütte”, which were displayed in the log as NULL. Removing these entries made bergfex work…

                                          Again, it was a typo ;)

                                          thanks
                                          Chris

                                          1 Reply Last reply Reply Quote 0
                                          • F Offline
                                            FatTony123
                                            last edited by FatTony123

                                            Hi all,
                                            I’ve created a fork and did some updates to the code and config.
                                            You can now select the country where bergfex should choose the values from.

                                            Feel free to test and let me know any feedback.
                                            So far I can show multiple countries and their values…

                                            M 2 Replies Last reply Reply Quote 1

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