• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Soccer Noob needs help!

Scheduled Pinned Locked Moved Unsolved Troubleshooting
30 Posts 4 Posters 8.4k 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.
  • E Offline
    evroom
    last edited by Jul 6, 2019, 4:12 PM

    @thedoorsfanatic

    I think I got it.
    Perhaps there is a better way, because I do not understand show, hidden and dim very good.
    I thought it would be easy to say “show from to”, “hide from to” or “dim from to”, but like this it seems to work:

    {
      module: 'MMM-SoccerLiveScore',
      position: 'top_right',
      //header: 'Live-Scores',
      classes: 'scheduler',
      config: {
        module_schedule: [
          {from: '45 22 * * *', to: '30 19 * * 6', dimLevel: '10'}, // dim Saturday from 19:30 to 22:45
          {from: '00 20 * * *', to: '30 13 * * 7', dimLevel: '10'}, // dim Sunday from 13:30 to 20:00
    //        {from: '00 20 * * *', to: '30 15 * * 6', dimLevel: '10'}, // dim Saturday from 15:30 to 20:00
        ],
        leagues: [37,],
    

    MagicMirror version: 2.30.0
    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
    Raspbian GNU/Linux 12 (bookworm)

    Test environment:
    MagicMirror version: v2.30.0
    Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
    Raspbian GNU/Linux 12 (bookworm)

    E 1 Reply Last reply Jul 6, 2019, 4:26 PM Reply Quote 0
    • E Offline
      evroom @evroom
      last edited by Jul 6, 2019, 4:26 PM

      @thedoorsfanatic

      Nope, does not work.
      An example would be nice.

      MagicMirror version: 2.30.0
      Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      Test environment:
      MagicMirror version: v2.30.0
      Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      T 1 Reply Last reply Jul 8, 2019, 9:58 AM Reply Quote 0
      • P Offline
        Peter
        last edited by Jul 6, 2019, 4:34 PM

        MMM-SoccerLiveScore worked out of the box!
        But after a few hours the module stops.
        Other modules keep going.
        Any body know the solution?
        Peter

        E 1 Reply Last reply Jul 6, 2019, 5:12 PM Reply Quote 0
        • E Offline
          evroom @Peter
          last edited by Jul 6, 2019, 5:12 PM

          @Peter

          I do not have it running long enough to see this behaviour.
          But, if you see this with
          $ pm2 logs mm

          0|mm       | (node:22849) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
          

          Do this (line 37):

          $ vi /home/pi/MagicMirror/modules/MMM-SoccerLiveScore/node_helper.js
          
                    //var image = new Buffer(body).toString('base64');
                      var image = Buffer.from(body).toString('base64');
          
          $ pm2 restart mm
          

          Then observe and pay attention to the pm2 logs.

          MagicMirror version: 2.30.0
          Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          Test environment:
          MagicMirror version: v2.30.0
          Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          1 Reply Last reply Reply Quote 0
          • E Offline
            evroom
            last edited by Jul 7, 2019, 8:49 PM

            Hi,

            Just to say that MMM-SoccerLiveScore is running on my MM for 28 hours now.

            @thedoorsfanatic
            Still waiting for an example on hiding / dimming a module for a specific time on a specific day using MMM-SoccerLiveScore.
            When you have time.

            MagicMirror version: 2.30.0
            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            Test environment:
            MagicMirror version: v2.30.0
            Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            1 Reply Last reply Reply Quote 0
            • T Offline
              thedoorsfanatic @evroom
              last edited by Jul 8, 2019, 9:58 AM

              @evroom
              I am a beginner from Germany with bad English and I am not using dimLevel at all.
              To show a module just at a certain time I put this in the config of a module:

              config: {
                  			module_schedule: {from: '30 6 * * 1-5', to: '45 7 * * 1-5' },
              					}
              

              shows a module only from 6.30 h to 7.45 from Monday to Friday.

              Just use this to figure out what range you need:
              https://crontab.guru/#30-59_6___1-5

              My Smart Mirror YouTube playlist: https://www.youtube.com/playlist?list=PL9Iv_4Mvy6o2tnvdhNBstVWNefgUP9ELp

              S E 2 Replies Last reply Jul 8, 2019, 11:27 AM Reply Quote 0
              • S Offline
                sdetweil @thedoorsfanatic
                last edited by sdetweil Jul 8, 2019, 3:33 PM Jul 8, 2019, 11:27 AM

                @thedoorsfanatic said in Soccer Noob needs help!:

                module_schedule:

                that only works for this one module…

                not… MMM-ModuleScheduler appears to support showing/dimming or hiding modules based on time of day (cron style schedule)

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                E 1 Reply Last reply Jul 8, 2019, 3:15 PM Reply Quote 0
                • P Offline
                  Peter
                  last edited by Jul 8, 2019, 2:16 PM

                  MMM-SoccerLiveScore looks very nice, works fine, but still dissapears after some time.
                  Sometimes it comes back after a few minutes, sometimes not.
                  Nothing strange in the pm2 logs …
                  Peter

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    evroom @thedoorsfanatic
                    last edited by Jul 8, 2019, 3:09 PM

                    @thedoorsfanatic
                    I am Dutch living in Germany and I like Bad English, well the band :-)
                    Thanks for the example.

                    MagicMirror version: 2.30.0
                    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    Test environment:
                    MagicMirror version: v2.30.0
                    Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      evroom @sdetweil
                      last edited by Jul 8, 2019, 3:15 PM

                      @sdetweil

                      Do you know how to hide or dim a module between certain times.
                      For example, matches in Germany generally start on Saturday at 15:30 and the sports program ends at 20:00.
                      So I want to hide or dim the module during this time.
                      The problem with the scheduler is, that it shows at the from time and dims at the to time.
                      Cannot find an example where it hides/dims at the from time and shows at the to time.

                      MagicMirror version: 2.30.0
                      Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                      Raspbian GNU/Linux 12 (bookworm)

                      Test environment:
                      MagicMirror version: v2.30.0
                      Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                      Raspbian GNU/Linux 12 (bookworm)

                      S 1 Reply Last reply Jul 8, 2019, 3:16 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        18/30
                        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