Http Post from Macro
-
As mentioned in my other post, the ability to execute an http post in a macro would be very useful. In my case I want to trigger some IoT stuff on my network when my filament sensor calls pause.g so I get a notification that my print stopped and I can go fix it. This seems very straightforward considering the duet is already connected to my network and sending data all over the place. Would be great!
-
Bump
I would like to trigger a webhook so that I know when there is a jam or a print is done.
-
@ericlmccormick said in Http Post from Macro:
Bump
I would like to trigger a webhook so that I know when there is a jam or a print is done.Would using Telnet be a possibility for you?
Frederick
-
@fcwilt I don't think so but I don't have too much experience with telnet. I want to be able to setup a trigger via webhook so I can have it do things like have an announcement via my google home speakers that there is a jam and on what printer.
-
you could poll printers over http parse the status and send a http request as needed, but there isn't a ready made solution that doesn't requre some coding on some level (not yet at least)
-
@ericlmccormick said in Http Post from Macro:
@fcwilt I don't think so but I don't have too much experience with telnet. I want to be able to setup a trigger via webhook so I can have it do things like have an announcement via my google home speakers that there is a jam and on what printer.
Do you have a link to a site that would explain how to use the google home API?
It would be simple enough to write a Windows app that accepted a string from the Duet Telnet connection and output to a cloud based API if it uses something like JSON.
I would likely spend more time learning to use the API then I would actually coding the application.
Something for you to think about.
Frederick
-
I don't have a site and I don't want to use/write an app on widows to act as an extra middle man. Most of the time my computer is hibernating anyways.
If the duet could trigger a webhook, then I can use IFTTT do anything such as flicker the lights when done or send me a text message if there is an error.