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 13.9k 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.
    • 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
          • M Offline
            MajorC Project Sponsor @FatTony123
            last edited by

            @FatTony123 can you explain how to use the fork? I am a total noob.

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

              @MajorC Same approach as with other modules.
              Get the repository via

              git clone https://github.com/FatTony123/MMM-bergfex.git
              

              and then run

              npm install cheerio
              

              then

              npm install
              

              That installs all relevant software. After that you need to setup your config file accordingly.

              I’m not that active here, so you can reach me via github too …

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

                @FatTony123 u shouldn’t have to do the separate install of cheerio as it is in the package.json

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil Thanks for the hint! (still not that familiar with npm ;-))
                  Updated the install instructions and package.json file accordingly.

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

                    @FatTony123 said in MMM-bergfex not working:

                    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…

                    Works like a charm. Thank you very much!

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

                      Great to hear, thanks!

                      Let me know if you have any question, comments or ideas for improvements…

                      Cheers!

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

                        I never saw values for “neu” maybe they are not provided by the city. Perhaps this would be nice to have this optional to save some unused space.

                        And I will play around with the CSS at the weekend. I would like to have some more space between each column.

                        F 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 3 / 4
                        • 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