LaserWeb / LaserWeb4

Collaborative effort on the next version of LaserWeb / CNCWeb
GNU Affero General Public License v3.0
706 stars 191 forks source link

Send messages if job is done #604

Closed Dane809 closed 4 years ago

Dane809 commented 4 years ago

Is there an option like mqtt or something like that to send a message at the end of a job?

cprezzi commented 4 years ago

There is an option to run shell commands at jobStart, jobAbort or jobEnd. This only works with the source version of lw.comm-server, but not with the compiled installer (exe)!

You just need to add one of the following lines to config.js in the installation folder:

config.jobOnStart = 'your command';
config.jobOnFinish = 'your command';
config.jobOnAbort = 'your command';
Dane809 commented 4 years ago

Thx, that´s what i´m searching for