well, that wakeonlan module seems the way to go if you do make a plugin, just make that a dependency in plugin_requires of setup.py of your plugin and add a SimpleApiPlugin mixin to receive the button press from the UI side. Happy to help with any troubleshooting once you start making the plugin.
octoprint_wakeonlan.zip (5.1 KB)
I made this plugin with the help of chat-gpt, it downloads fine but doesn't take effect. in the logs it says "site-packages/octoprint_wake_on_lan/init.py", line 58
from future import absolute_import
SyntaxError: from future imports must occur at the beginning of the file"
any ideas?
try adding # coding=utf-8
on the first line of your init.py file.
try this one...not really sure if it will load or work, but should have all the pieces...
OctoPrint-Wakeonlan.zip (8.4 KB)
You don't need these futures imports if you're only working with Python 3. They are a legacy from Python 2 & 3 compatibility days where importing this on Python 2 would activate the Python 3 style imports. I'd recommend removing them.
after 2 years 6 months and 13 days I think we can finally put this thread to rest.
This was a huge learning opportunity, thank you all! OctoPrint-Wakeonlan PlugIn
You're welcome. Looks like your plugin is exactly what I provided, based on yours and tweaked to load properly.