Comments (6)
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.
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.
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.
Or you add a single button that just handles connecting to the printer
from physicalbutton.
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:
from physicalbutton.
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)
- Button action on Raspi startup HOT 2
- [QUESTION] Run a system command HOT 7
- [FEATURE] Prevent button execution while printing HOT 17
- [FEATURE] Temporarily disable a button? HOT 6
- [FEATURE] Add button on navbar HOT 2
- [FEATURE] Add more actions HOT 1
- [FEATURE] GCODE Toggle button HOT 2
- [BUG] OctoPrint enters Safe Mode after enabling Physical Button plugin (only for the first time) HOT 1
- increase or decrease bed- or hotendtemp HOT 1
- [FEATURE] Short and Long press functions for ONE physical button HOT 1
- [QUESTION] Sometimes save doesn't save changes HOT 3
- [FEATURE] USB HOT 1
- [BUG] Plugin fails to install Octoprint 1.9.2 HOT 1
- Doesn't work on new installation HOT 9
- [QUESTION] How to setup keyboard hot keys HOT 1
- [QUESTION] Does this support Waveshare 2.7" HAT on Raspberry Pi? HOT 1
- Cannot Install - "Install Unknown" HOT 4
- [FEATURE] toggle power HOT 2
- Not Working After Install HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from physicalbutton.