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 880 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.
    • KristjanESPERANTOK Offline
      KristjanESPERANTO Module Developer @angeliKITTYx
      last edited by

      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 Reply Quote 0
      • A Offline
        angeliKITTYx @KristjanESPERANTO
        last edited by

        @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

        KristjanESPERANTOK 1 Reply Last reply Reply Quote 0
        • KristjanESPERANTOK Offline
          KristjanESPERANTO Module Developer @angeliKITTYx
          last edited by

          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 Reply Quote 0
          • A Offline
            angeliKITTYx @KristjanESPERANTO
            last edited by

            @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”

            kayakbabeK 1 Reply Last reply Reply Quote 0
            • kayakbabeK Offline
              kayakbabe @angeliKITTYx
              last edited by

              @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 Reply Quote 0
              • A Offline
                angeliKITTYx @kayakbabe
                last edited by

                @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