• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

How do you develop locally and push to the Pi?

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 4 Posters 4.9k Views 3 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.
  • M Offline
    MattG
    last edited by Feb 7, 2017, 3:11 AM

    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 Offline
      onetwankyfive
      last edited by Feb 7, 2017, 5:45 AM

      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 Feb 8, 2017, 4:40 AM Reply Quote 0
      • B Offline
        broberg Project Sponsor
        last edited by Feb 7, 2017, 6:37 AM

        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
        • S Offline
          Snille Module Developer
          last edited by Snille Feb 7, 2017, 11:37 AM Feb 7, 2017, 11:36 AM

          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 Offline
            MattG @onetwankyfive
            last edited by MattG Feb 8, 2017, 4:42 AM Feb 8, 2017, 4:40 AM

            @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 Feb 8, 2017, 6:28 AM Reply Quote 0
            • O Offline
              onetwankyfive @MattG
              last edited by Feb 8, 2017, 6:28 AM

              @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 Feb 9, 2017, 2:14 AM Reply Quote 0
              • M Offline
                MattG @onetwankyfive
                last edited by Feb 9, 2017, 2:14 AM

                @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
                1 / 1
                • First post
                  3/7
                  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