Page 1 of 1

Trigger to open a URL?

PostPosted: Sun Mar 07, 2021 6:06 pm
by tricksel
Hi guys,

It seems a simple question, but I haven't been able to find this.
Is it possible to open a URL -in the background, e.g. via curl- from within a trigger? I want to use this to be able to use PushCut notifications.

Thanks in advance!

Patrick

Re: Trigger to open a URL?

PostPosted: Sun Mar 07, 2021 7:27 pm
by FlyingDiver
Create an action in the trigger of type "Execute Script" (See screenshot).
Code: Select all
import requests
requests.get('https://api.github.com/events')


Change the GitHub URL to your PushCut one,.

Re: Trigger to open a URL?

PostPosted: Mon Mar 08, 2021 2:52 pm
by tricksel
That works, thanks!

Re: Trigger to open a URL?

PostPosted: Mon Mar 08, 2021 7:15 pm
by mattyf
Thank you!!!!!