Skip to content

nixnuex/MMM-iCal-ToDo

Repository files navigation

Module: MMM-iCal-ToDo

The MMM-iCal-ToDo displays non-completed ToDos in the iCal format from a public or private source like ownCloud/Nextcloud through WebDAV.

MMM-iCal-ToDo Screenshot

Dependencies

This module depends on the packages

  • valid-url
  • request

Please install through cd modules/MMM-iCal-ToDo && npm install.

Using the module

To use this module, add it to the modules array in the config/config.js file:

modules: [
	{
		module: "MMM-iCal-ToDo",
		position: "bottom_left",	// This can be any of the regions. Best results in left or right regions.
		config: {
			// The config property is optional.
			// If no config is set, an example todo is shown.
			// See 'Configuration options' for more information.
		}
	}
]

Configuration options

The following properties can be configured:

Option Description
header The header title of the module instance.
Default value: ToDo
maximumEntries The maximum number of events shown. / Possible values: 0 - 100
Default value: 10
displaySymbol Display a symbol in front of an entry.

Possible values: true or false
Default value: true
defaultSymbol The default symbol.

Possible values: See Font Awsome website.
Default value: check
animationSpeed Speed of the update animation. (Milliseconds)

Possible values: 0 - 5000
Default value: 2000 (2 seconds)

ToDo configuration

The todods property contains an array of the configured todos.

Default value:

config: {
	header: 'ToDo',
	colored: false,
	coloredSymbolOnly: false,
	todos: [
		{
			url: 'http://www.todolabs.com/templates/ical/US-Holidays.ics',
			symbol: 'check',
			auth: {
			    user: 'username',
			    pass: 'superstrongpassword',
			    method: 'basic'
			}
		},
	],
}

ToDo configuration options:

Option Description
url The url of the todo .ical. This property is required.

Possible values: Any public accessble .ical todo.
symbol The symbol to show in front of an event. This property is optional.

Possible values: See Font Awesome website. To have multiple symbols you can define them in an array e.g. ["todo", "plane"]
color The font color of an event from this todo. This property should be set if the config is set to colored: true.

Possible values: HEX, RGB or RGBA values (#efefef, rgb(242,242,242), rgba(242,242,242,0.5)).
repeatingCountTitle The count title for yearly repating events in this todo.

Example: 'Birthday'
maximumEntries The maximum number of events shown. Overrides global setting. Possible values: 0 - 100
name The name of the todo. Included in todo broadcasts as todoName.
auth The object containing options for authentication against the todo.
symbolClass Add a class to the cell of symbol.
titleClass Add a class to the title's cell.
timeClass Add a class to the time's cell.
broadcastPastEvents Whether to include past events from this todo. Overrides global setting

ToDo authentication options:

Option Description
user The username for HTTP authentication.
pass The password for HTTP authentication. (If you use Bearer authentication, this should be your BearerToken.)
method Which authentication method should be used. HTTP Basic, Digest and Bearer authentication methods are supported. Basic authentication is used by default if this option is omitted. Possible values: digest, basic, bearer Default value: basic

About

MagicMirror module for iCal ToDo display

Resources

Stars

Watchers

Forks

Packages

No packages published