It would be great if we could have an M-code that would allow us to send a network request to another machine on the network. Use cases would be:
- Triggering another machine to take an image for a timelapse
- Triggering an alert when a print is finished/cooled off/faulted
- Trigger an alert for manual filament change
- etc
I think we could do this via either via http or mqtt. http is probably a more mainstream option, but mqtt is perhaps a lighter-weight option to consider.
The ideal M-code would take both a destination (http url or mqtt topic) as well as a string payload. I think it would be fine to limit the payload to a static string - the remote endpoint could then call back to the existing API to get whatever data it needs.
I am definitely interested in helping to implement this, but figured it best to check in for strategy guidance before I go too deep.
thanks!