Pushover Notifications Driver [Slightly Enhanced]

I personally am not a developer, but thanks to AI. This worked for me. :nerd_face:

I added the following code to your driver:

    // New Retry and Expire Code
    if((matcher = message =~ /\&(.*?)\&/)){
        message = message.minus("&${matcher[0][1]}&")
        message = message.trim()
        customRetry = matcher[0][1]
    }
    if(customRetry){ retry = customRetry}

    if((matcher = message =~ /\%(.*?)\%/)){
        message = message.minus("%${matcher[0][1]}%")
        message = message.trim()
        customExpire = matcher[0][1]
    }
    if(customExpire){ expire = customExpire}
    // End new code

Encasing the retry interval in &...& and %...% interval for expiry.

[E]&300& %3600% this is a test
300-second (5 minute) retry interval with expire time of 3600 seconds (1 hour).

1 Like