OctoPrint – changing WiFi AP
- Plug an Ethernet wire into the RaspberryPi (hearafter RPi), and power it up.
- Skip down to the section below headed “Configuring WiFi” and follow the instructions down as far as, but not including the NB heading, and come back here.
- you are going to reboot now – type sudo reboot now, and as soon as it starts to shutdown pull out the ethernet cable and wait (perhaps 2 mins) while your DNS allocates a new IP address, and octopi.local get’s reassigned to this new address.
- You can check all is well by clicking here -> http:/octopi.local.
- DONE!
OctoPrint – revised installation instructions
Useful Links
Preparing the uSD card
- My initial starting point: http://diy3dtech.com/octopi-and-octoprint-project/
- Download Etcher tool to your PC to flash the uSD card: https://etcher.io/
- Download the latest version of OctoPi from: https://octopi.octoprint.org/latest
- Use Etcher to copy the image to the SD card (can use .zip directly)
-
This took 7-8 minutes on my creaky old laptop to write and then validate the write. When it finished the PC suggests that the card needs formatting. Resist the urge to comply, or you will be sorry. Just eject the card.
Configure the rest on RPi
- A word of warning here… Don’t ever insert/remove the card when the RPi has power or you will be sorry.
- Plug an ethernet cable into the RPi
- Put the SD card in RPi and power it up.
Configuring WiFi
You should now be able to login remotely to the RPi. It seems to take a few minutes before the system is setup and registers itself with the DNS as octopi.local. If you get impatient then you’ll have to root around in your router to find out its IP address.
- Suggest you use putty to ssh to octopi.local credentials: pi/raspberry
-
when logged in, type the following commands:
cd /boot
ls
sudo nano octopi-wpa-supplicant.txt
- Use the arrow keys to scroll down to the line that says “## WPA/WPA2 secured”
- Using your considerable experience using screen editors change the following lines to look like this:
# WPA/WPA2 securednetwork={
ssid=”put your SSID here”
psk=”put your WiFi password here”
}
- Control-O, followed by ‘<cr>’ to write out the changed file
- Control-X will exit nano
Editing the file using the RaspberryPi nano screen editor
N.B.
- Now reboot the RPi using the command
sudo reboot now
- Now unplug the ethernet wire and see if you can connect to the RPi again. It may be a minute or two before your router is ready. This time you can use the browser to connect.
Configuring OctoPi
- Go to http://octopi.local. You should see the “setup wizard”.
- Follow the setup instructions
- I disabled access control, but I changed my password to something short ‘p’ 🙂
- I enabled anonymous usage reporting
- Enable connectivity check
- Enable plugin blacklist processing
- Skipped the Cura profile
- Set up the printer profile: General and Build Volume
Here’s what I typed in in the order it was demanded
Prusa i3 (original)MK2.5rectangularlower leftyes250mm210mm200mmX: 0/250, Y: -4/210, Z: 0/200 6000 mm/min 6000 mm/min 200 mm/min 300 mm/min 0.4 mm1
Setting up OctoLapse
https://github.com/FormerLurker/Octolapse/wiki/Installation
https://www.youtube.com/watch?v=CjOIxKxb3h8 GREAT VIDEO!
- This may not be required if video streamer working already
sudo git clone https://github.com/FFmpeg/FFmpeg.git - Open and sign into Octoprint.
- Click the settings icon (wrench icon)at the top of the page.
- Select the ‘Plugin Manager’ link on the left side of the settings popup.
- Click on the ‘Get More…’ button towards the bottom of the Plugin Manager page.
- Type ‘octolaps’ (without the ‘e) into the search box and click ‘Intall’ when the Octolapse plugin appears.
- After installation is complete, follow the prompts to restart Octoprint.
- After OctoPrint reloads clear your browser’s cache (instructions vary by browser, but typically pressing ctrl+f5 will work).
- OctoPrint Settings (spanner)/Octolapse/Main/Edit Main Settings scroll down to “Snapshot time” and untick it. Save, and get back to the OctoLapse Main Menu
- Select your printer from the printer dialog
Now the tedious bit
Get the Printer tab visible in the slic3r on the left.
Copy the extruder parameters across to Octolapse.
Set the Snapshot Command to G4 P1
When Octolapse sees one of these commands go by it triggers the camera, so we have to tell OctoPrint to generate this sequence at the right time. We do this in the SLic3r Printer Settings. Note that we need to be in Expert mode to be able to change the Custom G-Codes. We add G4P1 (no space) on the end of the “After layer change G-code”.
Now we have to set up the stabilization parameters in Octolapse. There are a bunch of clever options, but “Extruder at Back Left” is simple and brings the model forward for the snapshot.
Next we setup the Snapshot thingummy to tell it to expect a signal using GCode.
Now we have to tell it the output speed of the video. I’m not sure if there is always one snapshot per frame in the output. They suggest 40 fps, but 15fps seems a more sedate pace, and it can be speeded up with post processing if required.
Setting up the Camera
The 8080 in the address is going to be the port of the camera service. So if we type our server address with the port 8080 we will see the output of the camera.
Here’s what I see:
This is the place we focus on to get the camera set up for the run.
** Subroutine: Some more putty work **
Before doing anything else go back to the PuTTY remote shell connected to octopi.local. Login and use cd to the /boot directory.
cd /boot
sudo nano octopi.txt
scroll down to the end of the file and make these changes. There is a permission issue if you don’t do this before the next bit.
The most important parameter is the Snapshot Delay. This delay allows the who rig to stop shaking around before the picture is taken. Shorter durations may be OK.
Octolapse on the left and real-time video view on the right |
You just have to fiddle with these to get them right. Hit “Apply Now” to see how the video is affected.
JPEG to 100 is good.
Always turn autofocus OFF and adjust it in the box below
Here’s some parameters that worked for the image below:
Other Useful Plugins
Bed Visualizer
Bed level visualizer |
OctoPrint-EmergencyStop
The emergency stop button |
OctoPrint-TabOrder
OctoPrint-TempBar
Can’t make it work!
OctoPrint-FloatingNavbar
Another no go! Shame because it would be useful.
MQTT Publish
To be figured out.
WebCamTab
Themeify – note this is installed last!
Full width OctoPrint Window |
Settings to set up above Octoprint window config |