Skip to content

Commit

Permalink
Updating Prusaprint setup, still not complete
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottGibb committed Nov 19, 2024
1 parent 4987dd7 commit 054d73d
Show file tree
Hide file tree
Showing 5 changed files with 192 additions and 10 deletions.
83 changes: 75 additions & 8 deletions PrusaPrint/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,23 @@
For Prusaprint, the setupOctoprint.sh should be called and the following docker stacks are enabled:

- utils
- networking

## Setup Octoprint

As for setting up Octoprint, the script setupOctoprint.sh will need to be run along the extra installs section of this ReadMe.md

### Restoring Backup and Plugins

You will also need to reinstall the plugins and the Octoprint configuration. This is done through the Octoprint UI and the following files:
You will also need to reinstall the plugins. This is done through the Octoprint plugin manager UI and the following files:

- plugin_list.json
- octopi-backup-xxx.zip

It is recommended you do it, by first installing the plugins then applying the backup file, sadly the backup file cant be VC on GitHub so it can be found on the NAS.

### Installing the Spool Manager Plugin

Its best to install the Spool Manager using Scott Gibbs Fork listed [here](https://github.com/ScottGibb/OctoPrint-SpoolManager)
Simply upload it and it will do the rest of installing them.

### Installing the Docker Stack

You will also need to install Docker on the Raspbian image too.
Run the following commands to set up and take down the PrusaPrint Stack:

```bash
Expand All @@ -36,6 +33,75 @@ bash docker-compose.sh --up # Bring down Stack

### Extra Installs

#### Docker

Required for the rest of the home lab network, will need to install docker engine and then run the docker compose.

#### LED Strip Controller

Required for turning off and on the lights, you will have to enter the following into scripts outputs of the enclosure plugin

Turn On the Lights

```bash
~/LED-Strip-Controller-Octoprint/scripts/TurnOnLights.sh
```

Turn off the Lights

```bash
~/LED-Strip-Controller-Octoprint/scripts/TurnOffLights.sh
```

#### Setup DHT11 Sensor

To setup the Enclosure Temp and Humidity Sensor you will have to set up the Enclosure plugin for input using the following configuration:

```bash
sudo apt install libgpiod2
python3 -m pip install adafruit-circuitpython-dht
```

You should then be able to run the following [script](./testDHT11.py)

#### Telegram

When setting up the Telegram plugin, you will have to set up the botfather token and thent talk to the bot, to enable all the features.

You will also need to add the following to before and after the camera takes a photo:

Turn On the Lights

```bash
~/LED-Strip-Controller-Octoprint/scripts/TurnOnLights.sh
```

Turn off the Lights

```bash
~/LED-Strip-Controller-Octoprint/scripts/TurnOffLights.sh
```

This is so that the images are actually seeable in the dark.

#### Octolapse

The scripts within octolapse have to be from the root level and cant use `~`, thus the scripts are as follows:

```bash
/home/pi/LED-Strip-Controller-Octoprint/scripts/TurnOffLights.sh

/home/pi/LED-Strip-Controller-Octoprint/scripts/TurnOnLights.sh
```

![alt text](./docs/octolapse_settings.png)

#### Spoolman

![alt text](./docs/spoolman_settings.png)

#### Octodash

As for extra installs, Octodash cant be installed using the plugin manager and the following command must be used:

```bash
Expand All @@ -46,4 +112,5 @@ bash <(wget -qO- https://github.com/UnchartedBull/OctoDash/raw/main/scripts/inst

- [OctoDash](https://github.com/UnchartedBull/OctoDash/wiki/Installation)
- [Camera Module V3 Autofocus Settings](https://community.octoprint.org/t/manual-raspi-camera-v3-webcam-auto-focus/53025)
- [DH11 Not showing up on GUI](https://github.com/vitormhenrique/OctoPrint-Enclosure/issues/435)
- [DHT11 Not showing up on GUI](https://github.com/vitormhenrique/OctoPrint-Enclosure/issues/435)
- [DHT11 Setup](https://pimylifeup.com/raspberry-pi-dht11-sensor/)
Binary file added PrusaPrint/docs/octolapse_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PrusaPrint/docs/spoolman_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
117 changes: 116 additions & 1 deletion PrusaPrint/plugin_list.json
Original file line number Diff line number Diff line change
@@ -1 +1,116 @@
[{"key": "wifistatus", "name": "WiFi Status", "url": "https://github.com/ManuelMcLure/OctoPrint-WiFiStatus", "archive": "https://github.com/ManuelMcLure/OctoPrint-WiFiStatus/archive/main.zip"}, {"key": "prusaslicerthumbnails", "name": "Slicer Thumbnails", "url": "https://github.com/jneilliii/OctoPrint-PrusaSlicerThumbnails", "archive": "https://github.com/jneilliii/OctoPrint-PrusaSlicerThumbnails/archive/master.zip"}, {"key": "PrintJobHistory", "name": "PrintJobHistory", "url": "https://github.com/OllisGit/OctoPrint-PrintJobHistory", "archive": "https://github.com/OllisGit/OctoPrint-PrintJobHistory/releases/latest/download/master.zip"}, {"key": "preheat", "name": "Preheat Button", "url": "https://github.com/marian42/octoprint-preheat", "archive": "https://github.com/marian42/octoprint-preheat/archive/master.zip"}, {"key": "powerfailure", "name": "Power Failure Recovery", "url": "https://github.com/pablogventura/OctoPrint-PowerFailure", "archive": "https://github.com/pablogventura/OctoPrint-PowerFailure/archive/master.zip"}, {"key": "tplinksmartplug", "name": "TP-Link Smartplug", "url": "https://github.com/jneilliii/OctoPrint-TPLinkSmartplug", "archive": "https://github.com/jneilliii/OctoPrint-TPLinkSmartplug/archive/master.zip"}, {"key": "telegram", "name": "Telegram Notifications", "url": "https://github.com/fabianonline/OctoPrint-Telegram", "archive": "https://github.com/fabianonline/OctoPrint-Telegram/archive/master.zip"}, {"key": "SpoolManager", "name": "SpoolManager Plugin", "url": "https://github.com/OllisGit/OctoPrint-SpoolManager", "archive": "https://github.com/OllisGit/OctoPrint-SpoolManager/releases/latest/download/master.zip"}, {"key": "resource_monitor", "name": "Resource Monitor", "url": "https://github.com/Renaud11232/OctoPrint-Resource-Monitor", "archive": "https://github.com/Renaud11232/OctoPrint-Resource-Monitor/archive/master.zip"}, {"key": "PrintTimeGenius", "name": "PrintTimeGenius Plugin", "url": "https://github.com/eyal0/OctoPrint-PrintTimeGenius", "archive": "https://github.com/eyal0/OctoPrint-PrintTimeGenius/archive/master.zip"}, {"key": "prettygcode", "name": "PrettyGCode", "url": "https://github.com/Kragrathea/OctoPrint-PrettyGCode", "archive": "https://github.com/Kragrathea/OctoPrint-PrettyGCode/archive/master.zip"}, {"key": "plotlytempgraph", "name": "Plotly Temp Graph", "url": "https://github.com/jneilliii/OctoPrint-PlotlyTempGraph", "archive": "https://github.com/jneilliii/OctoPrint-PlotlyTempGraph/archive/master.zip"}, {"key": "multicam", "name": "MultiCam", "url": "https://github.com/mikedmor/OctoPrint_MultiCam", "archive": "https://github.com/mikedmor/OctoPrint_MultiCam/archive/master.zip"}, {"key": "mqtt", "name": "MQTT", "url": "https://github.com/OctoPrint/OctoPrint-MQTT", "archive": "https://github.com/OctoPrint/OctoPrint-MQTT/archive/master.zip"}, {"key": "homeassistant", "name": "HomeAssistant Discovery", "url": "https://github.com/cmroche/OctoPrint-HomeAssistant", "archive": "https://github.com/cmroche/OctoPrint-HomeAssistant/archive/master.zip"}, {"key": "excluderegion", "name": "Exclude Region", "url": "https://github.com/bradcfisher/OctoPrint-ExcludeRegionPlugin", "archive": "https://github.com/bradcfisher/OctoPrint-ExcludeRegionPlugin/archive/master.zip"}, {"key": "enclosure", "name": "Enclosure Plugin", "url": "https://github.com/vitormhenrique/OctoPrint-Enclosure", "archive": "https://github.com/vitormhenrique/OctoPrint-Enclosure/archive/master.zip"}, {"key": "dashboard", "name": "Dashboard", "url": "https://github.com/j7126/OctoPrint-Dashboard", "archive": "https://github.com/j7126/OctoPrint-Dashboard/archive/master.zip"}, {"key": "costestimation", "name": "Cost Estimation", "url": "https://github.com/OllisGit/OctoPrint-CostEstimation", "archive": "https://github.com/OllisGit/OctoPrint-CostEstimation/releases/latest/download/master.zip"}, {"key": "camerasettings", "name": "Camera Settings", "url": "https://github.com/The-EG/OctoPrint-CameraSettings", "archive": "https://github.com/The-EG/OctoPrint-CameraSettings/archive/main.zip"}, {"key": "octolapse", "name": "Octolapse", "url": "https://github.com/FormerLurker/Octolapse", "archive": "https://github.com/FormerLurker/Octolapse/archive/master.zip"}, {"key": "octodashcompanion", "name": "OctoDash Companion", "url": "https://github.com/jneilliii/OctoPrint-OctoDashCompanion", "archive": "https://github.com/jneilliii/OctoPrint-OctoDashCompanion/archive/master.zip"}, {"key": "octoapp", "name": "OctoApp", "url": "https://github.com/crysxd/OctoApp-Plugin/", "archive": "https://github.com/crysxd/OctoApp-Plugin/archive/refs/heads/release.zip"}, {"key": "DisplayLayerProgress", "name": "DisplayLayerProgress Plugin", "url": "https://github.com/OllisGit/OctoPrint-DisplayLayerProgress", "archive": "https://github.com/OllisGit/OctoPrint-DisplayLayerProgress/releases/latest/download/master.zip"}, {"key": "bedlevelvisualizer", "name": "Bed Visualizer", "url": "https://github.com/jneilliii/OctoPrint-BedLevelVisualizer", "archive": "https://github.com/jneilliii/OctoPrint-BedLevelVisualizer/archive/master.zip"}, {"key": "bedcheckai", "name": "Bed Check AI", "url": "https://github.com/printpal-io/OctoPrint-BedCheckAI", "archive": "https://github.com/printpal-io/OctoPrint-BedCheckAI/archive/master.zip"}, {"key": "detailedprogress", "name": "Detailed Progress", "url": "https://github.com/tpmullan/OctoPrint-DetailedProgress", "archive": "https://github.com/tpmullan/OctoPrint-DetailedProgress/archive/master.zip"}, {"key": "arc_welder", "name": "Arc-Welder", "url": "https://github.com/FormerLurker/ArcWelderPlugin", "archive": "https://github.com/FormerLurker/ArcWelderPlugin/archive/master.zip"}]
[
{
"key": "wifistatus",
"name": "WiFi Status",
"url": "https://github.com/ManuelMcLure/OctoPrint-WiFiStatus",
"archive": "https://github.com/ManuelMcLure/OctoPrint-WiFiStatus/archive/main.zip"
},
{
"key": "prusaslicerthumbnails",
"name": "Slicer Thumbnails",
"url": "https://github.com/jneilliii/OctoPrint-PrusaSlicerThumbnails",
"archive": "https://github.com/jneilliii/OctoPrint-PrusaSlicerThumbnails/archive/master.zip"
},
{
"key": "powerfailure",
"name": "Power Failure Recovery",
"url": "https://github.com/pablogventura/OctoPrint-PowerFailure",
"archive": "https://github.com/pablogventura/OctoPrint-PowerFailure/archive/master.zip"
},
{
"key": "tplinksmartplug",
"name": "TP-Link Smartplug",
"url": "https://github.com/jneilliii/OctoPrint-TPLinkSmartplug",
"archive": "https://github.com/jneilliii/OctoPrint-TPLinkSmartplug/archive/master.zip"
},
{
"key": "telegram",
"name": "Telegram Notifications",
"url": "https://github.com/fabianonline/OctoPrint-Telegram",
"archive": "https://github.com/fabianonline/OctoPrint-Telegram/archive/master.zip"
},
{
"key": "Spoolman",
"name": "Spoolman",
"url": "https://github.com/mdziekon/octoprint-spoolman",
"archive": "https://github.com/mdziekon/octoprint-spoolman/archive/master.zip"
},
{
"key": "resource_monitor",
"name": "Resource Monitor",
"url": "https://github.com/Renaud11232/OctoPrint-Resource-Monitor",
"archive": "https://github.com/Renaud11232/OctoPrint-Resource-Monitor/archive/master.zip"
},
{
"key": "prettygcode",
"name": "PrettyGCode",
"url": "https://github.com/Kragrathea/OctoPrint-PrettyGCode",
"archive": "https://github.com/Kragrathea/OctoPrint-PrettyGCode/archive/master.zip"
},
{
"key": "plotlytempgraph",
"name": "Plotly Temp Graph",
"url": "https://github.com/jneilliii/OctoPrint-PlotlyTempGraph",
"archive": "https://github.com/jneilliii/OctoPrint-PlotlyTempGraph/archive/master.zip"
},
{
"key": "multicam",
"name": "MultiCam",
"url": "https://github.com/mikedmor/OctoPrint_MultiCam",
"archive": "https://github.com/mikedmor/OctoPrint_MultiCam/archive/master.zip"
},
{
"key": "mqtt",
"name": "MQTT",
"url": "https://github.com/OctoPrint/OctoPrint-MQTT",
"archive": "https://github.com/OctoPrint/OctoPrint-MQTT/archive/master.zip"
},
{
"key": "homeassistant",
"name": "HomeAssistant Discovery",
"url": "https://github.com/cmroche/OctoPrint-HomeAssistant",
"archive": "https://github.com/cmroche/OctoPrint-HomeAssistant/archive/master.zip"
},
{
"key": "excluderegion",
"name": "Exclude Region",
"url": "https://github.com/bradcfisher/OctoPrint-ExcludeRegionPlugin",
"archive": "https://github.com/bradcfisher/OctoPrint-ExcludeRegionPlugin/archive/master.zip"
},
{
"key": "enclosure",
"name": "Enclosure Plugin",
"url": "https://github.com/vitormhenrique/OctoPrint-Enclosure",
"archive": "https://github.com/vitormhenrique/OctoPrint-Enclosure/archive/master.zip"
},
{
"key": "dashboard",
"name": "Dashboard",
"url": "https://github.com/j7126/OctoPrint-Dashboard",
"archive": "https://github.com/j7126/OctoPrint-Dashboard/archive/master.zip"
},
{
"key": "octolapse",
"name": "Octolapse",
"url": "https://github.com/FormerLurker/Octolapse",
"archive": "https://github.com/FormerLurker/Octolapse/archive/master.zip"
},
{
"key": "octodashcompanion",
"name": "OctoDash Companion",
"url": "https://github.com/jneilliii/OctoPrint-OctoDashCompanion",
"archive": "https://github.com/jneilliii/OctoPrint-OctoDashCompanion/archive/master.zip"
},
{
"key": "octoapp",
"name": "OctoApp",
"url": "https://github.com/crysxd/OctoApp-Plugin/",
"archive": "https://github.com/crysxd/OctoApp-Plugin/archive/refs/heads/release.zip"
},
{
"key": "bedlevelvisualizer",
"name": "Bed Visualizer",
"url": "https://github.com/jneilliii/OctoPrint-BedLevelVisualizer",
"archive": "https://github.com/jneilliii/OctoPrint-BedLevelVisualizer/archive/master.zip"
}
]
2 changes: 1 addition & 1 deletion PrusaPrint/setupOctoprint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ echo "Finished Installation"
# Installing Libcamera.conf
echo "Copying over libcamera config"
cp libcamera.conf /boot/camera-streamer/libcamera.conf
echo "Finsihing Libcamera config"
echo "Finishing Libcamera config"

# Overwriting getDHTTemp.py
echo "Overwriting getDHTTemp.py"
Expand Down

0 comments on commit 054d73d

Please sign in to comment.