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

modules day and time Depending represented

Scheduled Pinned Locked Moved General Discussion
29 Posts 7 Posters 19.8k 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.
  • C Offline
    cowboysdude Module Developer @ianperrin
    last edited by cowboysdude Sep 16, 2016, 12:50 PM Sep 16, 2016, 12:49 PM

    @ianperrin Thank you! I’ll give that a go when I get home from work. This module is just about the handiest things I have seen!!!

    I guess had I investigated cron I could have found that out myself… sorry.

    With this I no longer wish the pi to ‘go to sleep’… I just show certain things at certain times and always leave the time and date on… it’s just amazing!!! You don’t realize how useful and important something sometimes until you have it!

    Thanks again!

    I 1 Reply Last reply Sep 16, 2016, 3:42 PM Reply Quote 0
    • S Offline
      shashank @ianperrin
      last edited by Sep 16, 2016, 3:34 PM

      @ianperrin I installed this modules and it found working fine.

      I S 2 Replies Last reply Sep 16, 2016, 3:38 PM Reply Quote 0
      • I Offline
        ianperrin @shashank
        last edited by Sep 16, 2016, 3:38 PM

        @shashank - great to hear - and thanks for the feedback.

        "Live as if you were to die tomorrow. Learn as if you were to live forever." - Mahatma Gandhi

        1 Reply Last reply Reply Quote 0
        • I Offline
          ianperrin @cowboysdude
          last edited by Sep 16, 2016, 3:42 PM

          @cowboysdude said in modules day and time Depending represented:

          I guess had I investigated cron I could have found that out myself… sorry.

          Glad to help and no need to apologise at all

          "Live as if you were to die tomorrow. Learn as if you were to live forever." - Mahatma Gandhi

          1 Reply Last reply Reply Quote 1
          • M Offline
            Mitchfarino Module Developer
            last edited by Sep 16, 2016, 7:04 PM

            Not implemented this yet @ianperrin , but this is an incredible contribution. We can make much more use of the modules now, rather than being limited to a certain number

            C 1 Reply Last reply Sep 16, 2016, 9:28 PM Reply Quote 1
            • C Offline
              cowboysdude Module Developer @Mitchfarino
              last edited by Sep 16, 2016, 9:28 PM

              @Mitchfarino said in modules day and time Depending represented:

              Not implemented this yet @ianperrin , but this is an incredible contribution. We can make much more use of the modules now, rather than being limited to a certain number

              This should be right in the install!! :)

              1 Reply Last reply Reply Quote 0
              • B Offline
                bjoern
                last edited by Sep 17, 2016, 8:55 AM

                WORKS FINE! Thanks!

                1 Reply Last reply Reply Quote 0
                • S Offline
                  shashank @shashank
                  last edited by Sep 17, 2016, 3:00 PM

                  @shashank i configured this scheduler today with Calendar and Wunderground, after the end time the module will not disappear, i need to stop and start the MM.

                  {
                  module: ‘calendar’,
                  header: ‘US Holidays’,
                  position: ‘top_left’,
                  classes: ‘scheduler’,
                  config: {
                  // DISPLAY THE CALENDAR BETWEEN 09:00 and 18:00 ON WEDNESDAYS
                  module_schedule: {from: ‘0 9 * * FRI’, to: ‘20 21 * * SAT’ },
                  calendars: [
                  {
                  symbol: 'calendar-check-o ',
                  url: ‘webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics’
                  }
                  ]
                  }
                  },

                  I 1 Reply Last reply Sep 17, 2016, 4:06 PM Reply Quote 0
                  • I Offline
                    ianperrin @shashank
                    last edited by ianperrin Sep 17, 2016, 4:07 PM Sep 17, 2016, 4:06 PM

                    @shashank said in modules day and time Depending represented:
                    Looking at your config, I can see a couple of potential issues

                    Firstly, make sure you use straight apostrophes (') not curly ones (‘ ’).

                    Secondly, the expressions in the module_schedule config option (module_schedule: {from: '0 9 * * FRI', to: '20 21 * * SAT' },) should schedule the calendar so it is displayed at 09:00 on Friday and be hidden at 21:20 on Saturday.

                    Is this what you intended? If so, check the logs (pm2 logs mm), you should see something like this.

                    MMM-ModuleScheduler received CREATE_MODULE_SCHEDULE
                    MMM-ModuleScheduler is scheduling calendar using '0 9 * * FRI' and '20 21 * * SAT'
                    MMM-ModuleScheduler has scheduled calendar
                    MMM-ModuleScheduler will next show calendar at Fri Sep 23 2016 09:00:00 GMT+0000 (UTC)
                    MMM-ModuleScheduler will next hide calendar at Sat Sep 17 2016 21:20:00 GMT+0000 (UTC)
                    

                    Note the last two lines will vary depending on when start the mirror. In the example above started the mirror at 17:00 on Saturday, so the next ‘show’ (from) date is next friday (23rd) and the next hide (to) date is tonight.

                    Hope this helps

                    "Live as if you were to die tomorrow. Learn as if you were to live forever." - Mahatma Gandhi

                    M 1 Reply Last reply Sep 22, 2016, 9:38 PM Reply Quote 0
                    • M Offline
                      Mitchfarino Module Developer @ianperrin
                      last edited by Sep 22, 2016, 9:38 PM

                      @ianperrin

                      Sorry for the odd question, will this work on a windows PC?

                      I’m testing the mirror on the PC before I deploy to my Pi, and this module doesn’t seem to be working

                      I 1 Reply Last reply Sep 23, 2016, 10:07 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 3 / 3
                      3 / 3
                      • First post
                        23/29
                        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