Integration: WatchDuty app alerts#175
Open
chrisdavis2110 wants to merge 2 commits intoagessaman:devfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I found a public API for the WatchDuty app. I have it set up so that it polls the API at a configurable time (default 5 min) within a bounding box and sends messages when it finds new events. You can set a single channel where all the messages are sent, but with WatchDuty sending a lot of reports for a single fire, and if there are multiple fires going at once, it gets overwhelming, so I also included a "feed" channel and a "report" channel. The feed channel just gets stats (Fire name | acreage | containment % | location | link to fire) as the acreage or containment gets updated. The reports channel gets the notifications of the detailed reports WatchDuty sends out (example: Carbon Fire: The Red Cross is staffing a care and reception center at the Chino Hills Community C... | https://app.watchduty.org/i/95436).
I've also added two commands: fire and evac. Fire with no args returns a list of active fires. Fire with either the list number, fire name, or fire id will return the stats of the fire. Evac is similar to fire, but lists the evacuation info for the fire. Still need to test that more, just waiting on more big fires to happen.
Feed channel:
Report channel: