thijsbekke / OctoPrint-Pushover

A Pushover plugin for OctoPrint
GNU General Public License v3.0
33 stars 21 forks source link

Feature: Pushover Macro(s) to be used in GCode #65

Open engelchrisi opened 3 years ago

engelchrisi commented 3 years ago

Hi.

at first a big thank your for the great plugin. Tip is coming. Wouldn't it be easier to allow users to use macros like

@PUSHOVER "this my message" Low .... or G999 "this my message" Low ....

at any point of time in the Gcode.

The idea came when I saw the new macro plugin. Code for intercepting macros or fake GCode commands. Then you do not need to add any kind of event, e.g. for reaching the temperatur, then someone could add a command at the end of his start script.

Here is some nice code from the macro plugin:

_def gcodequeueing( self, c, p, command, ct, g, subcode=None, tags=None, *args, **kwargs, ): if command.startswith("@"): ...

Thanks Christof