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 token.json

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 2 Posters 1.5k Views 2 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.
    • S Offline
      svenpisa
      last edited by

      What the hell…
      I’m about to lose it. I just want to get a to-do list up and running.

      https://github.com/spydersoft-consulting/MMM-GoogleTasks

      Selected the module and did the installation and authentication setup.

      I was really proud that I created a credentials.json and also an index.js as described in the following link
      https://developers.google.com/tasks/quickstart/nodejs?hl=de

      And now it comes: When I have created the index.js and placed it in my /home/sven directory and executed

       node . 
      

      in the terminal, I only get the following output

      sven@raspberrypi:~ $ node
      Welcome to Node.js v20.8.0.
      Type ".help" for more information.
      

      And don’t have to accept a Google account etc. What am I doing wrong again???:crying_face:

      And then the instructions continue. In the Authentication Setup it says under point 4 that you should also store the location of the token file???

      Where the hell do I get the token.json from or how do I create it?

      And when I have the file at some point… where exactly should I store the file? Where did you store the credentials.json and the token.json and how do you approach the path in the Config.js?
      I really need a description for dummies. I thought I was slowly getting the hang of it but I’m getting more and more desperate every day because I just can’t see any sense of achievement with the to-do lists… :exploding_head: :crying_face: :loudly_crying_face:

      PLEASE HELP ME:beaming_face_with_smiling_eyes:

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @svenpisa
        last edited by sdetweil

        @svenpisa never seen that node .

        see the module instructions

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @svenpisa
          last edited by sdetweil

          @svenpisa but more importantly, why are you doing that script instead of following the module instructions?

          Screenshot_20240213_074820_Chrome.jpg

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            svenpisa
            last edited by

            :loudly_crying_face: :loudly_crying_face: :loudly_crying_face:
            Do I understand correctly that I have chosen the wrong or faulty module?

            so it’s best to use https://github.com/jgauth/MMM-GoogleTasks?tab=readme-ov-file then install https://github.com/googleapis/google-api-nodejs-client first and then it should work???
            If only it were always that easy… I’ll give it a try tonight or tomorrow.

            Thanks Sam for your quick feedback :-)

            1 Reply Last reply Reply Quote 0
            • S Offline
              svenpisa
              last edited by

              I got it right! :grinning_face:

              08c8b5e2-464c-4bf3-bb4b-5cb33901e934-image.png

              Now I just have the following question. Can I display more than one list and can I display them side by side?
              I have now created two lists in the Tasks app. But only the first list is displayed.
              I would have simply duplicated the entry in Config.js and entered “top_left” and “top_center” in positions. Additionally used includedLists:. But unfortunately that doesn’t work.
              db7a6458-12fa-4fff-aa6f-f6bdab9c0821-Screenshot_2024-02-14-14-29-13-233-edit_com.google.android.apps.tasks.jpg

              Any ideas?

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @svenpisa
                last edited by

                @svenpisa I don’t know. you should ask the author thru an issue to the module repo

                the module does not support multiple instances in config.js, so that type of side by side won’t work.

                because it uses a js library , I don’t know if you can have multiple instances, browser is considered one overall instance.

                the doc seems to imply (to me) one gt list,
                OR one list of events across all lists in gt.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Offline
                  svenpisa
                  last edited by

                  @sdetweil Hi Sam,
                  I have looked at the module https://github.com/jgauth/MMM-GoogleTasks again and see in the problems exactly the question that I also asked with several lists and a link to https://github.com/usncahill/MMM-GoogleTasks

                  but then I come back to the original problem that I need a token.json and from here on I don’t understand it anymore and can’t really get any further.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @svenpisa
                    last edited by

                    @svenpisa i don’t understand… did you do the steps in the module instructions?
                    Snip20240215_2.png

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    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