Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Solved issue with npm

    Issues
    assistant npm needhelp
    5
    41
    157
    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.
    • Z
      zeangkor Donators last edited by

      hello everyone i have this issue with npm command i try to install google assistant i tryed to install and uninstal nodejs a lot of time created project on google console and claud download credentials but when i do this command it gives me this error enyone know hat that is? or how to fix?

      pi@raspberrypi:~ $ cd MagicMirror
      pi@raspberrypi:~/MagicMirror $ cd modules
      pi@raspberrypi:~/MagicMirror/modules $ npm run tokens
      npm ERR! Missing script: "tokens"
      npm ERR! 
      npm ERR! Did you mean this?
      npm ERR!     npm token # Manage your authentication tokens
      npm ERR! 
      npm ERR! To see a list of scripts, run:
      npm ERR!   npm run
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2022-03-27T14_44_59_491Z-debug-0.log
      pi@raspberrypi:~/MagicMirror/modules $ 
      
      
      bugsounet 1 Reply Last reply Reply Quote 0
      • bigjojo
        bigjojo last edited by

        hello, obviously it does not work, you do not launch the command in the right folder.
        be careful that it must be done directly on the mirror, not in ssh.
        see wiki
        https://wiki.bugsounet.fr/en/MMM-GoogleAssistantv4/Beforethefirststart

        Z 1 Reply Last reply Reply Quote 0
        • Z
          zeangkor Donators @bigjojo last edited by

          @bigjojo hello thank you for response but it does not appear on mirror

          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by

            So try with a terminal in your pi or with vncviewer

            Z 1 Reply Last reply Reply Quote 0
            • Z
              zeangkor Donators @bugsounet last edited by

              @bugsounet but it was terminal i get this error in terminal

              1 Reply Last reply Reply Quote 0
              • bugsounet
                bugsounet Main Coder last edited by

                Past the error?

                1 Reply Last reply Reply Quote 0
                • bugsounet
                  bugsounet Main Coder @zeangkor last edited by bugsounet

                  @zeangkor said in issue with npm:

                  pi@raspberrypi:~ $ cd MagicMirror
                  pi@raspberrypi:~/MagicMirror $ cd modules
                  pi@raspberrypi:~/MagicMirror/modules $ npm run tokens
                  npm ERR! Missing script: "tokens"
                  npm ERR! 
                  npm ERR! Did you mean this?
                  npm ERR!     npm token # Manage your authentication tokens
                  npm ERR! 
                  npm ERR! To see a list of scripts, run:
                  npm ERR!   npm run
                  
                  npm ERR! A complete log of this run can be found in:
                  npm ERR!     /home/pi/.npm/_logs/2022-03-27T14_44_59_491Z-debug-0.log
                  pi@raspberrypi:~/MagicMirror/modules $ 
                  
                  

                  now if you want to says this error …
                  @bigjojo ask you to read this wiki part

                  249c428e-448b-4bfa-8149-f9fb50c066cc-image.png

                  For no syntax error… clic on copy (like my cursor) and past content in a terminal

                  The result will be different like yours 🙂

                  BUT I warn you !
                  When i see your final command npm run tokens it’s an MMM-GoogleAssistant v3 command

                  MMM-GoogleAssistant is now in v4 !

                  It’s better for read not reading/seeing an YouTube tutorial but reading an colored Wiki

                  why ?
                  because with a YouTube Tutorial: it will never works 🙂

                  Z 1 Reply Last reply Reply Quote 0
                  • Z
                    zeangkor Donators @bugsounet last edited by

                    @bugsounet nope still not working i tryed everything what os on wiki step by step nothing is working

                    1 Reply Last reply Reply Quote 0
                    • bugsounet
                      bugsounet Main Coder last edited by

                      Waiting for log so?

                      1 Reply Last reply Reply Quote 0
                      • F
                        foobar last edited by

                        Actually script is npm run token
                        As Bugsounet said, MMM-GoogleAssistant is now in v4

                        1 Reply Last reply Reply Quote 0
                        • Z
                          zeangkor Donators last edited by

                          still get this error

                          pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ npm run token

                          MMM-GoogleAssistant@4.0.2 token
                          installer/token.sh

                          Welcome to MMM-GoogleAssistant Token generator!

                          Do you want to install/reinstall MMM-GoogleAssistant token? [Y/n]
                          Your choice: y

                          Error: Bad credentials missing: redirect_uris

                          Done.

                          1 Reply Last reply Reply Quote 0
                          • bugsounet
                            bugsounet Main Coder last edited by

                            This error is related with a YouTube tutorial…
                            So Create credentials with the wiki 😉 (see Credentials setup)

                            Z 1 Reply Last reply Reply Quote 0
                            • Z
                              zeangkor Donators @bugsounet last edited by

                              @bugsounet okay it worked i will buy you a beer that’s for sure but it does not recognize voice i mean nothing really happening when i say hey google or hey jarvis my mic is working sorry for bothering you and take your time but im totaly new

                              1 Reply Last reply Reply Quote 0
                              • bugsounet
                                bugsounet Main Coder last edited by

                                Wiki says need to install:

                                • MMM-GoogleAssistant
                                • Gateway
                                • EXT-Detector
                                • EXT-Alert

                                Right?

                                Z 1 Reply Last reply Reply Quote 0
                                • Z
                                  zeangkor Donators @bugsounet last edited by

                                  @bugsounet now i have snowboy library issue it cant load

                                  1 Reply Last reply Reply Quote 0
                                  • bugsounet
                                    bugsounet Main Coder last edited by

                                    without logs … I can’t help

                                    Z 2 Replies Last reply Reply Quote 0
                                    • Z
                                      zeangkor Donators @bugsounet last edited by

                                      @bugsounet ```
                                      [ERROR] [DETECTOR] Warning: 1 @bugsounet library not loaded !
                                      [29.03.2022 17:36.47.107] [ERROR] [DETECTOR] Try to solve it with npm run rebuild in EXT-Detector directory
                                      [29.03.2022 17:36.47.118] [ERROR] [DETECTOR] No detector initialized!
                                      [29.03.2022 17:36.47.122] [INFO] Checking git for module: EXT-Detector
                                      [29.03.2022 17:36.47.216] [INFO] Checking git for module: EXT-Alert
                                      [29.03.2022 17:36.47.298] [INFO] Checking git for module: Gateway
                                      [29.03.2022 17:36.47.366] [INFO] Checking git for module: MMM-Remote-Control
                                      [29.03.2022 17:36.47.455] [INFO] Checking git for module: default
                                      [29.03.2022 17:36.48.294] [INFO] Newsfeed-Fetcher: Broadcasting 25 items.
                                      [29.03.2022 17:36.49.330] [INFO] Calendar-Fetcher: Broadcasting 10 events.
                                      [29.03.2022 17:36.49.827] [INFO] Newsfeed-Fetcher: Broadcasting 57 items.

                                      1 Reply Last reply Reply Quote 0
                                      • Z
                                        zeangkor Donators @bugsounet last edited by

                                        @bugsounet here is a code what i use ```
                                        {
                                        module: “MMM-GoogleAssistant”,
                                        position: “top_left”,
                                        configDeepMerge: true,
                                        classes: ‘always’,
                                        config: {
                                        Extented: {
                                        youtube: {
                                        useYoutube: true,
                                        youtubeCommand: “youtube”,
                                        displayResponse: true,
                                        useVLC: true,
                                        minVolume: 30,
                                        maxVolume: 100,
                                        username: “my forum username”,
                                        token: null
                                        },
                                        spotify: {
                                        useSpotify: true,
                                        visual: {
                                        updateInterval: 1000,
                                        idleInterval: 10000,
                                        useBottombar: true,
                                        CLIENT_ID: “[your clientID]”,
                                        CLIENT_SECRET: “[your clientSecret]”
                                        },
                                        player: {
                                        type: “Raspotify”,
                                        email: “”,
                                        password:“”,
                                        minVolume: 10,
                                        maxVolume: 90,
                                        usePause: true
                                        }

                                        				}
                                        		  },
                                                              assistantConfig: {
                                        	            latitude: 51.508530,
                                        	            longitude: -0.076132,
                                        		  },
                                        	        }
                                        	},
                                        

                                        {
                                        module: “EXT-Detector”,
                                        position: “top_left”,
                                        configDeepMerge: true,
                                        config: {
                                        debug: false,
                                        detectors: [
                                        {
                                        detector: “Snowboy”,
                                        Model: “jarvis”,
                                        Sensitivity: null
                                        }
                                        ]
                                        }
                                        },
                                        {
                                        module: ‘EXT-Alert’,
                                        config: {
                                        debug: false,
                                        ignore: []
                                        }
                                        },
                                        {
                                        module: ‘Gateway’
                                        },

                                        1 Reply Last reply Reply Quote 0
                                        • bugsounet
                                          bugsounet Main Coder last edited by

                                          Can you try npm run rebuild inside EXT-Detector directory ?

                                          and verify if ✔ MagicMirror Rebuild Complete on the end process

                                          1 Reply Last reply Reply Quote 0
                                          • M1st3r-E
                                            M1st3r-E last edited by

                                            sorry to barge in but you mentioned your MIC is functional did you try this to see if you have sound output https://developers.google.com/assistant/sdk/guides/service/python/embed/audio ?.. just throwing this out there…as well not sure if this could be an issue but /home/pi/.asoundrc is deleted when loading to PIdesktop…do you have your MIC info in there? again disregard if done already…good day

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB | @bugsounet ©2022