MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. snotrocket
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 9
    • Best 1
    • Controversial 0
    • Groups 0

    snotrocket

    @snotrocket

    1
    Reputation
    407
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    snotrocket Unfollow Follow

    Best posts made by snotrocket

    • RE: Unable to get any modules working

      You know, I did the same thing. Drove me NUTS for days trying to figure out what I did. My problem was the parentheses ’ from copy/pasted scripts and text file was different than the one entered via putty or the console. One of the tools I found invaluable was a code validator I found online

      http://esprima.org/demo/validate.html

      Try your MM Script in there to troubleshoot. Not sure if it will work with everything, but it worked for mine. I’ve done 5 mirrors with it.

      Good Luck!

      posted in Troubleshooting
      S
      snotrocket

    Latest posts made by snotrocket

    • RE: Unable to get any modules working

      You know, I did the same thing. Drove me NUTS for days trying to figure out what I did. My problem was the parentheses ’ from copy/pasted scripts and text file was different than the one entered via putty or the console. One of the tools I found invaluable was a code validator I found online

      http://esprima.org/demo/validate.html

      Try your MM Script in there to troubleshoot. Not sure if it will work with everything, but it worked for mine. I’ve done 5 mirrors with it.

      Good Luck!

      posted in Troubleshooting
      S
      snotrocket
    • RE: Config help please

      @l8kerjuan Here is the base config on a monitor, not the mirror when I was!testing it. I removed the module before the mirror was finished because the Bears were well… Da Bears. ! I think I have a copy of the config file as well. I’ll go look for it.

      0_1485375291191_20161221_132953.jpg

      posted in Troubleshooting
      S
      snotrocket
    • RE: Config help please

      Can i set the size of the NFL module? in the middle it takes up a huge amount of the screen when it shows all upcoming matches.

      posted in Troubleshooting
      S
      snotrocket
    • RE: Config help please

      even better! Thanks.

      posted in Troubleshooting
      S
      snotrocket
    • RE: Config help please

      So set it to an hour or two?

      posted in Troubleshooting
      S
      snotrocket
    • RE: Config help please

      Yay! It works! I added the NFL module and tweaked the compliments.

      Thank you so much!!! Working code is below.

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       */
      
      var config = {
      	port: 8080,
      
      	language: 'en',
      	timeFormat: 12,
      	units: 'imperial',
      
      	modules: [
      		{
      			module: 'alert',
      		},
      		{
      			module: 'clock',
      			position: 'top_left'
      		},
      		{
      			module: 'calendar',
      			header: 'US Holidays',
      			position: 'top_left',
      			config: {
      				calendars: [
      					{
      						symbol: 'calendar-check-o ',
      						url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
      					}
      				]
      			}
      		},
      {
              module: 'compliments',
              position: 'bottom_center',
              config: {
                      updateInterval: 30000,
                      compliments: {
                              morning: [
                              "Good morning!",
      						"Lets go tackle today"
                                              ],
                              afternoon: [
                              "What an awesome day!"
                                              ],
                              evening: [
                                      "Did you do everything you wanted today?",
                                      "Wasn't the day just spectacular?"
                                      ]
                              }
                      }
              },
      		{
      			module: 'currentweather',
      			position: 'top_right',
      			config: {
      				location: 'Chicago',
      				locationID: '',  //ID from http://www.openweathermap.org
      				appid: '#######################'
      			}
      		},
      		{
      			module: 'weatherforecast',
      			position: 'top_right',
      			header: 'Weather Forecast',
      			config: {
      				location: 'Chicago',
      				locationID: '',  //ID from http://www.openweathermap.org
      				appid: '############################'
      			}
      		},
      		{
      			module: 'newsfeed',
      			position: 'bottom_bar',
      			config: {
      				feeds: [
      					{
      						title: "ESPN",
      						url: "http://www.espn.com/espn/rss/news"
      					},
      					{
      						title: "Reuters Sports",
      						url: "http://feeds.reuters.com/reuters/sportsNews"
      					},
      				],
      				showSourceTitle: false,
      				showPublishDate: false
      			}
      		},
      		{
      			module: 'MMM-NFL',
      			position: 'middle_center',
      			config: {
      			colored: true,
      			helmets: true,
      			reloadInterval: 10000,
      			focus_on: ['CHI']
      			
      			}
      		},
      	]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {module.exports = config;}
      
      posted in Troubleshooting
      S
      snotrocket
    • RE: Config help please

      Oooooh. Would the different quotes come from notepad++ or something? I think I edited in that and copied via SSH.

      Fixing now.

      Thanks

      posted in Troubleshooting
      S
      snotrocket
    • RE: Config help please

      Fixed it. Still a no go.

      Thanks in advance.

      Config:

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       */
      
      var config = {
      	port: 8080,
      
      	language: 'en',
      	timeFormat: 12,
      	units: 'imperial',
      
      	modules: [
      		{
      			module: 'alert',
      		},
      		{
      			module: 'clock',
      			position: 'top_left'
      		},
      		{
      			module: 'calendar',
      			header: 'US Holidays',
      			position: 'top_left',
      			config: {
      				calendars: [
      					{
      						symbol: 'calendar-check-o ',
      						url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
      					}
      				]
      			}
      		},
      		{
      			module: 'compliments',
      			position: 'lower_third'
      		},
      		{
      			module: 'currentweather',
      			position: 'top_right',
      			config: {
      				location: 'Chicago',
      				locationID: '',  //ID from http://www.openweathermap.org
      				appid: '#########################'
      			}
      		},
      		{
      			module: 'weatherforecast',
      			position: 'top_right',
      			header: 'Weather Forecast',
      			config: {
      				location: 'Chicago',
      				locationID: '',  //ID from http://www.openweathermap.org
      				appid: '##########################'
      			}
      		},
      		{
      			module: 'newsfeed',
      			position: 'bottom_bar',
      			config: {
      				feeds: [
      					{
      						title: "ESPN",
      						url: “http://www.espn.com/espn/rss/news”
      					},
      					{
      						title: “Reuters Sports”,
      						url: “http://feeds.reuters.com/reuters/sportsNews”
      					},
      					{
      						title: "Yahoo NFL"
      						url: "https://sports.yahoo.com/nfl/rss.xml"
      					},
      				],
      				showSourceTitle: false,
      				showPublishDate: false
      			}
      		},
      	]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {module.exports = config;}
      
      posted in Troubleshooting
      S
      snotrocket
    • Config help please

      Hello all. Pretty new to this and just love it. Making some mirrors for xmas and just can’t get the config file correct. what am i missing?

      Thanks in advance!

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       */
      
      var config = {
      	port: 8080,
      
      	language: 'en',
      	timeFormat: 12,
      	units: 'imperial',
      
      	modules: [
      		{
      			module: 'alert',
      		},
      		{
      			module: 'clock',
      			position: 'top_left'
      		},
      		{
      			module: 'calendar',
      			header: 'US Holidays',
      			position: 'top_left',
      			config: {
      				calendars: [
      					{
      						symbol: 'calendar-check-o ',
      						url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
      					}
      				]
      			}
      		},
      		{
      			module: 'compliments',
      			position: 'lower_third'
      		},
      		{
      			module: 'currentweather',
      			position: 'top_right',
      			config: {
      				location: 'Chicago',
      				locationID: '',  //ID from http://www.openweathermap.org
      				appid: '#########################'
      			}
      		},
      		{
      			module: 'weatherforecast',
      			position: 'top_right',
      			header: 'Weather Forecast',
      			config: {
      				location: 'Chicago',
      				locationID: '',  //ID from http://www.openweathermap.org
      				appid: '##########################'
      			}
      		},
      		{
      			module: 'newsfeed',
      			position: 'bottom_bar',
      			config: {
      				feeds: [
      					{
      						title: "ESPN",
      						url: “http://www.espn.com/espn/rss/news”
      					},
      					{
      						title: “Reuters Sports”,
      						url: “http://feeds.reuters.com/reuters/sportsNews”
      					},
      					{
      						title: "Yahoo NFL"
      					https://sports.yahoo.com/nfl/rss.xml
      					},
      				],
      				showSourceTitle: false,
      				showPublishDate: false
      			}
      		},
      	]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {module.exports = config;}
      
      posted in Troubleshooting
      S
      snotrocket