Bugsounet_Coding();

    • Register
    • Login
    • Search

    Solved recipe for ext-youtube

    EXT-YouTube
    3
    14
    124
    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.
    • R
      Raf BetaTester Translators last edited by Raf

      who can give me the recipe for ext-youtube.i have installed everything except the recipe.i also have the token but i can’t get my recipe right.i have read the wiki already 20 but i am not a programmer
      thanks in advance.

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

        it’s there

        Just add it in the config of MMM-GoogleAssistant

        and try this after activate GA with your prefered keyword: youtube Michael jackson thriller

        1 Reply Last reply Reply Quote 0
        • Moved from Recipes by  bugsounet bugsounet 
        • R
          Raf BetaTester Translators last edited by

          …
          MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
          failed to load driver: kms_swrast
          MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
          failed to load swrast driver

          what message is this
          1 Reply Last reply Reply Quote 0
          • R
            Raf BetaTester Translators last edited by

            google assistant responds but does not open anything

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

              Electron options are set?

              R 1 Reply Last reply Reply Quote 0
              • R
                Raf BetaTester Translators @bugsounet last edited by

                @bugsounet Yes

                var config = {
                  address: 'localhost',
                  electronOptions: {
                    webPreferences: {
                      webviewTag: true
                    }
                  },
                
                1 Reply Last reply Reply Quote 0
                • bugsounet
                  bugsounet Main Coder last edited by

                  perfect 🙂

                  can you see me all log from start of MM² ?

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    Raf BetaTester Translators @bugsounet last edited by

                    @bugsounet

                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                    failed to load driver: kms_swrast
                    MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                    failed to load swrast driver
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                    failed to load driver: kms_swrast
                    MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                    failed to load swrast driver
                    /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                    [14.11.2022 18:33.44.634] [ERROR] WARNING! Could not find config file. Please create one. Starting with default configuration.
                    [14.11.2022 18:33.44.666] [ERROR] App threw an error during load
                    [14.11.2022 18:33.44.667] [ERROR] Error: ENOENT: no such file or directory, open
                        at Object.openSync (node:fs:585:3)
                        at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1812)
                        at Object.readFileSync (node:fs:453:35)
                        at e.readFileSync (node:electron/js2c/asar_bundle:5:9160)
                        at new Server (/home/pi/MagicMirror/js/server.js:32:12)
                        at /home/pi/MagicMirror/js/app.js:226:18
                        at loadNextModule (/home/pi/MagicMirror/js/app.js:172:5)
                        at /home/pi/MagicMirror/js/app.js:167:6
                        at Class.loaded (/home/pi/MagicMirror/js/node_helper.js:18:3)
                        at loadModule (/home/pi/MagicMirror/js/app.js:144:6)
                    [14.11.2022 18:33.44.669] [ERROR] Whoops! There was an uncaught exception...
                    [14.11.2022 18:33.44.675] [ERROR] Error: ENOENT: no such file or directory, open
                        at Object.openSync (node:fs:585:3)
                        at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1812)
                        at Object.readFileSync (node:fs:453:35)
                        at e.readFileSync (node:electron/js2c/asar_bundle:5:9160)
                        at new Server (/home/pi/MagicMirror/js/server.js:32:12)
                        at /home/pi/MagicMirror/js/app.js:226:18
                        at loadNextModule (/home/pi/MagicMirror/js/app.js:172:5)
                        at /home/pi/MagicMirror/js/app.js:167:6
                        at Class.loaded (/home/pi/MagicMirror/js/node_helper.js:18:3)
                        at loadModule (/home/pi/MagicMirror/js/app.js:144:6) {
                      errno: -2,
                      syscall: 'open',
                      code: 'ENOENT'
                    }
                    [14.11.2022 18:33.44.676] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                    [14.11.2022 18:33.44.676] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                    failed to load driver: kms_swrast
                    MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                    failed to load swrast driver
                    [14.11.2022 18:35.15.027] [ERROR] WARNING! Could not find config file. Please create one. Starting with default configuration.
                    [14.11.2022 18:35.15.055] [ERROR] App threw an error during load
                    [14.11.2022 18:35.15.057] [ERROR] Error: ENOENT: no such file or directory, open
                        at Object.openSync (node:fs:585:3)
                        at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1812)
                        at Object.readFileSync (node:fs:453:35)
                        at e.readFileSync (node:electron/js2c/asar_bundle:5:9160)
                        at new Server (/home/pi/MagicMirror/js/server.js:32:12)
                        at /home/pi/MagicMirror/js/app.js:226:18
                        at loadNextModule (/home/pi/MagicMirror/js/app.js:172:5)
                        at /home/pi/MagicMirror/js/app.js:167:6
                        at Class.loaded (/home/pi/MagicMirror/js/node_helper.js:18:3)
                        at loadModule (/home/pi/MagicMirror/js/app.js:144:6)
                    [14.11.2022 18:35.15.059] [ERROR] Whoops! There was an uncaught exception...
                    [14.11.2022 18:35.15.066] [ERROR] Error: ENOENT: no such file or directory, open
                        at Object.openSync (node:fs:585:3)
                        at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1812)
                        at Object.readFileSync (node:fs:453:35)
                        at e.readFileSync (node:electron/js2c/asar_bundle:5:9160)
                        at new Server (/home/pi/MagicMirror/js/server.js:32:12)
                        at /home/pi/MagicMirror/js/app.js:226:18
                        at loadNextModule (/home/pi/MagicMirror/js/app.js:172:5)
                        at /home/pi/MagicMirror/js/app.js:167:6
                        at Class.loaded (/home/pi/MagicMirror/js/node_helper.js:18:3)
                        at loadModule (/home/pi/MagicMirror/js/app.js:144:6) {
                      errno: -2,
                      syscall: 'open',
                      code: 'ENOENT'
                    }
                    [14.11.2022 18:35.15.067] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                    [14.11.2022 18:35.15.068] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                    failed to load driver: kms_swrast
                    MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                    failed to load swrast driver
                    /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to retrieve device information
                    MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                    failed to load driver: kms_swrast
                    MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
                    failed to load swrast driver
                    
                    
                    R 1 Reply Last reply Reply Quote 0
                    • R
                      Raf BetaTester Translators @Raf last edited by

                      @Raf

                      /*** GENERATED BY @bugsounet Gateway v2.1.9 ***/
                      /*** https://forum.bugsounet.fr **/
                      
                      var config = {
                        address: 'localhost',
                        electronOptions: {
                          webPreferences: {
                            webviewTag: true
                          }
                        },
                        port: 8080,
                        basePath: '/',
                        ipWhitelist: [
                          '127.0.0.1',
                          '::ffff:127.0.0.1',
                          '::1'
                        ],
                        useHttps: false,
                        httpsPrivateKey: '',
                        httpsCertificate: '',
                        language: 'nl',
                        locale: 'en-US',
                        logLevel: [
                          'INFO',
                          'LOG',
                          'WARN',
                          'ERROR'
                        ],
                        timeFormat: 24,
                        units: 'metric',
                        modules: [
                          {
                            module: 'alert'
                          },
                          {
                            module: 'updatenotification',
                            position: 'top_bar'
                          },
                          {
                            module: 'clock',
                            position: 'top_left'
                          },
                          {
                            module: 'calendar',
                            header: 'Mijn Calender',
                            maximumEntries: 10,
                            position: 'top_left',
                            config: {
                              calendars: [
                                {
                                  symbol: 'calendar-check',
                                  url: 'https://calendar.google.com/calendxxxxxxxxxxxxxxxxxxxxxxxxxxx'
                                }
                              ]
                            }
                          },
                          {
                            module: 'MMM-CalendarExt3',
                            position: 'bottom_center',
                            title: '',
                            config: {
                              mode: 'month',
                              instanceId: 'basicCalendar',
                              locale: 'BE',
                              maxEventLines: 5,
                              firstDayOfWeek: 1,
                              calendarSet: []
                            }
                          },
                          {
                            module: 'MMM-Tools',
                            position: 'top_left',
                            config: {
                              refresh: 5000,
                              containerSize: null,
                              itemSize: null,
                              OS: {
                                displayOs: true,
                                orderOs: 1
                              },
                              CPU: {
                                displayUsage: true,
                                orderUsage: 4,
                                displayTemp: true,
                                orderTemp: 7,
                                displayType: true,
                                orderType: 2
                              },
                              RAM: {
                                displayRam: true,
                                orderRam: 5
                              },
                              STORAGE: {
                                displayStorage: true,
                                orderStorage: 6,
                                partitionExclude: []
                              },
                              NETWORK: {
                                displayNetwork: true,
                                orderNetwork: 3,
                                nativeNetwork: false,
                                displayDefaultNetwork: true
                              },
                              UPTIME: {
                                displayUptime: true,
                                useMagicMirror: true,
                                orderUptime: 8,
                                displayRecord: true,
                                orderRecord: 9
                              },
                              WARNING: {
                                enableWarning: false,
                                interval: 300000,
                                check: {
                                  CPU_TEMP: 65,
                                  CPU_USAGE: 75,
                                  STORAGE_USED: 80,
                                  MEMORY_USED: 80
                                }
                              }
                            }
                          },
                          {
                            module: 'MMM-GoogleAssistant',
                            configDeepMerge: true,
                            config: {
                              assistantConfig: {
                                atitude: 51.3939569,
                                longitude: 4.5851273
                              },
                              recipes: [
                                'Reboot-Restart-Shutdown.js',
                                '../../EXT-YouTube/recipe/EXT-YouTube.js'
                              ]
                            }
                          },
                          {
                            module: 'EXT-Detector',
                            position: 'top_left',
                            configDeepMerge: true,
                            config: {
                              debug: false,
                              useIcon: true,
                              touchOnly: false,
                              detectors: [
                                {
                                  detector: 'Snowboy',
                                  Model: 'jarvis',
                                  Sensitivity: null
                                }
                              ]
                            }
                          },
                          {
                            module: 'Gateway',
                            config: {
                              debug: false,
                              port: 8081,
                              username: 'hoxxxx',
                              password: 'axxxxxxxxxxxxxxx',
                              noLogin: false,
                              usePM2: true,
                              PM2Id: 0,
                              useMapping: false,
                              portMapping: 8081
                            }
                          },
                          {
                            module: 'weather',
                            position: 'top_right',
                            config: {
                              weatherProvider: 'openweathermap',
                              type: 'current',
                              location: 'Wuustwezel',
                              locationID: '2783416',
                              apiKey: '027f36976xxxxxxxxxxxxxxxxxxxxxxxxxxx'
                            }
                          },
                          {
                            module: 'weather',
                            position: 'top_right',
                            header: 'Voorspelling voor',
                            config: {
                              weatherProvider: 'openweathermap',
                              type: 'forecast',
                              location: 'Wuustwezel',
                              locationID: '2783416',
                              apiKey: '027f36xxxxxxxxxxxxxxxxxxxxxxxxx'
                            }
                          },
                          {
                            module: 'MMM-TuyaSL',
                            position: 'top_right',
                            header: 'TuyaSL',
                            config: {
                              userName: 'schexxxxxxxxxxxxxxxx@gmail.com',
                              password: 'xxxxxxxxxxxxxxx',
                              countryCode: 'EU',
                              showOnlyOnline: true,
                              showOnlyOn: false,
                              colour: true,
                              updateInterval: 300000,
                              timeout: 10000
                            }
                          },
                          {
                            module: 'MMM-NewsFeed',
                            position: 'bottom_bar',
                            configDeepMerge: true,
                            config: {
                              debug: true,
                              update: '15m',
                              speed: '25s',
                              maxItems: 100,
                              flux: [
                                {
                                  from: 'GVA Hoofdpunten',
                                  url: 'https://www.gva.be/rss/section/5685D99C-D24E-4C8A-9A59-A2AC00E293B1'
                                }
                              ],
                              personalize: {
                                Name: 'NewsFeed',
                                NameField: true,
                                NameColor: '#FFF',
                                NameBackground: '#414141',
                                ArticleColor: '#000',
                                ArticleBackground: '#D5D535',
                                DescriptionColor: '#000',
                                DescriptionBackground: '#FFF',
                                QRCode: true
                              },
                              vertical: {
                                useVertical: false,
                                width: '450px',
                                imageMaxWidth: '20vw',
                                imageMaxHeight: '20vh'
                              }
                            }
                          },
                          {
                            module: 'EXT-Alert',
                            disabled: true,
                            config: {
                              debug: true,
                              ignore: []
                            }
                          },
                          {
                            module: 'EXT-YouTubeCast',
                            position: 'middle_center',
                            disabled: true,
                            config: {
                              debug: false,
                              fullscreen: false,
                              width: '30vw',
                              height: '30vh',
                              alwaysDisplayed: true,
                              castName: 'MagicMirror',
                              port: 8569
                            }
                          },
                          {
                            module: 'EXT-UpdateNotification',
                            position: 'top_bar',
                            configDeepMerge: true,
                            disabled: true,
                            config: {
                              debug: false,
                              updateInterval: 600000,
                              startDelay: 60000,
                              ignoreModules: [],
                              updateCommands: [],
                              notification: {
                                useTelegramBot: true,
                                sendReady: true,
                                useScreen: true,
                                useCallback: true
                              },
                              update: {
                                autoUpdate: true,
                                autoRestart: true,
                                usePM2: false,
                                PM2Name: '0',
                                defaultCommand: 'git --reset hard && git pull && npm install',
                                logToConsole: true,
                                timeout: 120000
                              }
                            }
                          },
                          {
                            module: 'EXT-Browser',
                            disabled: true,
                            config: {
                              debug: true,
                              displayDelay: 60000,
                              scrollActivate: true,
                              scrollStep: 25,
                              scrollInterval: 1000,
                              scrollStart: 5000
                            }
                          },
                          {
                            module: 'EXT-Volume',
                            disabled: true,
                            config: {
                              debug: false,
                              volumePreset: 'ALSA',
                              myScript: null,
                              startVolume: 100
                            }
                          },
                          {
                            module: 'EXT-YouTube',
                            position: 'middle_center',
                            disabled: true,
                            config: {
                              fullscreen: true,
                              width: '30vw',
                              height: '30vh',
                              useSearch: true,
                              alwaysDisplayed: true,
                              displayHeader: true,
                              username: 'Raf',
                              token: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx'
                            }
                          }
                        ]
                      }
                      
                      /*************** DO NOT EDIT THE LINE BELOW ***************/
                      if (typeof module !== 'undefined') {module.exports = config;}
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • bugsounet
                        bugsounet Main Coder last edited by

                        hi, log is not since MM² start

                        should like this:

                        ~/MagicMirror$ npm start
                        
                        > magicmirror@2.21.0 start
                        > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                        
                        [15.11.2022 17:08.49.558] [LOG]   Starting MagicMirror: v2.21.0
                        [15.11.2022 17:08.49.560] [LOG]   Loading config ...
                        [15.11.2022 17:08.49.562] [LOG]   Loading module helpers ...
                        .....
                        

                        In your config is see many disabled: true, feature
                        it’s means that the module is disabled and ignored
                        that’s why it’s not works

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          Raf BetaTester Translators @bugsounet last edited by

                          @bugsounet
                          this is the message i get now
                          If your username don’t match with the token, you can’t read the YouTube video (error 403)
                          Except in FreeDays (username and token must be defined to null)

                          R 1 Reply Last reply Reply Quote 0
                          • R
                            Raf BetaTester Translators @Raf last edited by

                            @Raf
                            I checked everything again and it works TOP now

                            1 Reply Last reply Reply Quote 0
                            • M
                              MTRS last edited by

                              hi!

                              i encountered the same problem. my mirror played yt before. yesterday i ran and it stopped playing any yt video

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

                                @MTRS Hi, in your case It can works only on Freedays. See EXT-YouTube wiki for more informations

                                I will close this issue.
                                Open your own if needed

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