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 doesent load respectively should be a valid spdx license expression

    Scheduled Pinned Locked Moved Troubleshooting
    30 Posts 6 Posters 19.7k Views 6 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.
    • A Offline
      astrakid @gianienderlin
      last edited by

      @gianienderlin
      That would be cool. Or put ut in here for ithers as well.

      1 Reply Last reply Reply Quote 0
      • G Offline
        gianienderlin
        last edited by gianienderlin

        to be honest, I don’t know what I’ve changed, too long ago. but it works for me

        G 1 Reply Last reply Reply Quote 0
        • G Offline
          gianienderlin @gianienderlin
          last edited by

          oh sorry, i cant upload my files…

          Error
          You do not have enough privileges for this action

          1 Reply Last reply Reply Quote 0
          • M Offline
            marphi1602
            last edited by

            Has anybody solved the issue? I am facing also the “loading” issue. I was thinking of that a certain ski area doesn´t exist anymore, but I took only one (Hintertux) which is definitely open and listed on the web page… In case somebody solved the issue, please upload your files.

            1 Reply Last reply Reply Quote 0
            • A Offline
              astrakid
              last edited by

              not yet, i am waiting for the files of gianienderlin, then i can find out what is the fix.

              1 Reply Last reply Reply Quote 0
              • G Offline
                gianienderlin
                last edited by

                here are my custom files. please let me know if they work.

                http://www.filehosting.org/file/details/705911/MMM-bergfex.zip

                M H 2 Replies Last reply Reply Quote 0
                • A Offline
                  astrakid
                  last edited by

                  @gianienderlin said in MMM-Bergfex doesent load respectively should be a valid spdx license expression:

                  custom files. please let me k

                  as far as i could see there is one main change in node_helper.js:
                  instead of
                  var sys = require(‘sys’);

                  he uses
                  var util = require(‘util’);

                  regards,
                  andre

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    marphi1602 @gianienderlin
                    last edited by

                    @gianienderlin worked for me! The only thing what I´ve changed was the const in node_helper.js.
                    Due to the fact that I am more interested in seeing the results of the Austrian ski resorts I put // Constants
                    const URL = “http://www.bergfex.at/oesterreich/schneewerte/”;

                    Thank you!

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      gianienderlin
                      last edited by

                      yes this is possible: -) but thought there was more…

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        marphi1602
                        last edited by

                        anybody knows how I have to set ‘Kitzbühel - Kirchberg’ to the config? I think I am struggling with the “ü” same also for special characters like “-”… In case I am putting Kitzbühel into the config it says loading…

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          astrakid
                          last edited by astrakid

                          @marphi1602 said in MMM-Bergfex doesent load respectively should be a valid spdx license expression:

                          Kitzbühel - Kirchberg

                          it works for me without an issue. my config part:

                                          {
                                                  module: 'MMM-bergfex',
                                                  position: 'top_right',
                                                  classes: 'small dimmed',
                                                  config: {
                                                      updateInterval: 30*60*1000,
                                                      animationSpeed: 0,
                                                      header: 'Schneebericht',
                                                          skiareas: [
                                                                          'Fieberbrunn - Saalbach Hinterglemm Leogang',
                                                                          'Kitzbühel - Kirchberg',
                                                                 ],
                                                          shortenArea: 20,
                                                          cssclassrow: 'normal',
                                                          cssclassheader: 'bright'
                          
                                                  }
                                          },
                          

                          edit: which ‘locale’ are you using? i have “C” configured except “LANGUAGE=” and “LC_ALL=”.
                          edit2: maybe you can try this (this is what is visible in the logfile): ‘Kitzbhel - Kirchberg’

                          M 1 Reply Last reply Reply Quote 0
                          • M Offline
                            marphi1602 @astrakid
                            last edited by marphi1602

                            @astrakid thanks! I checked the config once again and I’ve seen some odd ascii characters hence it hasn’t worked properly. Now it’s working!

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              marphi1602
                              last edited by

                              Is there any chance to highlight this ski resort with the highest amount of fresh snow?

                              A 1 Reply Last reply Reply Quote 0
                              • H Offline
                                hermlam @gianienderlin
                                last edited by

                                @gianienderlin @astrakid Even after copying these files, the problem stays: the only thing I see is the header and ‘_loading…’

                                M 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  marphi1602 @hermlam
                                  last edited by

                                  @hermlam pls publish the bergfex part of your config. Are you looking for the snow results of Austria or Switzerland? I had to change the const to the Austrian snow result url, pls see the posts above. For the first step I would suggest to take only one ski resort in your Cfg.

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    astrakid @marphi1602
                                    last edited by

                                    @marphi1602 highlightingwould need changes to the sourcecode.

                                    1 Reply Last reply Reply Quote 0
                                    • binderthB Offline
                                      binderth
                                      last edited by

                                      I do have the same problem:
                                      0_1511515614513_953ac801-4286-4bfa-af2e-6554110a4c8e-image.png

                                      To avoid some enconding Problems, I picked some oneword-places for start:

                                      		{
                                      			module: 'MMM-bergfex',
                                      			position: 'top_right', 
                                      			classes: 'small dimmed', 
                                      			config: {
                                      			    updateInterval: 30*60*1000,
                                      			    animationSpeed: 0,
                                      			    header: 'Schneebericht',
                                      				skiareas: [
                                      						// 'Zell am Ziller - Zilleral Arena',
                                      						// 'Gerlos - Zillertal Arena',
                                      						'Ischgl',
                                      						'Jungholz',
                                      				],
                                      				shortenArea: 20,
                                      				cssclassrow: 'normal',
                                      				cssclassheader: 'bright'				
                                      			}
                                      		},
                                      

                                      like described in this thread (https://forum.magicmirror.builders/post/30795), I changed to var util = require(‘util’); in node_helper.js

                                      In my logs I get this:

                                      TypeError: Cannot read property 'parent' of undefined
                                          at Function.exports.update (/home/pi/MagicMirror/modules/MMM-bergfex/node_modules/cheerio/lib/parse.js:69:25)
                                          at module.exports (/home/pi/MagicMirror/modules/MMM-bergfex/node_modules/cheerio/lib/parse.js:19:11)
                                          at Function.exports.load (/home/pi/MagicMirror/modules/MMM-bergfex/node_modules/cheerio/lib/static.js:27:14)
                                          at Request._callback (/home/pi/MagicMirror/modules/MMM-bergfex/node_helper.js:43:19)
                                          at self.callback (/home/pi/MagicMirror/modules/MMM-bergfex/node_modules/request/request.js:186:22)
                                          at emitOne (events.js:96:13)
                                          at Request.emit (events.js:191:7)
                                          at Request.onRequestError (/home/pi/MagicMirror/modules/MMM-bergfex/node_modules/request/request.js:878:8)
                                          at emitOne (events.js:96:13)
                                          at ClientRequest.emit (events.js:191:7)
                                      
                                      M 1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        marphi1602 @binderth
                                        last edited by

                                        @binderth are you sure that your pi is connected with the internet? I have seen the same error a couple of weeks ago and I noticed that my pi wasn’t connected with the www anymore. What’s happening in case you ping www.google.com from your pi? Are you using pm2? What’s in your pm2 log mm

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          ReinerZ
                                          last edited by

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0
                                          • R Offline
                                            ReinerZ
                                            last edited by

                                            This post is deleted!
                                            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
                                            • 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