Trigger to open a URL?

Posted on
Sun Mar 07, 2021 6:06 pm
tricksel offline
Posts: 13
Joined: Jul 28, 2008
Location: Delft, The Netherlands

Trigger to open a URL?

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

Love doesn't hurt. Chuck Norris does.

Posted on
Sun Mar 07, 2021 7:27 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Trigger to open a URL?

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,.
Attachments
Screen Shot 2021-03-07 at 8.25.59 PM.jpg
Screen Shot 2021-03-07 at 8.25.59 PM.jpg (235.54 KiB) Viewed 1562 times

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Mar 08, 2021 2:52 pm
tricksel offline
Posts: 13
Joined: Jul 28, 2008
Location: Delft, The Netherlands

Re: Trigger to open a URL?

That works, thanks!

Love doesn't hurt. Chuck Norris does.

Posted on
Mon Mar 08, 2021 7:15 pm
mattyf offline
Posts: 58
Joined: Apr 15, 2013

Re: Trigger to open a URL?

Thank you!!!!!

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests