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-Assistant2Display

    Scheduled Pinned Locked Moved General Discussion
    10 Posts 5 Posters 1.1k Views 5 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.
    • J Offline
      JohnBachini
      last edited by sdetweil

      Hi, I have installed, but unable to get video/youtube to play anything, it attempts to play and then error on screen, but disappears to quickly to read, but in logs

      Thanks

      youtube.js:77 [AMK2:ADDONS:A2D] Player Error 150: Not Allowed By Owner

      config is.

      //			disabled: true,
      			module: "MMM-AssistantMk2",	
      			position: "top_left",
      			config: {
      				verbose: true,
      				debug: true,
      				useA2D: true,
      				ui: "Fullscreen",
      				deviceModelId: "mmwithga-mmwithga-cffskt",
      				deviceInstanceId: "mmwithga",
      				assistantConfig: {
      					latitude: 51.968653,
      					longitude: -0.737203,
      					},
      //				responseConfig: {
      //					useHTML5: false,
      //					playProgram: "mpg123",
      //					},
      			record: {
      				recordProgram : "arecord",  
      				device        : "plughw:2,0",
      				},
      				recipes: [ "with-MMM-Hotword.js" ],
          			profiles: {
        		    		"default": {
        		      			profileFile: "default.json",
      		        		lang: "en-UK"
      		     			 }
        		  		},
        		  		addons: false,		
      				}
      		},
      		{
      			module: "MMM-Assistant2Display",
      			position: "top_left",
      			config: {
      				debug: true,
      				}
      		},
      
      

      error log

      MMM-PlexNowPlaying: Data received from the Plex server after 1 attempt(s). 
      MMM-Hotword.js:205 [HOTWORD] Command is excuting
      MMM-Hotword.js:215 [HOTWORD] notificationExec: ASSISTANT_ACTIVATE {profile: "default", type: "WAVEFILE", key: "modules/MMM-Hotword/temp/afterRecording.wav"}
      module.js:198 alert is suspended.
      MMM-AssistantMk2.js:563 [AMK2] Command CMD_HOTWORD_PAUSE is executed (notificationExec).
      module.js:198 clock is suspended.
      module.js:198 MMM-OpenmapWeather is suspended.
      module.js:198 weatherforecast is suspended.
      module.js:198 MMM-Tools is suspended.
      MMM-PlexNowPlaying.js:919 MMM-PlexNowPlaying: Suspended.
      module.js:198 MMM-homeassistant-sensors is suspended.
      module.js:198 MMM-Hotword is suspended.
      MMM-Assistant2Display.js:214 [A2D] This module cannot be suspended.
      module.js:198 MMM-synology-ds is suspended.
      response.js:77 [AMK2] Status from standby to think
      youtube.js:152 [A2D] YT Command: setVolume 5
      response.js:77 [AMK2] Status from think to confirmation
      MMM-AssistantMk2.js:654 [AMK2] Send A2D Response.
      display.js:57 [A2D] Response Scan
      display.js:312 [A2D] Lock Screen
      module.js:198 alert is suspended.
      youtube.js:152 [A2D] YT Command: cueVideoById {videoId: "7HD6O9patDE"}
      display.js:89 [A2D] Response Structure: {radio: false, speak: true, locked: true, AMk2: {…}, youtube: {…}, …}
      response.js:77 [AMK2] Status from confirmation to reply
      response.js:210 [AMK2] Wait audio to finish
      module.js:198 clock is suspended.
      module.js:198 MMM-OpenmapWeather is suspended.
      module.js:198 weatherforecast is suspended.
      module.js:198 MMM-Tools is suspended.
      MMM-PlexNowPlaying.js:919 MMM-PlexNowPlaying: Suspended.
      module.js:198 MMM-homeassistant-sensors is suspended.
      module.js:198 MMM-Hotword is suspended.
      MMM-Assistant2Display.js:214 [A2D] This module cannot be suspended.
      module.js:198 MMM-synology-ds is suspended.
      display.js:296 [A2D] Hide Iframe
      youtube.js:119 [A2D] YT Status: Video unstarted
      youtube.js:152 [A2D] YT Command: playVideo 
      youtube.js:119 [A2D] YT Status: Video cued
      display.js:296 [A2D] Hide Iframe
      youtube.js:119 [A2D] YT Status: Video unstarted
      youtube.js:119 [A2D] YT Status: Video buffering
      **youtube.js:77 [AMK2:ADDONS:A2D] Player Error 150: Not Allowed By Owner**
      display.js:268 [A2D] Reset YouTube {radio: false, speak: true, locked: true, AMk2: {…}, youtube: {…}, …}
      display.js:296 [A2D] Hide Iframe
      youtube.js:119 [A2D] YT Status: Video unstarted
      response.js:22 [AMK2] audio end
      response.js:142 [AMK2] Conversation ends.
      response.js:77 [AMK2] Status from reply to standby
      youtube.js:152 [A2D] YT Command: setVolume 100
      display.js:296 [A2D] Hide Iframe
      display.js:322 [A2D] Unlock Screen
      main.js:280 Will not show alert. LockStrings active: AMK2_LOCKED
      main.js:280 Will not show updatenotification. LockStrings active: AMK2_LOCKED
      main.js:280 Will not show clock. LockStrings active: AMK2_LOCKED
      main.js:280 Will not show MMM-OpenmapWeather. LockStrings active: AMK2_LOCKED
      main.js:280 Will not show weatherforecast. LockStrings active: AMK2_LOCKED
      main.js:280 Will not show MMM-Tools. LockStrings active: AMK2_LOCKED
      main.js:280 Will not show MMM-PlexNowPlaying. LockStrings active: AMK2_LOCKED
      main.js:280 Will not show mmm-hue-lights. LockStrings active: AMK2_LOCKED
      main.js:280 Will not show MMM-homeassistant-sensors. LockStrings active: AMK2_LOCKED
      main.js:280 Will not show MMM-Hotword. LockStrings active: AMK2_LOCKED
      main.js:280 Will not show MMM-Assistant2Display. LockStrings active: AMK2_LOCKED
      main.js:280 Will not show MMM-Parcel. LockStrings active: AMK2_LOCKED
      main.js:280 Will not show MMM-synology-ds. LockStrings active: AMK2_LOCKED
      main.js:280 Will not show MMM-CalendarExt2. LockStrings active: AMK2_LOCKED
      MMM-AssistantMk2.js:563 [AMK2] Command CMD_HOTWORD_RESUME is executed (notificationExec).
      module.js:205 alert is resumed.
      module.js:205 clock is resumed.
      module.js:205 MMM-OpenmapWeather is resumed.
      module.js:205 weatherforecast is resumed.
      module.js:205 MMM-Tools is resumed.
      MMM-PlexNowPlaying.js:919 MMM-PlexNowPlaying: Resumed.
      MMM-PlexNowPlaying.js:919 MMM-PlexNowPlaying: Update scheduled to run automatically every 30 second(s). 
      module.js:205 MMM-homeassistant-sensors is resumed.
      module.js:205 MMM-Hotword is resumed.
      MMM-PlexNowPlaying.js:919 MMM-PlexNowPlaying: Data received from the Plex server after 1 attempt(s). 
      MMM-Assistant2Display.js:218 [A2D] This module cannot be resumed.
      module.js:205 MMM-synology-ds is resumed.
      MMM-PlexNowPlaying.js:919 MMM-PlexNowPlaying: Data received from the Plex server after 1 attempt(s).
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @JohnBachini
        last edited by

        @JohnBachini said in MMM-Assistant2Display:

        Not Allowed By Owner

        seems pretty clear… the owner(s) of the video(s) has restricted where it can play (cause they get money for every play)
        nothing we can do about it

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by

          sighs… :dizzy_face: :face_with_thermometer:

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by

            YT.png
            this ?

            wiki says :
            config.js file (general config)
            var config = { address: "localhost", port: 8080,
            if addess is 0.0.0.0 or other, YouTube should have some trouble

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              JohnBachini @Guest
              last edited by

              @Bugsounet
              Thanks I will give that a try.

              1 Reply Last reply Reply Quote 0
              • E Offline
                Egnos
                last edited by

                Hi, I have the same problem…

                alert is suspended.
                module.js:199 clock is suspended.
                module.js:199 calendar is suspended.
                module.js:206 MMM-GoogleAssistant is resumed.
                module.js:199 alert is suspended.
                module.js:199 clock is suspended.
                module.js:199 calendar is suspended.
                main.js:297 Will not show alert. LockStrings active: GA_LOCKED
                main.js:297 Will not show updatenotification. LockStrings active: GA_LOCKED
                main.js:297 Will not show clock. LockStrings active: GA_LOCKED
                main.js:297 Will not show MMM-Assistant2Display. LockStrings active: GA_LOCKED
                main.js:297 Will not show calendar. LockStrings active: GA_LOCKED
                module.js:199 alert is suspended.
                module.js:199 clock is suspended.
                module.js:199 calendar is suspended.
                youtube.js:1 [A2D] YT Error 150: Not Allowed By Owner
                main.js:297 Will not show alert. LockStrings active: GA_LOCKED
                main.js:297 Will not show updatenotification. LockStrings active: GA_LOCKED
                main.js:297 Will not show clock. LockStrings active: GA_LOCKED
                main.js:297 Will not show MMM-Assistant2Display. LockStrings active: GA_LOCKED
                main.js:297 Will not show calendar. LockStrings active: GA_LOCKED
                module.js:206 alert is resumed.
                module.js:206 clock is resumed.
                module.js:206 calendar is resumed.
                module.js:199 MMM-GoogleAssistant is suspended.
                
                ​
                
                [05.01.2021 02:43.06.540] [LOG]   [ASSISTANT] Found YouTube Title: Michael Jackson - Thriller (Official Video) - videoId: sOnqjkJTMaA
                
                

                It’s really strange because with the old version (now I have MagicMirror: v2.14.0
                ) of MM this video opened without problems …

                How can I solve?

                My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User
                  last edited by

                  know issue

                  Working since 3 days about it

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    totofar
                    last edited by

                    Hello, I’m new in this forum.
                    First I’d like to say a warm thank you to the developers that built these brillant modules.
                    I’ve deployed MMM-GoogleAssistant and MMM-Assistant2Display.
                    I faced the standard issues of localhost, TokenYT and electronOptions (+ another less frequent on screenRotate) that prevented from showing Youtube videos… But finaly I can manage to display some / but not all.
                    In example, Youtube Tom & Jerry works successfuly… some others like Mickael Jackson thriller wont…
                    Logs confirm that video was found… but does not display. :(
                    “J’ai trouvé cette vidéo : Michael Jackson - Thriller (Official Video) - YouTube”,
                    0|mm | links: [],
                    0|mm | photos: [],
                    0|mm | path: ‘/home/pi/MagicMirror/modules/MMM-GoogleAssistant/tmp/lastScreenOutput.html’,
                    0|mm | uri: ‘tmp/lastScreenOutput.html’
                    0|mm | },
                    0|mm | audio: {
                    0|mm | path: ‘/home/pi/MagicMirror/modules/MMM-GoogleAssistant/tmp/lastResponse.mp3’,
                    0|mm | uri: ‘tmp/lastResponse.mp3’
                    0|mm | },
                    0|mm | transcription: { transcription: ‘YouTube Michael Jackson thriller’, done: true },
                    0|mm | continue: false,
                    0|mm | volume: null,
                    0|mm | lastQuery: {
                    0|mm | type: ‘MIC’,
                    0|mm | key: null,
                    0|mm | lang: ‘fr-FR’,
                    0|mm | useScreenOutput: true,
                    0|mm | useAudioOutput: true,
                    0|mm | status: ‘standby’,
                    0|mm | chime: true
                    0|mm | }
                    0|mm | }
                    0|mm | [12.01.2021 23:48.12.152] [LOG]
                    0|mm | [SNOWBOY] Starts listening.
                    0|mm | [12.01.2021 23:48.12.251] [LOG]
                    0|mm | [LPCM16] ~v1.0.1~ Start listening 1 channels, use arecord with sample rate 16000
                    0|mm | [12.01.2021 23:48.13.369] [LOG]
                    0|mm | [ASSISTANT] Found YouTube Title: Michael Jackson - Thriller (Official Video) - videoId: sOnqjkJTMaA

                    Any idea ?
                    Thanks in advance.

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by A Former User

                      je bosse dessus actuellement, ce n’est pas un bug de MM ou de A2D, c’est simplement que Google a changer sa politique de visionnage des videos depuis le 01/01/2021.
                      Je cherche a contourner le problème … un peu de patience :)

                      T 1 Reply Last reply Reply Quote 2
                      • T Offline
                        totofar @Guest
                        last edited by

                        @Bugsounet Merci beaucoup pour ta réponse et, de manière générale pour l’ensemble des ressources mises à disposition.

                        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