Read the statement by Michael Teeuw here.
How do you develop locally and push to the Pi?
-
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!
-
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
-
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
-
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… ;)
-
@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!
-
@MattG use VNC
https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi#enable-vnc
then download vnc viewer for the mac
-
This is absolutely perfect. And I see you mentioned it before. Sorry for not reading as thoroughly as I should’ve. Thank you!!