Send Status
Hello! I need help. We have a 3D printer that uses the Repetier-Server. And we have a website that needs to know when printing is complete. How can I send status about work finished with curl or something else? I mean, the Repetier server must send status to this, not the website, to request it. The initiator must be the Repetier Server
Comments
Other solutions are also possible, e.g. writing a lua module that monitors parts of interest and that send messages on these events. But this requires more skills then the simple web actions.
Thanks for that feature! Very usefull. But i had a problem. When i write body of post in web actions, after saving my text just gone. So after saving every time post data is empty
Can u tell me when update will done? That week?
Could we use beta version tomorrow?
Could we send data from gcode in post request? For example, can we send "total filament cost = 0.0"?
You can not use references from the print or informations. You can use parameter $1 $2 in the server command but they must already contain the value you want to send.
How i can get beta version? In interface -> check updates, last version 0.94.0 only
And can u explain what is parameters $1? I mean, this param should be in gcode? Or we need set it in repetier-server somewhere?
then $1 gets replace by p1 and $2 by p2 before being send. This of course does not work with web actions in menu - they can not have parameter. Only server commands can add parameter for the call.
We paste gcode trigger (;@webAction Print Done) to end of gcode file, but after print end, this action not execute. But we try execute it from global menu and menu of web actions and this command work normal. Can u explain what we do wrong?
Our fault, sorry. Working good
Can u tell pls, if we want send variable from gcode (for example ; bed_temperature = 0), what we should write in ;@webAction in gcode, for send name and value of variable?
In action config you then write:
http://myurl?message=$$1
$$ is to encode it correctly as url parameter otherwise spaces and equal sign make problems here
Thank you so much!! We got what we wanted to do. I appreciate your help. Good luck!