Calendar Config (bit of a noob)



  • 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


  • Moderator

    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.



  • 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?


  • Moderator

    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.



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

    /* Magic Mirror Config Sample

    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;}



  • @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.



  • 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



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


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.