• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-GoogleTasks errors out randomly

Scheduled Pinned Locked Moved Unsolved Troubleshooting
7 Posts 3 Posters 816 Views 3 Watching
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.
  • A Offline
    angeliKITTYx
    last edited by Jan 24, 2024, 8:52 PM

    It used to be about once a week, but now it’s happening much more frequently. If I restart MM, the error goes away and the module displays correctly until it errors out again. Does anyone know a solution to this? SS of the error (I blocked out my list ID)
    alt text

    K 1 Reply Last reply Jan 25, 2024, 4:11 AM Reply Quote 0
    • K Offline
      KristjanESPERANTO Module Developer @angeliKITTYx
      last edited by Jan 25, 2024, 4:11 AM

      There are some forks of this module, which one do you use? According to my knowledge, the following is the most up-to-date: https://github.com/spydersoft-consulting/MMM-GoogleTasks

      Run git remote -v in the module’s directory to find out.

      A 1 Reply Last reply Feb 5, 2024, 8:16 PM Reply Quote 0
      • A Offline
        angeliKITTYx @KristjanESPERANTO
        last edited by Feb 5, 2024, 8:16 PM

        @KristjanESPERANTO

        ~/MagicMirror/modules/MMM-GoogleTasks $ git remote -v
        origin	https://github.com/themox/MMM-GoogleTasks.git (fetch)
        origin	https://github.com/themox/MMM-GoogleTasks.git (push)
        
        

        How do I switch? Thank you so much for your help

        K 1 Reply Last reply Feb 5, 2024, 9:22 PM Reply Quote 0
        • K Offline
          KristjanESPERANTO Module Developer @angeliKITTYx
          last edited by Feb 5, 2024, 9:22 PM

          Got to the modules directory:
          cd ~/MagicMirror/modules

          Delete the “old” MMM-GoogleTasks directory:
          rm -r MMM-GoogleTasks

          Clone the fork:
          git clone https://github.com/spydersoft-consulting/MMM-GoogleTasks

          Change to the module directory:
          cd MMM-GoogleTasks

          Install dependencies:
          npm install

          🙂

          A 1 Reply Last reply Feb 17, 2024, 4:30 PM Reply Quote 0
          • A Offline
            angeliKITTYx @KristjanESPERANTO
            last edited by Feb 17, 2024, 4:30 PM

            @KristjanESPERANTO thank you!! I’m trying to set it up and I’m stuck on step 4 of Authentication Setup

            When I run the command, I get an error, and my token.js doesn’t provide any account names or list names to use in the [account] section of the config.

            node authenticate.mjs -c /home/xxxx/MagicMirror/modules/MMM-GoogleTasks/credentials.json -t /home/xxxx/MagicMirror/modules/MMM-GoogleTasks/token.json
            
            file:///home/burgess/MagicMirror/modules/MMM-GoogleTasks/authenticate.mjs:26
                currentTokens.forEach(element => {
                              ^
            
            TypeError: currentTokens.forEach is not a function
                at file:///home/xxxx/MagicMirror/modules/MMM-GoogleTasks/authenticate.mjs:26:19
                at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3)
            
            Node.js v20.10.0
            
            

            (replaced my account name with “xxxx”

            K 1 Reply Last reply Feb 18, 2024, 7:33 AM Reply Quote 0
            • K Offline
              kayakbabe @angeliKITTYx
              last edited by Feb 18, 2024, 7:33 AM

              @angeliKITTYx I had a little trouble with the google calender stuff because at first I didn’t realize I had to get a google developer account and then I could setup the api’s. Every once in a while, especially if my mirror has been unplugged for 24 hours, I have to do the authorize again. Also I have to first delete the token file that gets created. The authorize script won’t over write the token. Maybe look at the instructions for the MMM-GoogleCalendar might help you? The two modules seem very similar.

              A 1 Reply Last reply Feb 19, 2024, 12:17 AM Reply Quote 0
              • A Offline
                angeliKITTYx @kayakbabe
                last edited by Feb 19, 2024, 12:17 AM

                @kayakbabe I have Google calendar and Google photos working on my MM just fine. Both used similar oauth api credential file instructions, but this one seems a little more complicated.

                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 Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy