NOTICE: This forum has been archived (i.e. registration and posting is disabled).
Please go to the new forum at https://forum.kylegabriel.com
Hi Kyle. I wanted to get realtime notifications on my cell phone. Email works quite well, but for some cases I want to have a more urgent alarm. I found the (commercial) pushover app to be what I am looking for and wanted mycodo to trigger their API. As this specific vendor is commercial, I thought it would be best to implement a generic webhook action. This way users can choose which vendor to use, as long as the vendor provides a basic REST service to be called.
The webhook has a single multiline parameter that is similar to how the HTTP request is structured:
<METHOD VERB> <PROTOCOL>://<URL>[:PORT]/[PATH][?QUERY] [HEADER: VALUE] [HEADER: VALUE] [<BLANK LINE> <REQUEST BODY>]
Please find attached an example of how my configuration looks like.
If you believe this would be interesting and should be pulled into the official repo, please let me know. I would work a bit on documentation before I do a pull request. You can preview my changes here:
Let me know what you think.
That looks great. I think it would be a fine addition to Mycodo.
Okay, cool. Give me some days to tidy it up and then I'll send a PR.