hhammarstrand / moonraker-ngrok

A plugin for Moonraker to be able to access Mainsail remotely and thus control your 3D-printer remotely
1 stars 0 forks source link
3d-printing 3dprinting

moonraker-ngrok

Want to access Mainsail or Fluidd from outside of your network?

This plugin for Moonraker helps you do that using ngrok

Installing the plugin

ssh into your pi (built in to terminal in most linux flavors and MacOS, if you are on win you can use PuTTY)

Example ssh for MainsailOS:

ssh pi@mainsailos.local

Example ssh for FluiddPI:

ssh pi@fluiddpi.local

Default password: raspberry

Then use the following commands to install

cd
git clone https://github.com/hhammarstrand/moonraker-ngrok.git
cd moonraker-ngrok
sh ./scripts/install.sh

Configuration

The easiest way is to use the web gui and edit the file moonraker_ngrok_config.sh that is located in the config folder of Mainsail/Fluidd

There is a few settings that you can change:

Setting Description
ngrok_auth Needed! You can find yours at this link
Port If you are using MainsailOS/FluiddPI you shouldn't need to change port.
ngrok_hostname Hostname is only changeable if you have a paid account
ngrok_username This is not your ngrok login details. These are the credentials you would like to use to login in to Mainsail remotely
ngrok_password This is not your ngrok login details. These are the credentials you would like to use to login in to Mainsail remotely
ngrok_region Choose the region closest to you. Availible regions: us, eu, ap, au, sa, jp, in

After providing your details you need to reboot the pi and your tunnel should be up and running. You can find your tunnels in your dashboard.