Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMM-Todoist stuck at loading... #93

Open
martyn-holland opened this issue Apr 2, 2021 · 23 comments
Open

MMM-Todoist stuck at loading... #93

martyn-holland opened this issue Apr 2, 2021 · 23 comments

Comments

@martyn-holland
Copy link

martyn-holland commented Apr 2, 2021

Pulled the git and ran npm install. Get these two warning:

Dont know if this is the problem

Tried adding the module and have tried resetting the API key but no joy.

Heres config file:

   {
                 module: 'MMM-Todoist',
                 position: 'top_left',   // This can be any of the regions. Best results in left or right regions.
                 header: 'Todo List', // This is optional
                 config: { // See 'Configuration options' for more information.
                         hideWhenEmpty: false,
                         accessToken: 'apikeyremoved',
                         maximumEntries: 60,
                         updateInterval: 10*60*1000, // Update every 10 minutes
                         fade: true,
                         displayLastUpdate: true,
                         displayAvatar: true,
                         // projects and/or labels is mandatory:
                         //projects: [ 166564794 ],
                         labels: [ "MagicMirror", "Important" ]
       }
  }
@absolutelink
Copy link

Yep it looks like the there was something that broke it for me too. We have 3 lists and one of them has categories and that is the only one the broke. Hopefully that points people in the right direction. I ended up reverting back to the commit that we know worked. we did this by running
git checkout df2d4ff

Hopefully there is a fix for this soon.

@robertybob
Copy link

I am having this same issue, having installed the module for the first time. Forgive me @mike-link , but where do I run that git checkout code from? I tried it within the module's folder but I was presented with some error message

@absolutelink
Copy link

absolutelink commented Jun 15, 2021

I am having this same issue, having installed the module for the first time. Forgive me @mike-link , but where do I run that git checkout code from? I tried it within the module's folder but I was presented with some error message

@robe In the directory that you installed/clone the module in. So for me it is <magic-mirror-root>/modules/mmm-todoist

@robertybob
Copy link

@mike-link I get this error message when I try that, do you know what it means?

image

@sdetweil
Copy link
Contributor

@mike-link
the module name MUST match the folder name and the register name in the modulename.js
yours does: all three are named MMM-ToDoIst, exact case matters... and git clone will build a folder that matches the repo name (by default)

if there was a name problem, you wouldn't even get loading...

@ghost
Copy link

ghost commented Aug 7, 2021

I'm having the same issue. Stuck at loading...

I ran the checkout command and also got that same error:

git checkout df2d4ff
error: Your local changes to the following files would be overwritten by checkout:
	package-lock.json
	package.json
Please commit your changes or stash them before you switch branches.
Aborting

I tried microsoft todo, and todoist. Neither of them work both stuck at loading... man you'd think getting a todo list into magic mirror would be easier.. I'm exhausted spent hours on this already :(

@sdetweil
Copy link
Contributor

sdetweil commented Aug 7, 2021

I just installed todoist module, got the access token from the app in the todoist page from the readme link, added a project, got its number, added it to the projects list,
added a task in that project and refreshed MM and boom its there..

never used this module before

@sdetweil
Copy link
Contributor

sdetweil commented Aug 7, 2021

and just added the todoist skill to alexa, added a task and then got the alexa todolist project id, added it to the todoist config and voila (middle right)

Screenshot at 2021-08-06 23-06-36

@cbrooker
Copy link
Owner

cbrooker commented Aug 7, 2021

I'm having the same issue. Stuck at loading...

I ran the checkout command and also got that same error:

git checkout df2d4ff
error: Your local changes to the following files would be overwritten by checkout:
	package-lock.json
	package.json
Please commit your changes or stash them before you switch branches.
Aborting

I tried microsoft todo, and todoist. Neither of them work both stuck at loading... man you'd think getting a todo list into magic mirror would be easier.. I'm exhausted spent hours on this already :(

Sounds like a git conflict. Not sure what changed your local package file.
Go to the MMM-Todist folder and type "git stash".
Then do your checkout again. "git checkout df2d4ff"

Looking at the thread. I see there is a problem with the latest build. I'll try to take a look soon.

Chris

@sdetweil
Copy link
Contributor

sdetweil commented Aug 7, 2021

@cbrooker
I just installed for the very 1st time, and it worked right away.. on MM 2.16

@Nickred896
Copy link

I had the loading problem when I first installed. Ran through all troubleshooting in this thread. I got this module to work only after deleting the MMM-Todoist folder from modules and going back through the install steps.

@RickSanchezC136
Copy link

RickSanchezC136 commented Jul 29, 2022

Having the same issue:

Created new project in todoist.
Copied API key and project number and pasted into module config.
ran Git Clone command to pull module, then went into folder and ran npm install.
Just says loading...

I used this module over a year ago and it was working. I'm not sure why it's not working now.
I dont have any other modules installed. Fresh install (last week).

@sdetweil
Copy link
Contributor

I'll look at.mine in an hour or so. I don't remember anything special about either task or todoist..

Google u have to add a credit card to make any API work

@sdetweil
Copy link
Contributor

sdetweil commented Jul 30, 2022

I just installed MMM-Todoist, on latest MMM 2.20.0
copied the sample config from module readme
copied api key from web site (called accesstoken in config)
got project numbers from web site , pasted numbers (no quotes)

worked on 1st try
(accessToken mangled here)

		{
		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.
			hideWhenEmpty: false,
			accessToken: '4e27xx2345e124bcdfda0dad05a7ad2fcb1c24',
			maximumEntries: 60,
			updateInterval: 10*60*1000, // Update every 10 minutes
			fade: false,
			// projects and/or labels is mandatory:
			projects: [ 2270986771 , 2209919893],
			labels: [ "MagicMirror", "Important" ] // Tasks for any projects with these labels will be shown.
      }
	}

@ACiD2142
Copy link

ACiD2142 commented Nov 1, 2022

Hi

I installed this module today suck on loading can any one please assist

Thank you

@pauabaer
Copy link

pauabaer commented Dec 9, 2022

Hi guys..i have the same problem. is there any solution right now?

@Jdwilcox211
Copy link

Jdwilcox211 commented Dec 10, 2022

I have same problem just happed after most recent pull. Tried to change api key and I delete and recloned the module to no success I even tried to check out previous commit but it does seem to work

@karldonteljames
Copy link

karldonteljames commented Dec 20, 2022

Another first-time installer here having the same issue.
I've removed the MMM-Todoist folder and re-cloned it, but no change. Is there a log file anywhere?
I've also double checked the config, and tried to swap between projects and labels but still sits at loading. - Config below.

{
      module: 'MMM-Todoist',
      header: 'To-Do List',
      position: 'top_right',
      config: {
        hideWhenEmpty: false,
        accessToken: MySuperSecretAccessToken,
        maximumEntries: 20,
        updateInterval: 300000,
        fade: false,
        labels: [ "MagicMirror, "Important"],
        displayLastUpdate: true,
        maxTitleLength: 20
      }
    }

I've also tried

    git stash

followed by

    git checkout df2d4ff

@karldonteljames
Copy link

I've just seent that the API is now on version 9 (another open issue) and i've added

apiversion: 'v9',
apiBase: "https://todoist.com/API"

to the config, but this also makes no difference.

@karldonteljames
Copy link

karldonteljames commented Dec 20, 2022

Hey all, for those still having this issue, i think it may be related to the v9 API. I've just changed my config and tripple checked my access token, projects, and tags, and this is now working.

                {
                        module: 'MMM-Todoist',
                        position: 'top_right',
                        header: "To-Do List",
                        config: {
                                hideWhenEmpty: false,
                                accessToken: "MyPrivateAccessTokenWithQuotes",
                                apiVersion: "v9",
                                apiBase: "https://todoist.com/API",
                                todoistEndpoint: "sync",
                                maximumEntries: 60,
                                updateInterval: 10*60*1000,
                                fade: true,
                                labels:  [ "MagicMirror", "Important" ],
                                projects: [ "2304370707" ],
                                sortType: "dueDateDescPriority",
                                maxTitleLength: 1000,
                                wrapEvents: false,
                                showProject: false
                        }
                }

According to the information in the other open issue (v9) you must include both project and tags, I've not tried without either to be honest, but this is working for me.

@karldonteljames
Copy link

I know the last few posts have been mine, but i can confirm that you do not need both labels and projects.
I'm pulling from projects, and have three seperate lists on on my MagicMirror now. Working brilliantly.

@waterglass11
Copy link

Hi all, I've tried the "git stash" and "git checkout" here and although I did received a package-lock.json notification when I first tried the checkout, I'm not seeing it after the stash command followed by the checkout.

The problem is I've copied @karldonteljames module text verbatim into my config, changed the project name and token to be my own info, and I'm still stuck at "Loading..." instead of pulling up tasks. Anyone else have any ideas what could be causing the issue?

@waterglass11
Copy link

Just kidding - see my reply here. I rebuilt the mirror from scratch and now it works fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests