timer-machine-android icon indicating copy to clipboard operation
timer-machine-android copied to clipboard

[Feature request] Add Webhook management

Open tasonface opened this issue 1 year ago • 1 comments

It would be cool to be able to add a webhook by setting method/url/params/body/headers and on response to access some nodes by eval-ing them and be able to use them in the next timer configuration or condition.

A basic example:

WEBHOOK: GET https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd Response is: {"bitcoin":{"usd":65960}}

Loop

  1. WEBHOOK -> SPEAK "response.bitcoin.usd"
  2. Timer 5 minutes

Another conditional use case for price alerts:

Loop

  1. WEBHOOK -> SPEAK "WE DID IT!" -> WHEN "response.bitcoin.usd" >= 100000
  2. Timer 5 minutes

tasonface avatar Jul 30 '24 18:07 tasonface

It doesn't sound very easy. Do you have some suggestions on how to achieve or use it?

DeweyReed avatar Aug 01 '24 00:08 DeweyReed