Trigger script upon 'mic on'

Hi all,

I would like to send a command to IFTTT when my mics are opened (channel 1 or 8 on Airlite is active). This is a simple webhook (URL to call). Is there a way to fire this from mAirlist?

Thanks,

Maarten

There is, indeed. It is described in German, though, but is working on English machines as well:

Hi,

Sorry to dust off an old thread but I can’t get this to work.

Ideally, I would like to enter the webhook URL in the D&R Airlite Remote settings:

But that doesn’t seem to work. I guess external commands are not possible here?

So, off course a background script would be an option. But I can’t find a procedure in Background Script Template that is called upon opening channel 1 on the Airlite.

Any additional help is appreciated!

Cheers,

Maarten

You are free to invent arbitrary Commands like MAARTEN ON or DR-CHANNEL1 SWITCH which trigger the background script OnExecuteCommand:

procedure OnExecuteCommand(Command: string);
begin
  if Command = 'MAARTEN ON' then
  begin
    // do something
  end;
end;

Thanks, did not know that!

Works great! Now to find a way to have the URL opened without a browser or cmd being visible… :slight_smile:

Greets,

Maarten

Within script:

ShellExecuteHidden('<command>', '<parameter/s>');
1 Like

No, rather use the built-in HTTP client:

HTTPGet('https://....');

Thanks Tondose and Torben,

This script with the HTTPGet was exactly what I was looking for!

Have a good evening,

Maarten

1 Like