shutdown
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| shutdown [2024/11/27 09:51] – torte | shutdown [2025/01/21 12:20] (current) – torte | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Sovol SV06+ (mostly) ===== | + | {{page> |
| - | ==== Klipper Shutdown ==== | + | https:// |
| + | {{page> | ||
| + | ---- | ||
| + | |||
| + | ====== Sovol SV06+/SV07+ (mostly) | ||
| + | ===== Klipper Shutdown | ||
| + | ===== Windows version ===== | ||
| ---- | ---- | ||
| Line 12: | Line 18: | ||
| ---- | ---- | ||
| - | For the experienced: | + | ==== Shutdown using scripts ==== |
| I am using a set of batch files to power my printer on and off safely by first sending a " | I am using a set of batch files to power my printer on and off safely by first sending a " | ||
| - | What you need: | + | (Actually it is first checked, if the device is powered on (reacts to " |
| + | |||
| + | These scripts are not limited to Sovol' | ||
| + | |||
| + | ==== Requirements ==== | ||
| * HS110 wifi power plug | * HS110 wifi power plug | ||
| * Putty " | * Putty " | ||
| Line 26: | Line 36: | ||
| * modified / | * modified / | ||
| - | The files: | + | ==== The files ==== |
| * '' | * '' | ||
| * '' | * '' | ||
| * '' | * '' | ||
| * '' | * '' | ||
| + | * '' | ||
| - | These 4 files need to be put into the same directory. | + | These 5 files need to be put into the same directory. |
| If nothing went wrong, you should now be able to shutdown and power off the printer by executing '' | If nothing went wrong, you should now be able to shutdown and power off the printer by executing '' | ||
| Line 40: | Line 51: | ||
| ---- | ---- | ||
| - | === hs110_off.cmd === | + | ==== hs110_off.cmd |
| * Replace the " | * Replace the " | ||
| - | * See [[# | + | * See [[# |
| < | < | ||
| tplink_smartplug.py -t 192.168.1.60 -c off | tplink_smartplug.py -t 192.168.1.60 -c off | ||
| </ | </ | ||
| - | === hs110_on.cmd === | + | ==== hs110_on.cmd |
| * Replace the " | * Replace the " | ||
| - | * See [[# | + | * See [[# |
| < | < | ||
| tplink_smartplug.py -t 192.168.1.60 -c on | tplink_smartplug.py -t 192.168.1.60 -c on | ||
| </ | </ | ||
| - | === mks_poweroff.cmd === | + | ==== mks_poweroff.cmd |
| * Adjust PRINTER to the name or IP address of your KlipperScreen device | * Adjust PRINTER to the name or IP address of your KlipperScreen device | ||
| * Adjust PLINKCMD to match your putty installation. | * Adjust PLINKCMD to match your putty installation. | ||
| Line 63: | Line 74: | ||
| * Set PLINKKEY to match your generated ssh key. | * Set PLINKKEY to match your generated ssh key. | ||
| * Clear out PASSWORD | * Clear out PASSWORD | ||
| + | * For other hardware than Sovol' | ||
| + | * Adjust USERNAME, e.g. to '' | ||
| < | < | ||
| @echo off | @echo off | ||
| Line 69: | Line 82: | ||
| set PRINTER=mkspi | set PRINTER=mkspi | ||
| + | set USERNAME=mks | ||
| set PLINKCMD=c: | set PLINKCMD=c: | ||
| set PLINKKEY= | set PLINKKEY= | ||
| Line 94: | Line 108: | ||
| :LOGIN | :LOGIN | ||
| - | %PLINKCMD% %OPTPW% %OPTKEY% -batch | + | %PLINKCMD% %OPTPW% %OPTKEY% -batch |
| </ | </ | ||
| - | === shutdown_sv06.cmd === | + | ==== shutdown_sv06.cmd |
| * Adjust PRINTER to the name or IP address of your KlipperScreen device | * Adjust PRINTER to the name or IP address of your KlipperScreen device | ||
| < | < | ||
| Line 138: | Line 152: | ||
| ---- | ---- | ||
| - | === For the advanced: Passwordless login and shutdown using ssh key and visudo === | + | ===== Advanced: Passwordless login and shutdown using ssh key and visudo |
| - | Prepare | + | ==== Preparing |
| * Start '' | * Start '' | ||
| * Select the " | * Select the " | ||
| Line 161: | Line 175: | ||
| * Press '' | * Press '' | ||
| - | Test the ssh key: | + | ==== Testing |
| * Open a command prompt | * Open a command prompt | ||
| - | * Adjust the paths to plink and the saved key, and replace " | + | * Adjust the paths to plink and the saved key, and replace " |
| * When you connect first, plink will ask to save a fingerprint. Press " | * When you connect first, plink will ask to save a fingerprint. Press " | ||
| * You should now be logged into the KlipperScreen without any further input/ | * You should now be logged into the KlipperScreen without any further input/ | ||
| - | Prepare | + | ==== Preparing |
| * Execute '' | * Execute '' | ||
| * Append following line in the editor that just opened: | * Append following line in the editor that just opened: | ||
| Line 177: | Line 191: | ||
| ---- | ---- | ||
| - | === Troubleshooting === | + | ===== Troubleshooting |
| * HS110 not turning on or off | * HS110 not turning on or off | ||
| * Ensure that the IP-address of the HS110 is correctly set in '' | * Ensure that the IP-address of the HS110 is correctly set in '' | ||
| Line 187: | Line 201: | ||
| * Adjust '' | * Adjust '' | ||
| * '' | * '' | ||
| + | |||
| + | ===== Linux version ===== | ||
| + | Linux versions of these scripts are [[shutdown_linux|available here]]. | ||
| ---- | ---- | ||
| Back to [[start]] | Back to [[start]] | ||
shutdown.1732697473.txt.gz · Last modified: 2024/11/27 09:51 by torte
