MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

MMM-Assistant2Display



  • 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).
    


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


  • Module Developer

    sighs… 😵 🤒


  • Module Developer

    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



  • @Bugsounet
    Thanks I will give that a try.


Log in to reply