@DIY-O-Sphere said in New M-code to send a network request:
that it's not required.
You can use the PS_ON pin to switch the printer of.
Or a more current solution....
Thanks for the input. I was hoping to avoid having to turn on a node-red flow when I am printing and not have to buy more hardware but your input made me think around it a couple of more turns and I think I have come up with a workable solution.
I do not have a separate PSU for 5v as I plan to run the board only when the printer is turned on but I do have a smart home controller.
I'll simply activate the node-red flow every time the smart plug for the printer is turned on and turn it off after having ensured the printer is turned off. The smart plug was anyhow needed to shut the printer down when ready and I can also measure the power I consume for printing