Code Monkey home page Code Monkey logo

Comments (9)

coldfire3000 avatar coldfire3000 commented on June 12, 2024

In case it helps, I edit the Gcode manually when doing colour changes. If you use an M0 command to pause then you will get a notification and you can use M70 to send a specific message. I requested this a few months ago:
#8

from octoprint-pushover.

thijsbekke avatar thijsbekke commented on June 12, 2024

Hello @kroyster, You are right the command M600 isn't supported by either this plugin or OctoPrint, when I was testing it by adding M600 too the list of waiting commands, I saw it triggers a waiting event instead of a Pause event @coldfire3000 mentioned.

gcodeToEvent = {
	# pause for user input
	"M226": Events.WAITING,
	"M0": Events.WAITING,
	"M1": Events.WAITING,
	"M600": Events.WAITING,

This plugin currently only supports the pause event (M0 and the M1) however I will create an update to support the Waiting event, and maybe I will try to support the M600 command (don't pin me on this).

I will keep you posted.

@coldfire3000 Which command are you using M0 or M600 ?

from octoprint-pushover.

coldfire3000 avatar coldfire3000 commented on June 12, 2024

I use the M0 and it works great for me :)

from octoprint-pushover.

kroyster avatar kroyster commented on June 12, 2024

from octoprint-pushover.

thijsbekke avatar thijsbekke commented on June 12, 2024

I implemented the wait event in this plugin. I recommend you use the M226 instead of the M600 or the M0. The M226 will (at least on my printer Prusa i3) raise and park the hotend, retract, make sound etc.

And with the latest release it will also send a Pushover notification, remember you have to enable this through the settings.

Can you please let me know if it doesn't work.

from octoprint-pushover.

kroyster avatar kroyster commented on June 12, 2024

from octoprint-pushover.

thijsbekke avatar thijsbekke commented on June 12, 2024

I hope it works otherwise someone has to ad the M600 to the util/comm.py file, maybe I will experiment with that later this week.

from octoprint-pushover.

kroyster avatar kroyster commented on June 12, 2024

I updated the plugin and new settings, but M226 did not work for me, as it is not implemented (as a pause) in the Marlin firmware. M600 is the only fully automated pause command that works for me, but I could not get it to trigger the Pushover notification. I did manually add a mapping for the M600 command to trigger a waiting state in the comm.py file, and rebooted octoprint, but it didn't seem to "take". So unfortunately I'm unable to confirm if this update works. M0 pauses and triggers the Pushover alert, but doesn't retract/park my print head, so it's not useful to me for filament changes unless I can figure out how to add those commands AND return it to it's pre-pause location to resume the print. Thank you though - I'm sure someone else will find this update helpful!

from octoprint-pushover.

kroyster avatar kroyster commented on June 12, 2024

Correction - I just noticed that I edited the /src/ version of comm.py, but there are various other versions in oprint/lib/*, including compiled python libraries. So I'm guessing I need to edit one of the other files and/or compile it. I tinker, but I'm not a developer, so it may take me a little digging to figure it out and give it another try.

from octoprint-pushover.

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.