MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Calendar Config (bit of a noob)

    Troubleshooting
    3
    8
    5429
    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.
    • zydecat74
      zydecat74 last edited by

      I have managed to get all of the various modules to work, even wrote some code to display wind direction, converting degrees to compass points (which I’ll share soon).

      However, I have not been able to get the calendar to display anything except “module_2_calendar”.

      My main question is where should I put the calendar config? In the config.js file or in the calendar module js file? Or both? I feel that I have tried all combinations and don’t seem to be able to get it working at all.

      Cheers,

      Mat

      Te audire non possum. Musa sapientum fixa est in aure.

      1 Reply Last reply Reply Quote 0
      • KirAsh4
        KirAsh4 Moderator last edited by

        Any configuration, for any/all of the modules, should always go in the main config.js file. You should not have to edit anything else. If you have edited source files, I recommend you grab the original source again from Github. If after you’ve done that, your calendar still isn’t working with your configuration, feel free to post the relevant section (removing private information) and we may be able to figure out what’s going on.

        A Life? Cool! Where can I download one of those from?

        1 Reply Last reply Reply Quote 0
        • zydecat74
          zydecat74 last edited by

          Thank you for that. The calendar is starting to work (there seems to be an issue with me including an icloud calendar but I’ll verify that I have the settings correct before hitting up the forum for help with that).

          However, now that I have the calendar working, all of the other modules have disappeared (weather, compliments, news rss feed). Has anyone else experienced that?

          Te audire non possum. Musa sapientum fixa est in aure.

          1 Reply Last reply Reply Quote 0
          • KirAsh4
            KirAsh4 Moderator last edited by

            Sounds to me like you have a configuration error in your config.js file. Without seeing it, I have nothing to go by or what to tell you to fix.

            A Life? Cool! Where can I download one of those from?

            1 Reply Last reply Reply Quote 0
            • zydecat74
              zydecat74 last edited by

              Here is my complete config.js (with a few identifiers removed). Hoping something jumps out!

              /* Magic Mirror Config Sample
              *

              • By Michael Teeuw http://michaelteeuw.nl
              • MIT Licensed.
                */

              var config = {
              port: 8080,

              language: 'en',
              timeFormat: 24,
              
              modules: [
              	{
              		module: 'alert',
              	},
              	{
              		module: 'clock',
              		position: 'top_left'
              	},
              	{
              		module: 'calendar',
              		header: 'Calendar',
              		position: 'top_left',
              		config: {
              			calendars: [
              				{
              					symbol: 'calendar-check-o ',
              					url: 'webcal://www.calendarlabs.com/templates/ical/Australia-Holidays.ics'
              				},
              				{
              					symbol: 'heart-o',
              					url: 'webcal://p08-calendarws.icloud.com/ca/subscribe/1/xxxxxxxxx'
              				}
              			]
              		}
              	},
              	{
              		module: 'compliments',
              		position: 'lower_third'
              	},
              	{
              		module: 'currentweather',
              		position: 'top_right',
              		config: {
              			location: 'Perth, AU',
              			appid: 'xxxxxxxxx'
              		}
              	},
              	{
              		module: 'weatherforecast',
              		position: 'top_right',
              		header: 'Weather Forecast',
              		config: {
                          location: 'Perth, AU',
              			appid: 'xxxxxxx'
              		}
              	},
              	{
              		module: 'newsfeed',
              		position: 'bottom_bar',
              		config: {
              			feedUrl: 'http://www.abc.net.au/news/feed/45910/rss.xml',
              			showPublishDate: true
              		}
              	},
              ]
              

              };

              /*************** DO NOT EDIT THE LINE BELOW ***************/
              if (typeof module !== ‘undefined’) {module.exports = config;}

              Te audire non possum. Musa sapientum fixa est in aure.

              cowboysdude 1 Reply Last reply Reply Quote 0
              • cowboysdude
                cowboysdude Module Developer @zydecat74 last edited by KirAsh4

                @zydecat74 said in Calendar Config (bit of a noob):

                Here is my complete config.js (with a few identifiers removed). Hoping something jumps out!

                /* Magic Mirror Config Sample
                 *
                 * By Michael Teeuw http://michaelteeuw.nl
                 * MIT Licensed.
                 */
                
                var config = {
                	port: 8080,
                
                	language: 'en',
                	timeFormat: 24,
                
                	modules: [
                		{
                			module: 'alert',
                		},
                		{
                			module: 'clock',
                			position: 'top_left'
                		},
                		{
                			module: 'calendar',
                			header: 'Calendar',
                			position: 'top_left',
                			config: {
                				calendars: [
                					{
                						symbol: 'calendar-check-o ',
                						url: 'webcal://www.calendarlabs.com/templates/ical/Australia-Holidays.ics'
                					},
                					{
                						symbol: 'heart-o',
                						url: 'webcal://p08-calendarws.icloud.com/ca/subscribe/1/xxxxxxxxx'
                					}
                				]
                			}
                		},
                		{
                			module: 'compliments',
                			position: 'lower_third'
                		},
                		{
                			module: 'currentweather',
                			position: 'top_right',
                			config: {
                				location: 'Perth, AU',
                				appid: 'xxxxxxxxx'
                			}
                		},
                		{
                			module: 'weatherforecast',
                			position: 'top_right',
                			header: 'Weather Forecast',
                			config: {
                	            location: 'Perth, AU',
                				appid: 'xxxxxxx'
                			}
                		},
                		{
                			module: 'newsfeed',
                			position: 'bottom_bar',
                			config: {
                				feedUrl: 'http://www.abc.net.au/news/feed/45910/rss.xml',
                				showPublishDate: true
                			}
                		},
                	]
                
                };
                
                /*************** DO NOT EDIT THE LINE BELOW ***************/
                if (typeof module !== 'undefined') {module.exports = config;}
                

                This is what I did and it fixed mine…

                {
                			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: 'calendar',
                			header: 'My Schedule',
                			position: 'top_left',
                			config: {
                				calendars: [
                					{
                						symbol: 'calendar-check-o ',
                						url: 'https://calendar.google.com/calendar/embed?src=xxxxxxxxxgmail.com&ctz=America/New_York'
                					}
                				]
                			}
                		},''
                

                I edited out my email address in the url for obvious reasons but that uses my google calendar to let me see my daily schedule… it works.

                Note from Moderator: Please use Markdown on code snippets for easier reading.

                1 Reply Last reply Reply Quote 0
                • zydecat74
                  zydecat74 last edited by

                  Thank you all for your help and suggestions and help!.

                  It seems that as I have been working on this mirror project for some time, I have been working on v2-beta version which has different configuration to the current version. Just reinstalled the mirror and with a couple of minor adjustments have managed to get it working as I like.

                  Now the config is sorted it’s time to source the monitor and framing materials…

                  Cheers,

                  Mat

                  Te audire non possum. Musa sapientum fixa est in aure.

                  cowboysdude 1 Reply Last reply Reply Quote 0
                  • cowboysdude
                    cowboysdude Module Developer @zydecat74 last edited by

                    @zydecat74 Great! When you get it done take a picture and post it!

                    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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy