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.

    IO reference error on calendar & newsfeed

    Scheduled Pinned Locked Moved Troubleshooting
    1 Posts 1 Posters 1.1k Views 1 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.
    • A Offline
      ascore5000
      last edited by paviro

      Hi everybody,

      i have a problem with my magic mirror implementation.
      If I use a fresh download of MM2 and activate in the config file the newsfeed or the calendar, I got an error on the console:
      ReferenceError: io is not defined
      Stack:
      MMSocket() socketclient.js:11 Module<.socket() module.js:160 Module<.sendSocketNotification() module.js:298 .addCalendar() calendar.js:279 .start() calendar.js:67 startModules() loader.js:55 loadModules/loadNextModule/<() loader.js:40 loadFile/stylesheet.onload() loader.js:190

      The error occurs on socetclient.js on line 11.

      My config file:

      {
      			module: 'newsfeed',
      			position: 'bottom_bar',
      			config: {
      				feeds: [
      					{
      						title: "New York Times",
      						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
      					}
      				],
      				showSourceTitle: true,
      				showPublishDate: true
      			}
      		},
      
      {
      			module: 'calendar',
      			header: 'US Holidays',
      			position: 'top_right',
      			config: {
      				calendars: [
      					{
      						symbol: 'calendar-check-o ',
      						url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
      					}
      				]
      			}
      		},
      

      If I comment this lines out, the time and the weather is working.

      I hope you can help me, thank you!
      ascore5000


      Note from admin: Please use Markdown on code snippets for easier reading!

      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