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.

    Config problems

    Scheduled Pinned Locked Moved Troubleshooting
    8 Posts 2 Posters 656 Views 2 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.
    • D Offline
      dawookie1979
      last edited by

      /* 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: "localhost", // 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: 8080,
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // 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",
      
      	modules: [
      		{
      			module: "alert",
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		},
      
      		{
      			module: "calendar",
      			header: "xxxxx Family Calendar",
      			position: "bottom_left",
      			config: {
      				calendars: [
      					
      {
      						symbol: "xxxxx Family",
      						url: "https://calendar.google.com/calendar/ical/xxxxx.com/public/basic.ics"
      					},
      
      
      		{				symbol: "uk holiday",
      				url: "https://calendar.google.com/calendar/ical/en-gb.uk%23holiday%40group.v.calendar.google.com/public/basic.ics"
      }
      			
      		
      				]
      			}
      		},
      		
      		{
      			module: "currentweather",
      			position: "top_left",
      			config: {
      				location: "xxxxx, UK",
      				locationID: "",  //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
      				appid: "xxxxx"
      			}
      		},
      		{
      			module: "weatherforecast",
      			position: "top_left",
      			header: "Weather Forecast",
      			config: {
      				location: "xxxxx, UK",
      				locationID: "",  //ID from http://www.openweathermap.org/help/city_list.txt
      				appid: "xxxxx"
      			}
      		},
       {
      	module: 'MMM-SoccerLiveScore',
      	position: 'left',
      	header: 'Live Football Scores',
      	config: {
      		leagues: [17],
              showNames: true,
              showLogos: true,
              displayTime: 60 * 1000,
              showTables: false
      	}
      	
              },
          
      
      
              
      
      
      
      {
        module: "MMM-CountEvents",
        position: "left",
        config: {
          groupOrder: [], // When it set, the group of event which has same group name will be displayed and be rotated to others by groupInterval
          groupInterval: 1000*5,
          refreshInterval:1000*1,
          locale: null, //related with `humanize` (if omitted or null, MM default locale will be used.)
          template: "<p class=\"title\">%TITLE%</p><p class=\"output\">%OUTPUT%</p>",
          //You can modify HTML rendering.
          //%TITLE% : will be replaced by event.title
          //%OUTPUT% : will be replaced by event.output
          events: [
            {
              group: "default",
              title: "Daniel's Alcohol Free",
              targetTime: "2019-09-24", // See the time format section.
            	yearlyRepeat: false, // if this event should be refreshed yearly, set this to `true`. targetTime will be replaced the closest next date of this year or the next year.
            	unit: "days", // "years", "months", "weeks", "days", "hours", "minutes", "seconds"...
              //but if you set `humanize` to true, `unit` will be ignored.
            	humanize:false, //If set as `true`, %RESULT% will be humanized. (e.g "a year ago")
              absolute:true, //If set as `false`, remain duration will be `plus number`, past duration will be `minus number`. If set as `true`, all duration will be `plus number`
              ignore:null, //Available [null, "before", "after"]. This event will not be displayed `before|after` targetTime
              className: "", //You can assign class name to this event for beautifying with CSS.
            	output: "%RESULT% days passed", //You can modify output text. %RESULT% will be result of countdown/up calculation with above options.
            },
            {
              group: "default",
              title: "Emma's Alcohol Free",
              targetTime: "2019-09-26", // See the time format section.
            	yearlyRepeat: false, // if this event should be refreshed yearly, set this to `true`. targetTime will be replaced the closest next date of this year or the next year.
            	unit: "days", // "years", "months", "weeks", "days", "hours", "minutes", "seconds"...
              //but if you set `humanize` to true, `unit` will be ignored.
            	humanize:false, //If set as `true`, %RESULT% will be humanized. (e.g "a year ago")
              absolute:true, //If set as `false`, remain duration will be `plus number`, past duration will be `minus number`. If set as `true`, all duration will be `plus number`
              ignore:null, //Available [null, "before", "after"]. This event will not be displayed `before|after` targetTime
              className: "", //You can assign class name to this event for beautifying with CSS.
            	output: "%RESULT% days passed", //You can modify output text. %RESULT% will be result of countdown/up calculation with above options.
            },
          ]
        }
      },
      
      modules: [
          {
      		module: 		'MMM-UKNationalRail',
      		position: 		'bottom_left',
      		header:			'Whittlesford Parkway',		//Optional - delete this line to turn OFF the header completely
      		config: {
      			stationCode: 		'WLF', 		// CRS code for station
      			app_id: 			'xxxxx', 		// TransportAPI App ID
      			app_key: 			'xxxxx', 		// TransportAPI App Key
      			maxResults: 		5,  		//Optional - Maximum results to display.
      			showOrigin: 		false   	//Optional - Show the origin of the train in the table
      		}
      	},
      ]
      
      		{
      			module: "newsfeed",
      			position: "bottom_bar",
      			config: {
      				feeds: [
      					{
      						title: "BBC News",
      						url: "http://feeds.bbci.co.uk/news/rss.xml?edition=uk"
      					}
      				],
      				showSourceTitle: true,
      				showPublishDate: true
      			}
      		},
      	
      		
      	
      ]
      
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      S 1 Reply Last reply Reply Quote 0
      • D Offline
        dawookie1979
        last edited by

        can anyone see problems?

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @dawookie1979
          last edited by

          @dawookie1979

          u have this in the middle of the modules list

          modules: [
              {
          		module: 		'MMM-UKNationalRail',
          		position: 		'bottom_left',
          		header:			'Whittlesford Parkway',		//Optional - delete this line to turn OFF the header completely
          		config: {
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • D Offline
            dawookie1979
            last edited by

            yes i have removed that, but still no joy

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @dawookie1979
              last edited by

              @dawookie1979 my post did not show All that was trouble

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • D Offline
                dawookie1979
                last edited by

                lol, ok. i have added/taken away {}. it now seems to work :0 . Thank you for your help

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dawookie1979
                  last edited by

                  how do i mark this as solved :)

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @dawookie1979
                    last edited by sdetweil

                    @dawookie1979 u didn’t open it as an issue that is closable, so only can edit the title to add solved

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 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