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.

    Modules assistance for MM newbie! Help!

    Scheduled Pinned Locked Moved Troubleshooting
    21 Posts 4 Posters 10.2k 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.
    • N Offline
      ninjabreadman @Fookes
      last edited by

      Hi @Fookes,

      I’ll try. This is what I use for adding modules:

      Ingredients

      • Text Editor (e.g. Atom) ‑ that supports syntax highlighting, code formatting, and won’t break your code (i.e. not MacOS’ TextEdit)
      • SFTP Client (e.g. FileZilla)
      • Terminal
      • VNC Client (optional)

      Directions

      1. Connect to your MM via ssh in Terminal (e.g. ssh 192.168.0.101), and in your ssh session do the following:
        a. Change directories to ~/MagicMirror/modules
        b. Download your module with git clone (e.g. git clone https://github.com/matteodanelli/MMM-cryptocurrency.git)
        c. This will create the folder for your module

      2. Connect with your SFTP Client to your MM
        a. Navigate to your ~/MagicMirror/config directory
        b. Tell the SFTP Client to open/edit your config.js with your Text Editor (this can sometimes be configured in File > Preferences) or by right-clicking the file (to select “Open with…”)
        c. Copy the config options from the module’s Git Readme.md, website, etc. that you want to use
        d. Paste the config options into config.js that is open in your Text Editor
        e. Save the file, and the SFTP Client will upload the file back to your MM

      3. In Terminal (still in ssh) run pm2 restart mm or npm start dev in ~/MagicMirror/.
        a. Have a look at your mirror to see that the changes took, or use a VNC Client to connect to and view your mirror

      Hope that helps. Let me know if you have any questions.

      Problem with config or JavaScript? Copy/paste it into JSHint.
      Check out the detailed walkthroughs on install, config, modules, etc.

      1 Reply Last reply Reply Quote 0
      • F Offline
        Fookes
        last edited by

        @ninjabreadman - Thanks, appreciate you doing this for me. In step one, I’m presuming you’re doing all of this on the Pi - not from a Mac or PC?

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          ninjabreadman @Fookes
          last edited by ninjabreadman

          @Fookes No problem. No, all of the above will be done from your separate Mac/PC. The directions explain how to use Terminal and SFTP Client to make changes as through you were in front of the machine. All of the apps (Text Editor, SFTP Client, and VNC Viewer) should be installed on your Mac/PC (read: not MM) remote machine.

          Otherwise, you can just follow the excellent How to add modules for absolute beginners thread which covers everything as done on the RPi.

          Problem with config or JavaScript? Copy/paste it into JSHint.
          Check out the detailed walkthroughs on install, config, modules, etc.

          1 Reply Last reply Reply Quote 0
          • F Offline
            Fookes
            last edited by

            @ninjabreadman - Thank you. I shall give it a go shortly and let you know how I get on! Thanks again!

            1 Reply Last reply Reply Quote 0
            • F Offline
              Fookes
              last edited by

              Hi @ ninjabreadman - Unbelievably I managed to follow your instructions to the letter! Sadly, it made no difference to the Pushbullet module I’m trying to add. As stated previously, the app ‘loads’ but constantly shows “No new Notifications”. I’ve put the relevant Pushbullet key in but it’s simply not displaying any messages.

              Do you have any thoughts or suggestions?

              Many thanks.

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 3
              • 2 / 3
              • 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