@Danal Awesome! Thank you.
Latest posts made by GrumpyTacos
-
RE: Duet Web Control - Make REST Call
Hi Danal,
Thank you for the reply. Understood and agree on the firmware reaching out as a bad idea. I was looking for DWC (Not RRF) to make a REST API call to an external target. From the description of DWC it seems like it has the REST client capabilities as it's used to interact with RRF, but maybe this is my confusion.
My goal is to have a Macro that makes a REST POST to the REST-API of a smart PDU. That PDU will switch off the outlet for the printers PowerSupply. In my imagination, this is all DWC related, not RRF.
-
Duet Web Control - Make REST Call
Hi, can DWC make a REST Call to an external server, say a smart PDU? I understand that there is no REST API for DWC itself. But I get a bit confused when I read about DWC using REST to communicate with the RepRap firmware:
"It is designed to communicate with RepRapFirmware using WebSockets and RESTful HTTP requests."
Ref: https://github.com/chrishamm/DuetWebControlPlease help clarify my confusion.
Ideally, I could define a macro that would make these external REST calls.