MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.25.0 is available! For more information about this release, check out this topic.

    How do you develop locally and push to the Pi?

    Troubleshooting
    4
    7
    4210
    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.
    • M
      MattG last edited by

      Sorry if this has been answered elsewhere. I did search, but wasn’t able to find anything. Please link me if it has been covered. Also, please understand I’m a total beginner.

      I’ve been experimenting with MM, and it’s been a lot of fun. Right now I have my Pi setup, and I SSH in via the terminal on my Mac. This has been working alright, but nano via terminal isn’t the greatest way to edit text as I experiment and learn how these modules work.

      I’ve gathered that it is possible to develop and see your changes on your local machine using a text editor and then push that code to the Pi. How? What would I need to setup on my Mac to do this?

      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • O
        onetwankyfive last edited by

        I use textwrangler and Netatalk:

        sudo apt-get install netatalk

        as far as I know u need to restart your mm pm2 everytime

        I also setup VNC to see it remotely but you can use the ipofthemm:8080 in your web browser as long as u setup whitelisting propperly

        M 1 Reply Last reply Reply Quote 0
        • broberg
          broberg Project Sponsor last edited by

          My self, I run a SMB share from my Pi so I can access the files directly via windows, then I just open and save the files over the network using an text editor.

          for an easy guide to setting up a samba share :
          http://www.howtogeek.com/176471/how-to-share-files-between-windows-and-linux/

          mac osx should also be able to find and use the smb shared folders

          1 Reply Last reply Reply Quote 1
          • Snille
            Snille Module Developer last edited by Snille

            I’m using Expandrive for lot’s of different connections to all kinds of systems. It support connecting a drive (in Windows) using SSH for example. So you can have full access to your RPi directly in windows. Very handy. However it’s not completely free ($50) for a single licence.
            http://www.expandrive.com/

            Then you don’t have to mess around with CIFS or Samba… 😉

            If you cant find it, make it and share it!
            Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

            1 Reply Last reply Reply Quote 0
            • M
              MattG @onetwankyfive last edited by MattG

              @onetwankyfive said in How do you develop locally and push to the Pi?:

              I use textwrangler and Netatalk:

              sudo apt-get install netatalk

              as far as I know u need to restart your mm pm2 everytime

              I also setup VNC to see it remotely but you can use the ipofthemm:8080 in your web browser as long as u setup whitelisting propperly

              @broberg @Snille Thanks for your response! I greatly appreciate it.

              Ultimately, I went with @onetwankyfive 's suggestion. For anyone interested, I googled the following tutorial to get netatalk up and going between my Pi and my Mac.

              http://raspberrypituts.com/access-raspberry-pi-files-in-your-os-x-finder/

              So now, my pi’s in one part of the house, and I’m in the other. I SSH into the Pi, connect up via netatalk to directly access my config (and whatever else) file, get to use my favorite text editor, and save my changes directly to the Pi.

              Finally, again per @onetwankyfive 's suggestion, I whitelisted my IP on the Pi, so now I can connect up in my browser and see it’s output. Awesome.

              One last question, if I can - When I view the output of the magicmirror via my ip:8080 in the browser, the modules overlap upon one another. They don’t seem to resize at all. Is this because I have my Pi rotated to vertical (portrait) mode? Any help with this, other than rotating the Pi output to horizontal?

              Cheers!

              O 1 Reply Last reply Reply Quote 0
              • O
                onetwankyfive @MattG last edited by

                @MattG use VNC

                https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi#enable-vnc

                then download vnc viewer for the mac

                M 1 Reply Last reply Reply Quote 0
                • M
                  MattG @onetwankyfive last edited by

                  @onetwankyfive

                  This is absolutely perfect. And I see you mentioned it before. Sorry for not reading as thoroughly as I should’ve. Thank you!!

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy