maxinger15 / connectandprint Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
Currently the automatic update via Octoprint won't work.
This will be fixed in the next release.
For now a workaround:
Delete the plugin with the plugin manager and install it again.
When trying to update the plugin from 1.0 to 1.2, both via GUI and via terminal, I get this error:
ERROR: Cannot unpack file /tmp/pip-unpack-478ft3x3/connectandprint.py (downloaded from /tmp/pip-req-build-0xumz_mt, content-type: text/plain; charset=utf-8); cannot detect archive format
ERROR: Cannot determine archive format of /tmp/pip-req-build-0xumz_mt
I upload a file from Prusa Slicer to Octoprint.
The file is in file list in octoprint.
Octoprint don't connect to printer.
If the printer is already connected and I do in Prusa "upload and print" then the print starts.
I don't know if this information is helpful.
(is it possible to talk here in german?)
Hi, thanks for your work, this plugin can help start printer in one click in slicer, but in my case i use OctoPrint PSU Control and Physical Button plugins to power ON printer PSU before print.
Can please you add support of option "Toggle PSU before print", it may be as GPIO command like
raspi-gpio set <GPIO> [options]
or use OctoPrint PSU Control API call
curl -s -H "Content-Type: application/json" -H "X-Api-Key: API_KEY" -X POST -d '{ "command":"turnPSUOn" }' http://127.0.0.1/api/plugin/psucontrol
to detect PSU status i check GPIO pin status /bin/sh -c "if [ $(gpio read 7) -eq 0 ] ; then exit 1; else exit 0; fi"
so no need toggle if printer is already ON.
I think this functions can make plugin more popular.
While updated most recent version update failed.
Updating, please wait.
+++++++++++++++++++++++++++++++++++++++
Now updating Connect And Print to 1.2.0
+++++++++++++++++++++++++++++++++++++++
/home/pi/oprint/bin/python -m pip --disable-pip-version-check install https://raw.githubusercontent.com/Maxinger15/connectandprint/1.2.0/connectandprint.py --no-cache-dir
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting https://raw.githubusercontent.com/Maxinger15/connectandprint/1.2.0/connectandprint.py
Downloading https://raw.githubusercontent.com/Maxinger15/connectandprint/1.2.0/connectandprint.py (3.2 kB)
ERROR: Cannot unpack file /tmp/pip-unpack-z3aaqym6/connectandprint.py (downloaded from /tmp/pip-req-build-66f5qa6v, content-type: text/plain; charset=utf-8); cannot detect archive format
ERROR: Cannot determine archive format of /tmp/pip-req-build-66f5qa6v
The update did not finish successfully. Please consult octoprint.log
and plugin_softwareupdate_console.log
for details.
octoprint-logs.zip
octoprint-logs.zip
Thanks for making this, such a subtle annoyance that I encountered literally every time I went to print directly from PrusaSlicer to Octoprint.
Hi, I saw this new plugin and I am wondering what it does exactly that we don't have yet. Or maybe this is just to have an alternative option to the existing things.
For instance. I slice my parts on Cura, and after, it offers me to Print with Octoprint
button.
Then, after clicking this button, it uploads the sliced object (GCode) to the printer.
It turns the PSU of the printer on, but the serial is already connected since it is connected through the Raspberry Pi.
Then, after it starts to print.
After the print ends, it waits a bit and then turns the PSU off.
I just installed Connectandprint but it doesn't seem to be working for me.
I upload a file to .octoprint/uploads using scp and it shows up under files in the web interface.
However, it fails to initiate printing or do anything for that matter.
I turned on logging at 'debug' level for the plugin and this is all I see:
2023-08-04 01:40:54,558 - octoprint.plugins.pluginmanager - INFO - Installing single file plugin connectandprint.py from https://raw.githubusercontent.com/Maxinger15/connectandprint/master/connectandprint.py | !Connect And Print (1.2.0) = /home/octopi/.octoprint/plugins/connectandprint.py | Connect And Print (1.2.0) = /home/octopi/.octoprint/plugins/connectandprint.py 2023-08-04 01:42:08,387 - octoprint.plugins.softwareupdate - ERROR - Could not check connectandprint for updates KeyError: 'connectandprint' 2023-08-04 02:01:07,431 - octoprint.plugins.logging - INFO - Setting logger octoprint.plugins.connectandprint level to 10 | Connect And Print (1.2.0) = /home/octopi/.octoprint/plugins/connectandprint.py 2023-08-04 02:01:54,323 - octoprint.plugins.connectandprint - DEBUG - PSU-Control not available, skipping registration
Any idea what I might be doing wrong?
Judging from the readme, your plugin is supposed to work with PSU Control, powering on the printer via that plugin. PSU Control itself already supports a mechanism to connect to the printer after powering it on and also start the print job afterwards. Although it seems to have some problems form time to time starting the job.
I hope your plugin can solve these problems. In order to have it working correctly with PSU Control, what settings do I need to take in PSU Control to make sure both plugins don't interfere with each other?
These are my current settings that work when using just PSU Control.
I noticed that the plugin starts the print when I click on "Upload" in PrusaSlicer.
Can we instead make it so it connects to the printer and starts the print only when I click "Upload and Print"?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.