MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. youssef
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Y
    Offline
    • Profile
    • Following 1
    • Followers 0
    • Topics 3
    • Posts 19
    • Groups 0

    Posts

    Recent Best Controversial
    • Control MMM-mp3player with MMM-GoogleAssistant

      Hello, can I control MMM-mp3player with MMM-GoogleAssistant ?

      posted in Troubleshooting
      Y
      youssef
    • RE: MMM-assistant2display youtube video

      @sdetweil I just reinstall Assistant2display

      posted in General Discussion
      Y
      youssef
    • RE: MMM-assistant2display youtube video

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

      posted in General Discussion
      Y
      youssef
    • RE: MMM-assistant2display youtube video

      @sdetweil can you troubleshoot with me please?

      posted in General Discussion
      Y
      youssef
    • RE: MMM-assistant2display youtube video

      @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

      posted in General Discussion
      Y
      youssef
    • RE: MMM-assistant2display youtube video

      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;}
      
      posted in General Discussion
      Y
      youssef
    • MMM-assistant2display youtube video

      Hello, I have a problem with MMM-assistant2display after the voice command they don’t display video.

      d374bc26-3ab4-47ac-802b-37239ed788c2-image.png

      posted in General Discussion
      Y
      youssef
    • RE: ./node_modules/.bin/electron js / electron.js Problem

      @sdetweil said in ./node_modules/.bin/electron js / electron.js Problem:

      weir

      Hello,

      it’s work, thank you for your support can you please explain to me what was the isssue.

      posted in Troubleshooting
      Y
      youssef
    • RE: ./node_modules/.bin/electron js / electron.js Problem

      @sdetweil said in ./node_modules/.bin/electron js / electron.js Problem:

      I am fixing install and run scripts…
      testing now…

      thanx i wait four your order to test the script …

      posted in Troubleshooting
      Y
      youssef
    • RE: ./node_modules/.bin/electron js / electron.js Problem

      @sdetweil thanks for your support

      can i install mm on debian 64 bit ?

      posted in Troubleshooting
      Y
      youssef
    • RE: ./node_modules/.bin/electron js / electron.js Problem

      @sdetweil

      yes i’m using graphical desktop

      posted in Troubleshooting
      Y
      youssef
    • RE: ./node_modules/.bin/electron js / electron.js Problem

      @sdetweil

      they give the same result ,

      pi@raspberry:~/MagicMirror $ npm install electron

      up to date, audited 1112 packages in 6s

      88 packages are looking for funding
      run npm fund for details

      5 vulnerabilities (4 low, 1 moderate)

      To address all issues (including breaking changes), run:
      npm audit fix --force

      Run npm audit for details.
      pi@raspberry:~/MagicMirror $ npm start

      magicmirror@2.14.0 start
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

      sh: 1: ./node_modules/.bin/electron: not found
      ![alt text](image url)

      posted in Troubleshooting
      Y
      youssef
    • RE: ./node_modules/.bin/electron js / electron.js Problem

      @sdetweil said in ./node_modules/.bin/electron js / electron.js Problem:

      npm install electron@8.5.3

      Below you find the result

      pi@raspberry:~/MagicMirror $ npm install electron@8.5.3
      npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
      npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
      npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
      npm WARN deprecated @babel/polyfill@7.12.1: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
      npm WARN deprecated gitlab@10.2.1: The gitlab package has found a new home in the @gitbeaker organization. For the latest gitlab node library, check out @gitbeaker/node. A full list of the features can be found here: https://github.com/jdalrymple/gitbeaker#readme
      npm WARN deprecated webdriverio@4.14.4: outdated version, please use @next
      npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

      added 813 packages, and audited 1112 packages in 20s

      88 packages are looking for funding
      run npm fund for details

      5 vulnerabilities (4 low, 1 moderate)

      To address all issues (including breaking changes), run:
      npm audit fix --force

      Run npm audit for details.
      pi@raspberry:~/MagicMirror $ npm start

      magicmirror@2.14.0 start
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

      sh: 1: ./node_modules/.bin/electron: not found
      pi@raspberry:~/MagicMirror $

      posted in Troubleshooting
      Y
      youssef
    • RE: ./node_modules/.bin/electron js / electron.js Problem

      @sdetweil thanx for your response

      install starting - Tue Mar 2 04:00:50 HST 2021
      installing on x86_64 processor system
      the os is Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster
      Updating packages …
      Get:1 http://security.debian.org buster/updates InRelease [65.4 kB] Hit:2 http://ftp.debian.org/debian buster InRelease Hit:3 http://archive.raspberrypi.org/debian buster InRelease Get:4 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB] Get:5 http://ftp.debian.org/debian buster-updates InRelease [51.9 kB] Hit:6 https://deb.nodesource.com/node_11.x buster InRelease Get:7 http://packages.microsoft.com/repos/code stable/main arm64 Packages [16.0 kB] Get:8 http://packages.microsoft.com/repos/code stable/main armhf Packages [15.8 kB] Get:9 http://packages.microsoft.com/repos/code stable/main amd64 Packages [15.4 kB] Fetched 175 kB in 2s (72.7 kB/s) Reading package lists…
      apt-get update completed ok
      apt-get upgrade started
      apt upgrade result =rc=0 Reading package lists…
      Building dependency tree…
      Reading state information…
      Calculating upgrade…
      The following packages have been kept back:
      linux-headers-amd64:amd64 linux-image-amd64:amd64
      0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
      Installing helper tools …
      Reading package lists…
      Building dependency tree…
      Reading state information…
      build-essential is already the newest version (12.6).
      curl is already the newest version (7.64.0-4+deb10u1).
      git is already the newest version (1:2.20.1-2+deb10u3).
      unzip is already the newest version (6.0-23+deb10u2).
      wget is already the newest version (1.20.1-1.1).
      wget set to manually installed.
      0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
      Check current Node installation …
      Node currently installed. Checking version number.
      Minimum Node version: v10.1.0
      Installed Node version: v10.24.0
      No Node.js upgrade necessary.
      Check current NPM installation …
      NPM currently installed. Checking version number.
      Minimum npm version: V6.0.0
      Installed npm version: V7.6.0
      No npm upgrade necessary.
      Cloning MagicMirror …
      Cloning MagicMirror Done!
      package.json update for x86 fontface completed ok
      Installing dependencies …
      Dependencies installation Done!
      setting up initial config.js
      Check plymouth installation …
      Splashscreen: Checking themes directory.
      Splashscreen: Create theme directory if not exists.
      Splashscreen: Changed theme to MagicMirror successfully.
      install and setup pm2
      pm2 not installed, installing
      pm2 install result npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) added 201 packages, and audited 202 packages in 19s 9 packages are looking for funding run npm fund for details found 0 vulnerabilities
      get the pm2 platform specific startup command
      startup command = sudo env PATH=$PATH:/usr/bin:/bin /usr/local/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi

                          -------------
      

      /\\\\\\_/\\/\\/\\\\_
      _/\/////////\_/\\\
      /\\\/\///////\_
      /\_
      /\_/\//\_/\//\_/////\_
      _/\\\\\\/
      /\\///\/\/
      /\_
      /\/
      /\/////////
      /\_
      ///\/
      /\_/\//_____
      /\_
      /\_////\_____/\//_____
      /\_/\_/\_/\/__________
      /\_/\_/\_/\\\\\\\_
      _////////////////////////

                            Runtime Edition
      
          PM2 is a Production Process Manager for Node.js applications
                       with a built-in Load Balancer.
      
                  Start and Daemonize any application:
                  $ pm2 start app.js
      
                  Load Balance 4 instances of api.js:
                  $ pm2 start api.js -i 4
      
                  Monitor in production:
                  $ pm2 monitor
      
                  Make pm2 auto-boot at server restart:
                  $ pm2 startup
      
                  To go further checkout:
                  http://pm2.io/
      
      
                          -------------
      

      [PM2] Init System found: systemd
      Platform systemd
      Template
      [Unit]
      Description=PM2 process manager
      Documentation=https://pm2.keymetrics.io/
      After=network.target

      [Service]
      Type=forking
      User=pi
      LimitNOFILE=infinity
      LimitNPROC=infinity
      LimitCORE=infinity
      Environment=PATH=$PATH:/usr/bin:/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
      Environment=PM2_HOME=/home/pi/.pm2
      PIDFile=/home/pi/.pm2/pm2.pid
      Restart=on-failure

      ExecStart=/usr/local/lib/node_modules/pm2/bin/pm2 resurrect
      ExecReload=/usr/local/lib/node_modules/pm2/bin/pm2 reload all
      ExecStop=/usr/local/lib/node_modules/pm2/bin/pm2 kill

      [Install]
      WantedBy=multi-user.target

      Target path
      /etc/systemd/system/pm2-pi.service
      Command list
      [ ‘systemctl enable pm2-pi’ ]
      [PM2] Writing init configuration in /etc/systemd/system/pm2-pi.service
      [PM2] Making script booting at startup…

      Executing: systemctl enable pm2-pi…

      [PM2] [v] Command successfully executed.
      ±--------------------------------------+
      [PM2] Freeze a process list on reboot via:
      $ pm2 save

      [PM2] Remove init script via:
      $ pm2 unstartup systemd
      pm2 startup command done
      configure the pm2 config file for MagicMirror
      start MagicMirror via pm2 now
      save MagicMirror pm2 config now
      stop MagicMirror via pm2 now
      disable screensaver via gsettings was true and uint32 300
      disable screensaver via lightdm.conf
      disable screensaver via lxsession
      We’re ready! Run pm2 start MagicMirror from the ~/MagicMirror directory to start your MagicMirror.
      install completed - Tue Mar 2 04:04:51 HST 2021

      posted in Troubleshooting
      Y
      youssef
    • RE: ./node_modules/.bin/electron js / electron.js Problem

      @sdetweil thanks for responding

      I try with your scrip they give the same error

      44438cdb-08a0-4ef7-b041-9f27a041eff7-image.png

      posted in Troubleshooting
      Y
      youssef
    • RE: ./node_modules/.bin/electron js / electron.js Problem

      @sdetweil thanks for your response again

      uname -m give me this result x86_64

      29f87250-a425-48eb-a5e4-0dea1465a8ff-image.png

      posted in Troubleshooting
      Y
      youssef
    • RE: ./node_modules/.bin/electron js / electron.js Problem

      @sdetweil said in ./node_modules/.bin/electron js / electron.js Problem:

      unamed -m

      posted in Troubleshooting
      Y
      youssef
    • RE: ./node_modules/.bin/electron js / electron.js Problem

      @sdetweil thanks for your response

      it’s raspberry pi Desktop Version

      posted in Troubleshooting
      Y
      youssef
    • ./node_modules/.bin/electron js / electron.js Problem

      Hello

      when I try to start mm she give me this error msg

      can anyone help me please !

      f860d263-f976-40d4-82e3-f9ffeaf6bab5-image.png

      posted in Troubleshooting
      Y
      youssef
    • 1 / 1