signal exchange with an Arduino DUE / YUN-Shield

My intention is to link the Repetier-Server with an Arduino DUE / YUN-Shield to send a flag which is indicating the END of the printing process (Repetier-Server is running on a Raspberry-Pi). The Arduino unit is controlling an internal heating subsystem of the printer to heat up the processing box inside. The heating is an experimental auxillary equipment, which is recently on/off-switched by hand, so that the aime is to stop the heating after finishing the printing job automatically. Any ideas to pick-up such a flag from Repetier-Server?

Comments

  • Check online docs for lua modules. These can watch events per printer and more and can add any logic you want.
  • Thanks. But the information is a bit stub. The question is how and where to pick up the flag "printing end" exactly and how to loop it out?
  • You need to listen to events. See https://www.repetier-server.com/manuals/programming/API/index.html at the end for events available.

    jobFinished (0.60.2)
    Payload: {start:unixTime,duration:seconds,end:unixTime,lines:linesOfJob}
    Gets send after a normal job has finished.

    jobKilled (0.60.2)
    Payload: {start:unixTime,duration:seconds,end:unixTime,lines:linesOfJob}
    Gets send after a normal job has been killed.

    jobStarted (0.60.2)
    Payload: {start:unixTime}
    Gets send after a normal job has been started.

    are the one you might be interested in.
  • Many thanks for the moment, I think that this will help!
Sign In or Register to comment.