Code Monkey home page Code Monkey logo

Comments (6)

LuxuSam avatar LuxuSam commented on July 24, 2024

Hi,

I don't think I can do something about this as you cannot send Gcode to the printer when it's not connected to Octoprint. I hand the Gcode commands to Octoprint, which is then responsible to deliver them to the printer.
Or am I not understanding your problem? If no, please attach the octoprint.log file (with debug level enabled for physicalbutton) when you reproduce the bug.

Cheers,

from physicalbutton.

UlliMUC avatar UlliMUC commented on July 24, 2024

Thanks for this quiek reply!

I interrupt the power supply to the printer via a relay. Is it possible for octoprint to automatically connect to the printer as soon as it has power? octoprint doesn't need the web interface to communicate with the printer, does it?

use case: the printer is in a different room to the computer. I want to change the filament. Switch on the printer, walk to the other room, connect octoprint, walk back, press the button to increase the temperature...isn't there an easier way?

from physicalbutton.

LuxuSam avatar LuxuSam commented on July 24, 2024

Octoprint does not need the web interface to be open.

Do you use my plugin to trigger the relay? If yes, put a connect action into the activity list behind the output activity.
If not, i'd say that you could try to place a connect activity just in front of the gcode.

Maybe the gcode activity has to be delayed until the printer has fully connected. Then you could (as a workaround) put a synchronous output activity after the connect activity and select a pin of the raspi you are not using. You have to set the time to a bit more than start time of the printer and connect time.

from physicalbutton.

LuxuSam avatar LuxuSam commented on July 24, 2024

Or you add a single button that just handles connecting to the printer

from physicalbutton.

UlliMUC avatar UlliMUC commented on July 24, 2024

Thanks for your hints!!

I'm trying to send the "connect" command 9 seconds after the printer relay closes. unfortunately this doesn't work as expected:
image

from physicalbutton.

LuxuSam avatar LuxuSam commented on July 24, 2024

Yes, for the fake delay to work you have to specify a gpio pin that you are not using on your board. In my code the output activity is ignored when gpio is set to none.
But it would definitely make sense for me to add a delay activity for this use case. I bet there are other cases where this could be useful.

from physicalbutton.

Related Issues (20)

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.