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-Skolmaten] Shows school lunch menus in Sweden from skolmaten.se

    Scheduled Pinned Locked Moved Utilities
    19 Posts 7 Posters 11.2k Views 7 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.
    • R Offline
      retroflex Project Sponsor Module Developer
      last edited by retroflex

      Description

      My first module. A module that shows school lunch menus in Sweden from www.skolmaten.se.

      Basically it justs shows an RSS feed, but is very simple / has minimal configuration that works ok with the school lunch rss feeds.

      Screenshot

      alt text

      Download

      https://github.com/retroflex/MMM-Skolmaten


      Version 1.0.0

      • Initial release
      F 1 Reply Last reply Reply Quote 3
      • E Offline
        erq
        last edited by

        Hi!
        I have looked a long time for a module like this but I cannot get it to work.
        The module just says Laddar… (Loading…) bot no matter how long I wait I dont see anything else than that.
        I have tried both with my kids school and also your example.
        Please advise what to do next?

        1 Reply Last reply Reply Quote 0
        • H Offline
          Henrik
          last edited by

          I get the same problem. @retroflex, this is the output log, may help if you want to fix the issue:

          TypeError: Parser.parseURL is not a function
              at Class.loadFeed (C:\Users\henri\MagicMirror\modules\MMM-Skolmaten\node_helper.js:44:10)
              at Class.socketNotificationReceived (C:\Users\henri\MagicMirror\modules\MMM-Skolmaten\node_helper.js:31:9)
              at Socket. (C:\Users\henri\MagicMirror\modules\node_modules\node_helper\index.js:113:11)
              at emitTwo (events.js:106:13)
              at Socket.emit (events.js:191:7)
              at C:\Users\henri\MagicMirror\node_modules\socket.io\lib\socket.js:513:12
              at _combinedTickCallback (internal/process/next_tick.js:67:7)
              at process._tickCallback (internal/process/next_tick.js:98:9)
          
          
          R 1 Reply Last reply Reply Quote 0
          • R Offline
            retroflex Project Sponsor Module Developer @Henrik
            last edited by

            @Henrik Thanks for the log. I’m not sure when I get the chance to look at it. I’ll try to reinstall from github on my mirror and see if I can reproduce when I get the time.

            If anyone wants to give it a go, just go ahead…

            H 1 Reply Last reply Reply Quote 0
            • E Offline
              erq
              last edited by

              I get the same output log.

              1 Reply Last reply Reply Quote 1
              • H Offline
                Henrik @retroflex
                last edited by

                @retroflex Sure, if you add me to the repo I’ll have a look. Github username is HenrikL6.

                R 2 Replies Last reply Reply Quote 0
                • R Offline
                  retroflex Project Sponsor Module Developer @Henrik
                  last edited by

                  @Henrik said in [MMM-Skolmaten] Shows school lunch menus in Sweden from skolmaten.se:

                  @retroflex Sure, if you add me to the repo I’ll have a look. Github username is HenrikL6.

                  Added you as a collaborator to the repo. I’m new to git so let me know if there’s anything else I must do. Follow up question: is it better to be a collaborator than to send pull requests? Or maybe just easier?

                  H 1 Reply Last reply Reply Quote 1
                  • R Offline
                    retroflex Project Sponsor Module Developer @Henrik
                    last edited by

                    @Henrik I had a quick look now and the exception seems to indicate that Parser cannot be found. Perhaps rss-parser package isn’t properly installed. Just to make sure: did you run “npm install” in the MMM-Skolmaten folder? Can you check if rss-parser is installed on your mirror?

                    1 Reply Last reply Reply Quote 1
                    • E Offline
                      erq
                      last edited by

                      Yes, I did a npm install in the folder and yes, it seems that the parser is installed. I have a folder named ~/MagicMirror/modules/MMM-Skolmaten/node_modules/rss-parser with this content:
                      .npmignore
                      .travis.yml
                      LICENSE
                      README.md
                      bower.json
                      browser.js
                      dist/
                      index.js
                      lib/
                      package-lock.json
                      package.json
                      scripts/
                      test/

                      Thanks for looking in to it!

                      P R 2 Replies Last reply Reply Quote 1
                      • P Offline
                        Pertan @erq
                        last edited by

                        @erq Do a “npm install rss-parser@2.12.0” inside MMM-Skolmat folder and it will work.

                        1 Reply Last reply Reply Quote 1
                        • J Offline
                          Jacco7702
                          last edited by

                          Yes that did it. I had the same problem. I guess the dependency to rss-parser is hard coded to a specific version or that the latest works diffrent than this one

                          1 Reply Last reply Reply Quote 1
                          • E Offline
                            erq
                            last edited by

                            Thanks, that did it!

                            1 Reply Last reply Reply Quote 1
                            • R Offline
                              retroflex Project Sponsor Module Developer @erq
                              last edited by

                              @erq @Henrik Thanks for the tip! I have made a quick solution for now… changed package.json to have dependency to rss-parser v2.12.0.

                              Checked the rss-parser readme and the latest version (3) has changed it’s interface (“A few minor breaking changes were made in v3…”). If I find the time, I will update my code to support the latest version.

                              1 Reply Last reply Reply Quote 1
                              • H Offline
                                Henrik
                                last edited by

                                Excellent, you solved the problem before I even had a chance to have a look at it! Well done!
                                I guess you can revoke my github access now. :)

                                1 Reply Last reply Reply Quote 0
                                • H Offline
                                  Henrik @retroflex
                                  last edited by

                                  @retroflex said in [MMM-Skolmaten] Shows school lunch menus in Sweden from skolmaten.se:

                                  Added you as a collaborator to the repo. I’m new to git so let me know if there’s anything else I must do. Follow up question: is it better to be a collaborator than to send pull requests? Or maybe just easier?

                                  I don’t know exactly what collaborator means, haven’t used github much other than cloning stuff from it.
                                  Normally you’d create a branch, do you stuff, raise a pull request, have it reviewed, (hopefully) accepted, and then merge.

                                  R 1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    retroflex Project Sponsor Module Developer @Henrik
                                    last edited by

                                    @Henrik From what I’ve read, a collaborator has write access directly to the repo. You can push code directly as if you are the owner.

                                    1 Reply Last reply Reply Quote 1
                                    • F Offline
                                      fedale @retroflex
                                      last edited by

                                      @retroflex I am having issues with MMM-Skolmaten. Only says laddar…
                                      I also tried to re installing the module,with any luck

                                      R 1 Reply Last reply Reply Quote 0
                                      • R Offline
                                        retroflex Project Sponsor Module Developer @fedale
                                        last edited by

                                        @fedale I am still running this and it works for me, so I suspect it is a config issue. Can you post your config and I’ll have a look.

                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          Bobba86
                                          last edited by

                                          @retroflex

                                          I´ve got some problems with the module. It just says loading. Tried some of the things posted in this thread but could not get it to work. Any ideas what to do?

                                          Svenska funkar utmärkt då jag antar att du är svensk som skapat denna :D

                                          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