Coder Social home page Coder Social logo

connectandprint's People

Contributors

defozo avatar gm-rebricker avatar maxinger15 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

connectandprint's Issues

Automatic update fails

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.

Can't update, "cannot detect archive format"

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

File upload Prusa -> OctoPrint -> don't connect

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?)

Feature request: Add PSU control

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.

Automatic update failed

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

Plugin Update Broken

I had issues updating previously, saw the closed issues about blowing out the old install and reinstalling from scratch. Did that and now this is what I see in OctoPrint Software Update:
connect and print screenshot

Thank you!

Thanks for making this, such a subtle annoyance that I encountered literally every time I went to print directly from PrusaSlicer to Octoprint.

What does this Connect and Print do?

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.

Not printing or responding to uploads

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?

Ensure compatibility with PSU Control

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.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.