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-ModuleScheduler - Module Schedules and Notifications

    Scheduled Pinned Locked Moved System
    moduleschedulecronnotifications
    82 Posts 20 Posters 120.9k Views 20 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.
    • I Offline
      ianperrin @bachoo786
      last edited by ianperrin

      @bachoo786 MMM-ModuleScheduler (and MMM-RemoteControl) are only sending hide/show requests via the MagicMirror API, so have no control over the target modules upstream API calls.

      However, it may be possible something is amiss. Can you post your config and I’ll see if I can spot anything?

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

      B 2 Replies Last reply Reply Quote 0
      • B Offline
        bachoo786 @ianperrin
        last edited by

        @ianperrin thanks for the reply.

        here is my config:

        /* Magic Mirror Config Sample
         *
         * By Michael Teeuw http://michaelteeuw.nl
         * MIT Licensed.
         *
         * For more information how you can configurate this file
         * See https://github.com/MichMich/MagicMirror#configuration
         *
         */
        
        var config = {
        	address: "0.0.0.0", // Address to listen on, can be:
        	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
        	                      // - another specific IPv4/6 to listen on a specific interface
        	                      // - "", "0.0.0.0", "::" to listen on any interface
        	                      // Default, when address config is left out, is "localhost"
        	port: 8181,
        	ipWhitelist: [], // Set [] to allow all IP addresses
        	                                                       // or add a specific IPv4 of 192.168.1.5 :
        	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
        	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
        	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
        
        	language: "en",
        	timeFormat: 24,
        	units: "metric",
        //        customCss: 'css/custom.css',
        
        	modules: [
        //		{
        //			module: "alert",
        //		},
        		{
        			module: "updatenotification",
        			position: "top_bar"
        		},
        		{
        			module: "clock",
        			position: "top_left"
        		},
        
        
            { 
               module: 'MMM-ModuleScheduler',
            },
        
        
        
                {
        		module: 'MMM-SystemStats',
        		position: 'bottom_bar', // This can be any of the regions.
        		// classes: 'small dimmed', // Add your own styling. OPTIONAL.
        		// header: 'System Stats', // Set the header text OPTIONAL
        		config: {
        			updateInterval: 10000, // every 10 seconds
        			align: 'right', // align labels
                                units: 'metric',
        			view: 'textAndIcon',
        		},
        	},
        
        
                {
                    module: "currentweather",
                    position: "top_right",
                    config: {
                        location: "London",
                        locationID: "xx",  //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
                        appid: "xx"
                    }
                },
                {
                    module: "weatherforecast",
                    position: "top_right",
                    header: "Weather Forecast",
                    config: {
                        location: "xx",
                        locationID: "xx",  //ID from http://www.openweathermap.org/help/city_list.txt
                        appid: "xx"
                    }
                },
        
        
        
                    {
                        module: 'random_quotes',
                        position: 'lower_third',
                        config: {
                                        updateInterval: '8',
                                        fadeSpeed: '4'
                        }
                    },
        
                        {
                                module: 'MMM-homeassistant-sensors',
                                position: 'top_left',
                                config: {
                                host: "xx",
                                port: "xx",
                                https: true,
                                token: "xx",
                                prettyName: false,
        //                        updateInterval: "1000",
                                title: "Shower",
                                stripName: false,
                                values: [{
                                  sensor: "sensor.shower",
                                  icons: [{
                                  "default": "shower"
                               }
                               ]
                                 },{
                                  sensor: "timer.water",
                                  icons: [{
                                  "default": "water-pump"
                               }
                               ]
                                 }
                               ]
                            }
                        },
        
        {
                                module: 'MMM-homeassistant-sensors',
                                position: 'top_left',
                                config: {
                                host: "xx",
                                port: "xx",
                                https: true,
                                token: "xx",
                                prettyName: false,
        //                        updateInterval: "1000",
                                title: "Namaaz Time",
                                stripName: false,
                                values: [{
                                  sensor: "sensor.fajr",
                                  icons: [{
                                  "default": "clock-outline"
                               }
                               ]
                                 },{
                                  sensor: "sensor.zohr",
                                  icons: [{
                                  "default": "clock-outline"
                               }
                               ]
                                 },{
                                  sensor: "sensor.maghrib",
                                  icons: [{
                                  "default": "clock-outline"
                              }
                              ]
                                }
                              ]
                            }
                        },
        
        
        
        
        
        
        
        
        {
                module:         'MMM-UKNationalRail',
                position:       'bottom_left',
                header:         'Wealdstone Departures',
                classes: 'scheduler',
                config: {
                    module_schedule: {from: '0 9 * * 3', to: '0 18 * * 3' },
                    stationCode:        'HRW',      // CRS code for station
                    app_id:             'xx',         // TransportAPI App ID
                    app_key:            'xx',         // TransportAPI App Key
                    updateInterval: 1 * 60 * 1000,
                    maxResults:         5,          //Optional - Maximum results to display.
                    showOrigin:         false,      //Optional - Show the origin of the train in the table
                                destination:            'EUS',
                                to_offset:              'PT02:00:00',
                                operator:               'LM'
                }
            },
        
        
        
        {
              module: 'MMM-TFL',
              position: 'bottom_left',
              config: {
                updateTime: 600000,
                modes: ['tube'],
                lines: 'metropolitan'
              }
            },
        
        
        
        
        
        //{
        //  module: "MMM-AssistantMk2",
        //  position: "bottom_right",
        //  config: {
        //   assistantConfig: {
        //     latitude: 51.508530,
        //     longitude: -0.076132, 
        //    },
        //    micConfig: { // put there configuration generated by auto-installer
        //      sampleRate    : 16000,      // audio sample rate
        //      threshold     : 0.1,        // silence threshold (rec only)
        //      thresholdStart: null,       // silence threshold to start recording, overrides threshold (rec only)
        //      thresholdEnd  : null,       // silence threshold to end recording, overrides threshold (rec only)
        //      verbose       : false,      // log info to the console. Use this when you want to check mic working or not.
        //      silence       : 0,
        //      recorder: "arecord",
        //      device: "plughw:AK5371",
        //    },
        //    responseConfig: {
        //      useHTML5: true,
        //      useScreenOutput: true,
        //      useAudioOutput: true,
        //      useChime: true,
        //      timer: 2000,
        //      myMagicWord: false,
        //      delay: 0.5
        ////      playProgram: "mpg321"
        //    },
        ////      recorder: "arecord",
        // //     device: "plughw:AK5371",
        ////    },
        //    recipes: [ "with-MMM-Hotword.js"],
        //  }
        
        //},
        
        
        
        
        
        
        
        // {
        //   module: "MMM-Hotword",
        //    position: "bottom_right",
        //    config: {
        //      useDisplay: false,
        //      chimeOnFinish: null,
        //      recipes: ["with-AMk2v3_smart-mirror.js"],
        //      mic: {
        //        recordProgram: "arecord",
        //        device: "plughw:AK5371",
        //      },
        //    },
        //  },
        
        
        
        
        
        
        
        
        
        
        
        {
            module: 'newsfeed',
            position: 'bottom_bar',
            config: {
                feeds: [
                    {
                        title: "BBC News UK",
                        url: "http://feeds.bbci.co.uk/news/england/rss.xml"
                    },
                    {
                        title: "Sky News",
                        url: "http://feeds.skynews.com/feeds/rss/world.xml"
                    }
                ],
                showSourceTitle: true,
                showPublishDate: true,
                ignoreOldItems: true,
                ignoreOlderThan: 50400000,
                updateInterval: 10000
        
                }
              },
        
        
        
        	]
        
        };
        
        /*************** DO NOT EDIT THE LINE BELOW ***************/
        if (typeof module !== "undefined") {module.exports = config;}
        
        1 Reply Last reply Reply Quote -1
        • B Offline
          bachoo786 @ianperrin
          last edited by

          @ianperrin hi

          Did you have a chance to look at my configuration?

          1 Reply Last reply Reply Quote 0
          • N Offline
            nagaculun
            last edited by

            Can I configure to display a module dimmed from x to y; but turn off from y to x ?

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

              Bit of a random question!

              Is there anyways to use your module to turn off another module if the Raspberrypi PIR detects motion ?

              What im thinking is using an image module to turn the mirror into a digital picture frame.

              But when the pir sees someone step up to the mirror, it turns off the image module so the no images are displayed and its a simple mirror.

              Someone walks away and the image module is restarted turning the mirror back into a digital picuture frame ?

              Cheers

              D

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 5
              • 6
              • 7
              • 8
              • 9
              • 9 / 9
              • 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