Send HTTP Post from Control Tab

Hello-

I'm looking to add a button to the control tab which sends an HTTP POST command to my automation system to turn on my lights when I access the webcam view when printing in the dark.

Any examples on how I might go about adding the button to call my service? Any help would be appreciated.

Thanks!

So here's an example of webhooks.

And here's an example of how to put buttons on the control tab using the getAdditionalControls callback, look in the javascript file.

You could also technically do the call in a separate script and use system command editor to add a menu item to the system menu.

Great thanks for the quick reply. I’m going to give these a go now!

Thanks for the direction, I was able to get this going using a script and the system command editor as you suggested.

For others looking to do something similar this link was also helpful.