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.

    Monthly Calendar Add

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 2 Posters 522 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.
    • S Offline
      StewartBaird86
      last edited by sdetweil

      Hey Guys and Girls

      I am working on my first magic mirror and learning the whole command thing…its not going well.
      I have cloned the file and created a config.js file.
      When I go to add Monthly_Calendar (https://github.com/KirAsh4/calendar_monthly/blob/master/README.md)
      My Magic Mirror wont load. I have copied and pasted the command lines to no success.
      I have ran my syntax through jshint.com but the errors don’t make sense to me, or I cant figure it out.
      When I add the calendar I have “{” on the line before module. I get an error saying it should be “}” as it expects that because of line 27 (Var secion) has a “{”
      I comply and make the switch, error disappears from syntax check, but then it starts asking for semi colons and such.
      When I change Position: to Position; and swap ’ to" I get the following error:
      Expected an assignment or function call and instead saw an expression.
      I am adding the module in the way the default modules appear in the config file.

      modules: [
      		{
      			module: "alert",
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		},
      		{
      			module: ‘calendar_monthly’,
      		    position: “top_center”,
      	      },
      

      Syntax Errors:

      Three warnings
      97 Expected ‘}’ to match ‘{’ from line 27 and instead saw ‘module’.
      97 Missing semicolon.
      97 Unrecoverable syntax error. (75% scanned).

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        StewartBaird86
        last edited by

        Anybody able to explain what I am doing wrong? I am following the Read ME

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

          @StewartBaird86 said in Monthly Calendar Add:

            	module: ‘calendar_monthly’,
                position: “top_center”,
          

          wrong kind of single and double quotes, note that they are slightly tilted… this is a word processing program quote,
          vs a text editor quote, both are straight up and down

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil THANK YOU SO MUCH!!!

            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