Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .development/chp_mock_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<State>
<Center ID="LACC">
<Dispatch ID="LAHB">
<Log ID="260211LA0042">
<LogTime>"Feb 11 2026 2:30PM"</LogTime>
<LogType>"1125-Traffic Hazard"</LogType>
<Location>"I5 N / SR14 N"</Location>
<LocationDesc>"NB I5 AT SR14 CONNECTOR"</LocationDesc>
<Area>"Newhall"</Area>
<ThomasBrothers>""</ThomasBrothers>
<LATLON>"34326000:118470000"</LATLON>
<LogDetails>
<details>
<DetailTime>"Feb 11 2026 2:31PM"</DetailTime>
<IncidentDetail>"[1] SMOKE AND FLAMES VISIBLE FROM ROADWAY"</IncidentDetail>
</details>
<details>
<DetailTime>"Feb 11 2026 2:35PM"</DetailTime>
<IncidentDetail>"[2] LANE 1 BLOCKED DUE TO FIRE ACTIVITY"</IncidentDetail>
</details>
<units>
<UnitTime>"Feb 11 2026 2:32PM"</UnitTime>
<UnitDetail>"Unit Assigned"</UnitDetail>
</units>
<units>
<UnitTime>"Feb 11 2026 2:40PM"</UnitTime>
<UnitDetail>"Unit At Scene"</UnitDetail>
</units>
</LogDetails>
</Log>
<Log ID="260211LA0099">
<LogTime>"Feb 11 2026 1:15PM"</LogTime>
<LogType>"1183-Trfc Collision-Unkn Inj"</LogType>
<Location>"US101 S / Topanga Cyn Blvd"</Location>
<LocationDesc>"SB 101 JNO TOPANGA CYN"</LocationDesc>
<Area>"Malibu"</Area>
<ThomasBrothers>""</ThomasBrothers>
<LATLON>"34040000:118600000"</LATLON>
<LogDetails>
<details>
<DetailTime>"Feb 11 2026 1:16PM"</DetailTime>
<IncidentDetail>"[1] 2 VEH TC SB 101 BLOCKING LN 2"</IncidentDetail>
</details>
</LogDetails>
</Log>
<Log ID="260211LA0150">
<LogTime>"Feb 11 2026 12:00PM"</LogTime>
<LogType>"SPINOUT"</LogType>
<Location>"SR2 / Big Pines Hwy"</Location>
<LocationDesc>""</LocationDesc>
<Area>"Wrightwood"</Area>
<ThomasBrothers>""</ThomasBrothers>
<LATLON>""</LATLON>
<LogDetails>
<details>
<DetailTime>"Feb 11 2026 12:01PM"</DetailTime>
<IncidentDetail>"[1] SPINOUT IN SNOW NO BLOCKING"</IncidentDetail>
</details>
</LogDetails>
</Log>
</Dispatch>
</Center>
</State>
1 change: 1 addition & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
cat <<EOT > .env
NF_IDENTIFIER=${NF_IDENTIFIER}
WILDWEB_E=True
CHP_ENABLED=True
NF_WWE_IDENTIFIER=caancc
TELEGRAM_BOT_ID=${TELEGRAM_BOT_ID}
TELEGRAM_BOT_SECRET=${TELEGRAM_BOT_SECRET}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ db*.json
.env
*.DS_Store
*log.json
__pycache__/
__pycache__/
*env*
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ The only required key is `NF_IDENTIFIER`. It is also the only value that is not
| `TWILIO_AUTH_TOKEN` | N | string | Your secret Twilio API Auth Token, found in your Twilio dashboard | N/A |
| `TWILIO_NUMBER` | N | string | Your Twilio-registered phone number | `+18184567890` |
| `URL_SHORT` | N | string | The domain name you want to use as a URL shortener in SMS | `lm7.us` |
| `CHP_ENABLED` | N | boolean | Enable CHP CAD feed integration to enrich fire incidents with nearby CHP dispatch details. Defaults to `False` | `True` |
| `CHP_PROXIMITY_MILES` | N | float | Radius in miles to match CHP incidents to fires. Defaults to `5` | `5` |
| `CHP_FEED_URL` | N | string | CHP XML feed URL (overridable for testing). Defaults to the public CHP statewide feed | `https://media.chp.ca.gov/sa_xml/sa.xml` |

### Setup: Telegram (Optional)
Read about how to setup up a Telegram channel and bot/credentials: [Bots: An introduction for developers](https://core.telegram.org/bots/#3-how-do-i-create-a-bot)
Expand Down
Loading