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

    Posts

    Recent Best Controversial
    • RE: Is there a way to show specific compliments on specific dates?

      @CyanKali It should have replace all compliment. At that particular date.
      well, yesterday was the 26 right ? you let the 27 so I guess it just wasn’t the rigth date to activate.
      Try changing the date. (well, today must be the 27 so It should work today ahah).

      @pauabaer you could use the compliment module. add the thing I had and then go on the config.js file and replace all the compliments by empty strings so it will display nothing when not the date

                      {                                                                                                                                                                                                                            
                              module: "compliments",                                                                                                                                                                                               
                              position: "lower_third",                                                                                                                                                                                             
                              header: "",                                                                                                                                                                                                          
                              config: {                                                                                                                                                                                                            
                                      compliments: {                                                                                                                                                                                               
                                              anytime: [ "" ],                                                                                                                                                                                                   
                                              morning: [ "" ],                                                                                                                                                                                                   
                                              afternoon: [ "" ],                                                                                                                                                                                                   
                                              evening: [  "" ]                                                                                                                                                                                                    
                                      }                                                                                                                                                                                                            
                              }                                                                                                                                                                                                                    
                      },
      

      Or you could change the code so the module hide itself when the date isn’t right

              // Override dom generator.                                                                                                                                                                                                           
              getDom: function() {
                  var complimentText = this.randomCompliment();
                  if (moment().format('MMM D') == 'Apr 27')
                  {
                      this.show();
                      complimentText = "Happy birthday"
                  }
                  else
                      this.hide();
                  var compliment = document.createTextNode(complimentText);
                  var wrapper = document.createElement("div");
                  wrapper.className = this.config.classes ? this.config.classes : "thin xlarge bright";
                  wrapper.appendChild(compliment);
      
                      return wrapper;
              },
      
      posted in Troubleshooting
      romainR
      romain
    • RE: npm start error?

      @longod I don’t own a pi zero but I have few question.

      1. Were you on the MagicMirror folder when you did the npm start ?
      2. Were you directly on the pi using a usb keyboard (or equivalent) or were you on ssh ?

      If you were on the MagicMirror folder and you were directly on the pi I don’t know what the issue could be.
      If you wasn’t on the MagicMirror folder npm start won’t work.
      If you accessed your pi by ssh you need to use DISPLAY=:0 npm start command instead of npm start because graphical application need to know where they should be open. DISPLAY:0 mean the host machine (your pi)

      posted in Troubleshooting
      romainR
      romain
    • RE: MM does not boot when starting my raspberry

      @asquelo You probably did it wrong. I did that a lot few weeks ago.
      you need to run pm2 startup as non sudo. then it display a command you have to run. On my pi it’s the following :

      pi@raspberrypi:~ $ pm2 startup
      [PM2] Init System found: systemd
      [PM2] You have to run this command as root. Execute the following command:
      sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi
      

      so you run the command that was display. For me it’s sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi

      Then you pm2 start mm.sh , then you wait until it’s open (not sure if it’s necessary to actually wait). Then while it’s open, you run pm2 save. They you can reboot and see your mirror open.

      I used to run sudo pm2 startup and don’t understand why it wasn’t working back in the day even though the autostart guide didn’t ask to do it…

      posted in Troubleshooting
      romainR
      romain
    • RE: MM does not boot when starting my raspberry

      @opensky727 did you put the sudo at the begining of the command ?
      It should loook like this
      sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi

      You should have the permission as sudo

      posted in Troubleshooting
      romainR
      romain
    • RE: MM does not boot when starting my raspberry

      @RE_Magic_Mirror Not that I know of but I am not an expert in linux configuration.

      But if your issue is about “seeing” the desktop, I might have some tricks for you.
      Maybe you could change you desktop wallpaper to be a black screen for started and take away the trash icon so the desktop part is black and empty.
      Then you could right click on the panel barr above your screen and enter the panel settings and play around with them to make the barre itself invisible and then take away the unnecessary icons on it.
      It will not make your mirror start quicker but you won’t see the default wallpaper and menu as much

      posted in Troubleshooting
      romainR
      romain
    • 1 / 1