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.

    MM on Ubuntu

    Scheduled Pinned Locked Moved Solved Troubleshooting
    90 Posts 4 Posters 50.5k Views 4 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.
    • S Offline
      sdetweil @goncalovsc
      last edited by

      @goncalovsc good, now edit the ~/MagicMirror/config/config.js and add the info for the two weather modules

      then do pm2 restart 0

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      G 1 Reply Last reply Reply Quote 0
      • G Offline
        goncalovsc @sdetweil
        last edited by

        @sdetweil I opened the file and its already edited. I think its using the old files

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @goncalovsc
          last edited by

          @goncalovsc no… if u moved the folder as in the instructions it would have pulled down a whole new copy

          show output of

          pm2 status
          pm2 show 0
          pm2 show 1
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            goncalovsc @sdetweil
            last edited by

            @sdetweil I´ve ran exactly the commands that you said

            Sorry cant copy paste
            https://gyazo.com/623dd157c791ea2edc6c1526502a2927
            https://gyazo.com/b6df9267fe1b7fd23dd8b5afc18226d4
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @goncalovsc
              last edited by sdetweil

              @goncalovsc weird

              show

              cd MagicMirror/config 
              ls -laF 
              nano config.js
              

              ctrl-x to get out of nano

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              G 1 Reply Last reply Reply Quote 0
              • G Offline
                goncalovsc @sdetweil
                last edited by

                @sdetweil Here the file isnt edited, its just like the sample :thinking_face:

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @goncalovsc
                  last edited by sdetweil

                  @goncalovsc as expected… u can do

                  cd ~/MagicMirror/config
                  cp ~/MagicMirror.old/config/config.js .
                  nano config.js
                  

                  verify changes in config file

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  G 1 Reply Last reply Reply Quote 0
                  • G Offline
                    goncalovsc @sdetweil
                    last edited by

                    @sdetweil said in MM on Ubuntu:

                    cp ~/MagicMirror.old/config/config.js .

                    When

                    cp ~/MagicMirror.old/config/config.js .
                    

                    Its says file or directory doesnt exist

                    — btw — edited on nano the file and worked

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @goncalovsc
                      last edited by

                      @goncalovsc said in MM on Ubuntu:

                      Its says file or directory doesnt exist

                      oops, typo on my previous command

                      ~/MagucMirror.old
                      

                      — btw — edited on nano the file and worked

                      woohoo…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      G 2 Replies Last reply Reply Quote 0
                      • G Offline
                        goncalovsc @sdetweil
                        last edited by

                        @sdetweil now it opened, what im supposed to do with this one? How can i replace the old files? Its a bit weird seeing them on the GUI and cant edit them

                        S 1 Reply Last reply Reply Quote 0
                        • G Offline
                          goncalovsc @sdetweil
                          last edited by

                          @sdetweil and btw, how can i solve this?
                          https://gyazo.com/02cd494d4c3777805806e0c2be69a533
                          already changed from UTF-8 to the other thats on the config but same result

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @goncalovsc
                            last edited by

                            @goncalovsc u don’t need to do anything with the old ones… u edited the new one…

                            if there is nothing else in the old, throw it away

                            cd ~/
                            rm -rf MagucMirror.old
                            

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            G 1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil @goncalovsc
                              last edited by

                              @goncalovsc sorry, no idea on the RSS feed

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                goncalovsc @sdetweil
                                last edited by

                                @sdetweil deleted magucmirror.old and everything went back to zero, all the changes i´ve made :/

                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @goncalovsc
                                  last edited by

                                  @goncalovsc what?

                                  pm2 stop 0
                                  cd ~/MagicMirror
                                  npm start
                                  

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  G 1 Reply Last reply Reply Quote 0
                                  • G Offline
                                    goncalovsc @sdetweil
                                    last edited by

                                    @sdetweil Probably i was editing on the wrong files. Already re-edited on the correct ones. Thanks for your kind help

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      dwburger
                                      last edited by

                                      My MM2 is running well under Ubuntu 18.04. I’ve installed pm2 and that works as well to start/stop MM2. However, I’m not able to get pm2 to work when using crontab. My crontab script looks like this:

                                      40 * * * * pm2 restart mm.sh

                                      so I can restart MM2 at 40 minutes after each hour. I don’t really plan to restart MM2 that often, I just want to get this working. I don’t know my way around Linux well enough to figure out what’s wrong. Can anyone point me to solution or an approach to one? Thanks!

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @dwburger
                                        last edited by

                                        @dwburger what does crontab say when i tries to launch pm2?

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          dwburger
                                          last edited by

                                          Well…I learned something. I didn’t know about crontab logs and I found this command to try:

                                          sudo grep CRON /var/log/syslog

                                          When I did that I found this line on the end of the log:

                                          Apr 24 10:40:01 dave-ubuntu CRON[2931]: (CRON) info (No MTA installed, discarding output)

                                          I guess I need to install an MTA???

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @dwburger
                                            last edited by

                                            @dwburger said in MM on Ubuntu:

                                            (CRON) info (No MTA installed, discarding output)

                                            see the last answer here
                                            https://superuser.com/questions/445347/why-is-my-crontab-not-running

                                            but that doesn’t some why pm2 was not executed
                                            note that you saved the pm2 config as user pi, and cron will run as root

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 4 / 5
                                            • 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