What is OctoPrint?
OctoPrint provides a snappy web interface for controlling consumer 3D printers. -https://github.com/OctoPrint/OctoPrint
Installation
- Log into the Windows device
- Download Python v3.11.x Download
- Download Visual Studio Build Tools Download
- Run the downloaded VS Build Tools installer
- Select Individual components from the top left > Filter the list to C++ x64/x86 build tools > Check the box next to the option for x64/x86 build tools (Latest)
- Filter the list to Windows SDK > Check the box next to the option for the latest Windows SDK > Click Install at the bottom right
- Once the installation completes close VS Build Tools installer
- Run the downloaded Python installer
- Select the options to Use Admin privileges and Add python.exe to PATH > Click Customize installation
- Check the pip, py launcher and for all users options > Click Next
- Check the top five options, set the install location to C:\Program Files\Python > Click Install
- Launch PowerShell as Administrator
- Run the following commands in PowerShell
# create octoprint path
New-Item -Path 'C:\apps\octoprint' -ItemType Directory -Force | Out-Null
# change directory to the new path
cd 'C:\apps\octoprint'
# create and activate the virtual environment
python -m venv .\octo-venv
.\octo-venv\Scripts\activate
# install wheel
pip install --upgrade pip wheel
# install octoprint
pip install octoprint
# run octoprint
.\octo-venv\Scripts\octoprint.exe serve - If prompted, allow Python to have network access
- Open a web browser and navigate to http://DNSorIP:5000
Run OctoPrint on System Startup
- Press CTRL + C to kill the running OctoPrint process
- Open a text editor and paste the following
:: Start OctoPrint server
cd /D "%~dp0"
start "octoprint" /b "C:\apps\octoprint\octo-venv\Scripts\octoprint.exe" serve - Save the file as startup.bat in the OctoPrint directory, C:\apps\OctoPrint in this example
- Click on the Start Button > Type task > Launch Task Scheduler
- Right click the Task Scheduler Library folder in the left pane > Create Basic Task...
- Set the name to OctoPrint and optionally set a Description > Click Next
- For the Trigger, select When the computer starts > Click Next
- For the Action, select Start a program > Click Next
- Complete the form fields as follows:
Program/script: "C:\apps\octoprint\startup.bat"
Add arguments:
Start in: - Click Next
- Check the Open the Properties dialog checkbox > Click Finish
- In the Properties dialog, click the Change User or Group... button
- Type System in the Object name field > Click OK
- Click OK to create the scheduled task
- Right click the OctoPrint task > Run
- Refresh the open web browser to verify OctoPrint is now running from the scheduled task
- Click Next on the Start screen
- Click Next on the Restore Backup screen
- Create an account my entering a Username and entering and confirming a password > Click Create Account
- Once the account is created, click Next
- Choose to Enable or Disable the Connectivity Check > Click Next
- Choose to Enable or Disable Anonymous Usage Tracking > Click Next
- Choose to Enable or Disable the Plugin Blacklist > Click Next
- Click Next on the Webcam Wizard screen
- Click Next on the Default Printer Profile screen
- Click Next on the Server Commands screen
- Acknowledge all the messages on the Finish screen > Click Finish
- Welcome to OctoPrint
Source: https://community.octoprint.org/t/setting-up-octoprint-on-windows/383