This is an extension for the MagicMirror2 platform. It will display your Todoist todos on your MagicMirror.
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
cbrooker Merge pull request #28 from kolbyjack/master
Fix diffDays calculations during DST changes
Latest commit 7d99776 Jul 18, 2018

README.md

MMM-Todoist

This an extension for the MagicMirror. It can display your Todoist todos. You can add multiple instances with different lists. Only one account supported.

Installation

  1. Navigate into your MagicMirror's modules folder and execute git clone https://github.com/cbrooker/MMM-Todoist.git. A new folder will appear navigate into it.
  2. Execute npm install to install the node dependencies.

Using the module

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

modules: [
	{
		module: 'MMM-Todoist',
		position: 'top_right',	// This can be any of the regions. Best results in left or right regions.
		header: 'Todoist', // This is optional
		config: { // See 'Configuration options' for more information.
          	accessToken: 'accessToken from Todoist',
			maximumEntries: 60,
			updateInterval: 10*60*1000, // Update every 10 minutes
			projects: [ 166564794 ],
			fade: false
      }
	}
]

Configuration options

The following properties can be configured:

</tbody>
Option Description
accessToken Your Todoist access token, you can get it here.

Possible values: string
Default value: none
projects Array of ProjectIDs you want to display.

Possible values: array
Default value: [ ]
Example: [166564794, 166564792]

Getting the Todoist ProjectID:
1) Go to Todoist (Log in if you aren't)
2) Click on a Project in the left menu
3) Your browser URL will change to something like
"https://todoist.com/app?lang=en&v=818#project%2F166564897"

Everything after %2F is the Project ID. In this case "166564897"
maximumEntries Maximum number of todos to be shown.

Possible values: int
Default value: 10
interval How often the module should load new todos. Be careful, this is in ms, NOT seconds! So, too low a number will lock you out for repeated server attempts!

Possible values: int in milliseconds
Default value: 10*60*1000
fade Fade todos to black. (Gradient)

Possible values: true or false
Default value: true
fadePoint Where to start fade?

Possible values: 0 (top of the list) - 1 (bottom of list)
Default value: 0.25
showProject If true this will display the Project to the right of the DueDates as it does on Todost.

Possible values: boolean
Default value: true
sortType This will determine the sorting method used when displaying your Todos.

Possible values:
"todoist" - Sort based on the order in Todoist.
"dueDateAsc" - Sort based on the Due Date of the Todo Ascending. (Oldest date first)
"dueDateDesc" - Sort based on the Due Date of the Todo Descending. (Newest date first)

Default value: "todoist"

Dependencies

  • request (installed via npm install)

Screen shots

A few sample Screen Shots to show you what this module looks like. It's fairly configurable and changes considerably depending on how you use Todoist, how many projects you include, and how you sort.

Options enabled: orderBy:todoist, showProjects: true My image

Options enabled: orderBy:dueDateAsc, showProjects: true My image

Options enabled: orderBy:dueDateAsc, showProjects: false My image

Options enabled: orderBy:todoist, showProjects: false My image

Options enabled: orderBy:todoist, showProjects: true My image

Options enabled: orderBy:dueDateAsc, showProjects: true My image

Options enabled: orderBy:dueDateAsc, showProjects: false My image

##Attribution

This project is based on work done by Paul-Vincent Roll in the MMM-Wunderlist module. (https://github.com/paviro/MMM-Wunderlist)

The MIT License (MIT)

Copyright © 2016 Chris Brooker

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

The software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.