• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 youtube video

Scheduled Pinned Locked Moved General Discussion
9 Posts 2 Posters 1.1k 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.
  • Y Offline
    youssef @youssef
    last edited by sdetweil Mar 5, 2021, 2:53 PM Mar 5, 2021, 2:18 PM

    Configuration File :

    var config = {
    	address: "localhost", 	// Address to listen on, can be:
    							// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
    							// - another specific IPv4/6 to listen on a specific interface
    							// - "0.0.0.0", "::" to listen on any interface
    							// Default, when address config is left out or empty, is "localhost"
    
    electronOptions: {
             webPreferences : {
                  webviewTag: true 
            }
        },
    	port: 8080,
    	basePath: "/", 	// The URL path where MagicMirror is hosted. If you are using a Reverse proxy
    					// you must set the sub path here. basePath must end with a /
    	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], 	// Set [] to allow all IP addresses
    															// or add a specific IPv4 of 192.168.1.5 :
    															// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
    															// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
    															// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
    
    	useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
    	httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
    	httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true
    
    	language: "en",
    	logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
    	timeFormat: 24,
    	units: "metric",
    	// serverOnly:  true/false/"local" ,
    	// local for armv6l processors, default
    	//   starts serveronly and then starts chrome browser
    	// false, default for all NON-armv6l devices
    	// true, force serveronly mode, because you want to.. no UI on this device
    
    	modules: [
    		{
    			module: "alert",
    		},
    		{
    			module: "updatenotification",
    			position: "top_bar"
    		},
    		{
    			module: "clock",
    			position: "top_left"
    		},
    		{
    			module: "calendar",
    			header: "US Holidays",
    			position: "top_left",
    			config: {
    				calendars: [
    					{
    						symbol: "calendar-check",
    						url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"					}
    				]
    			}
    		},
    		{
    			module: "compliments",
    			position: "lower_third"
    		},
    		{
    			module: "currentweather",
    			position: "top_right",
    			config: {
    				location: "New York",
    				locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
    				appid: "YOUR_OPENWEATHER_API_KEY"
    			}
    		},
    		{
    			module: "weatherforecast",
    			position: "top_right",
    			header: "Weather Forecast",
    			config: {
    				location: "New York",
    				locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
    				appid: "YOUR_OPENWEATHER_API_KEY"
    			}
    		},
    
    		{
    			module: "newsfeed",
    			position: "bottom_bar",
    			config: {
    				feeds: [
    					{
    						title: "New York Times",
    						url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
    					}
    				],
    
    
    
    				showSourceTitle: true,
    				showPublishDate: true,
    				broadcastNewsFeeds: true,
    				broadcastNewsUpdates: true
    			}
    		},
    	
    
    {
      module: "MMM-GoogleAssistant",
      position: "fullscreen_above",
      config: {
        debug: false,
        assistantConfig: {
          lang: "en-US",
          projectId: "", // Required to use gaction.
          modelId: "", // (OPTIONAL for gaction)
          instanceId: "", // (OPTIONAL for gaction)
          latitude: 51.508530,
          longitude: -0.076132,
        },
        responseConfig: {
          useScreenOutput: true,
          screenOutputCSS: "screen_output.css",
          screenOutputTimer: 5000,
          screenRotate: false,
          activateDelay: 250,
          useAudioOutput: true,
          useChime: true,
          newChime: false,
          useNative: true,
          playProgram: "mpg321"
        },
        micConfig: { // put there configuration generated by auto-installer
          recorder: "arecord",
          device: "plughw:0",
        },
        snowboy: {
          useSnowboy: true,
          usePMDL: false,
          audioGain: 2.0,
          Frontend: true,
          Model: "jarvis",
          Sensitivity: null
        },
        A2DServer: {
          useA2D: true,
          stopCommand: "stop",
          useYouTube: true,
          youtubeCommand: "youtube",
          displayResponse: true
        },
        recipes: [ "with-MMM-TelegramBot.js" ],
        NPMCheck: {
          useChecker: true,
          delay: 10 * 60 * 1000,
          useAlert: true
        }
      }
    },
    
    {
      module: "MMM-Assistant2Display",
      position: "top_left",
      config: {
        debug:false,
        useYoutube: true,
        links: {
          useLinks: false,
          displayDelay: 60 * 1000,
          scrollStep: 25,
          scrollInterval: 1000,
          scrollStart: 5000,
          scrollActivate: false,
          verbose: false
        },
        photos: {
          usePhotos: true,
          displayDelay: 10 * 1000
        },
        volume: {
          useVolume: true,
          volumePreset: "ALSA",
          myScript: null
        },
        briefToday: {
          useBriefToday: false,
          welcome: "brief Today"
        },
        screen: {
          useScreen: false,
          delay: 5 * 60 * 1000,
          turnOffDisplay: true,
          mode: 1,
          ecoMode: true,
          displayCounter: true,
          displayBar: false,
          displayStyle: "Text",
          text: "Auto Turn Off Screen:",
          detectorSleeping: false,
          governorSleeping: false,
          displayLastPresence: true,
          LastPresenceText: "Last Presence:",
          delayed: 0
        },
        touch: {
          useTouch: false,
          mode: 3
        },
        pir: {
          usePir: false,
          gpio: 21,
          reverseValue: false
        },
        governor: {
          useGovernor: false,
          sleeping: "powersave",
          working: "ondemand"
        },
        internet: {
          useInternet: true,
          displayPing: false,
          delay: 2* 60 * 1000,
          scan: "google.fr",
          command: "pm2 restart 0",
          showAlert: true
        },
        cast: {
          useCast: false,
          castName: "MagicMirror_A2D",
          port: 8569
        },
        spotify: {
          useSpotify: false,
          useBottomBar: false,
          useLibrespot: false,
          connectTo: null,
          playDelay: 3000,
          minVolume: 10,
          maxVolume: 100,
          updateInterval: 1000,
          idleInterval: 10000,
          username: "",
          password: "",
          CLIENT_ID: "",
          CLIENT_SECRET: "",
          deviceDisplay: "Listening on",
          usePause: true,
          typeArtist: "artist",
          typePlaylist: "playlist",
          typeAlbum: "album",
          typeTrack: "track"
        },
        NPMCheck: {
          useChecker: true,
          delay: 10 * 60 * 1000,
          useAlert: true
        }
      }
    },
     
    	
    
    ]
    
    };
    
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== "undefined") {module.exports = config;}
    
    S 1 Reply Last reply Mar 5, 2021, 2:57 PM Reply Quote 0
    • S Offline
      sdetweil @youssef
      last edited by sdetweil Mar 5, 2021, 5:30 PM Mar 5, 2021, 2:57 PM

      @youssef

      ~~assistant2display is no longer supported. the author left mm over a year ago.

      this has been replaced by MMM-GoogleAssistant and Assistant2Display, by bugsounet.~~

      he does support on his own forum

      https://bugsounet.forums.fr

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • Y Offline
        youssef
        last edited by Mar 5, 2021, 3:56 PM

        @sdetweil thanx for your reponse ,

        Yes, if you see in my script I’m using the MMM-googleassistant + Assistant2Display

        be993cb2-f551-4d2e-ad7c-760af1e5e0a4-image.png

        1 Reply Last reply Reply Quote 0
        • Y Offline
          youssef
          last edited by Mar 5, 2021, 4:22 PM

          @sdetweil can you troubleshoot with me please?

          S 1 Reply Last reply Mar 5, 2021, 4:49 PM Reply Quote 0
          • S Offline
            sdetweil @youssef
            last edited by Mar 5, 2021, 4:49 PM

            @youssef no, sorry, no idea how the module works…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            Y 1 Reply Last reply Mar 5, 2021, 7:12 PM Reply Quote 0
            • Y Offline
              youssef @sdetweil
              last edited by Mar 5, 2021, 7:12 PM

              @sdetweil hello SAM thanks for your response I just reinstall the module it’s work

              S 1 Reply Last reply Mar 5, 2021, 7:28 PM Reply Quote 1
              • S Offline
                sdetweil @youssef
                last edited by Mar 5, 2021, 7:28 PM

                @youssef awesome. did u do anything different?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                Y 1 Reply Last reply Mar 5, 2021, 7:31 PM Reply Quote 0
                • Y Offline
                  youssef @sdetweil
                  last edited by Mar 5, 2021, 7:31 PM

                  @sdetweil I just reinstall Assistant2display

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  1 / 1
                  • First post
                    6/9
                    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