def prowl(message) { def params = [ uri: "https://api.prowlapp.com", path: "/publicapi/add", query: [ event: message, application: "Smartthings", url: "", description: "Power Outage Notification", apikey: "xxxxxxxxxxxxxxxxxxxxxxx" ] ] try { httpGet(params) { resp -> log.debug "Prowl message sent"; } } catch(e) { log.error "Can't send Prowl message: $e" } }