• There has been a recent cluster of spammers accessing BARFer accounts and posting spam. To safeguard your account, please consider changing your password. It would be even better to take the additional step of enabling 2 Factor Authentication (2FA) on your BARF account. Read more here.

CHP Incidents Page option

BigB

Mr Honda #849
Joined
Mar 19, 2003
Location
Mountain View
Moto(s)
18 CB1000RR Street, 09 CBR 1000RR Track
Name
Bryan
BARF perks
AMA #: 2743740
Hello all,

Wanted to share a new CHP incidents page. I did not find features that I wanted on existing sites, so I started one. With permission from Budman, I wanted to post a link and welcome any feedback on it.


Full CHP incidents (car and moto). Filter by CHP Center, type (collision, hazard, closure) and further by Motorcycle / Fatal.

- You can sign up for email alerts (hourly) and customize what ones you want, with a one click unsubscribe at any time.
- I will archive all incidents. (starting this week) Likely for 2 years.
- Stats on the incidents in a few varieties. (Daily recap, closed incidents, fatalities)
- Map of the state with the incident locations.

System updates every 5 minutes.

Welcome to send over any feedback or suggestions. Post here or the "Report a Problem" on the site. Just a fun project I wanted to build and I am a bit of a nerd for stats.... and wanted to plot some data at the same time.

Thanks!
 
Looks handy
 
This is great! The CHP site is quite old and cumbersome. One thing I would add (or I can't figure out how to do it) is to filter by time, eg from today only or past hour. Most common use case for me is only current day.
 
This is great! The CHP site is quite old and cumbersome. One thing I would add (or I can't figure out how to do it) is to filter by time, eg from today only or past hour. Most common use case for me is only current day.
Correct, no time filter for incidents. (date range for closed is there on the History page) But the incidents on the right side of the home page are chronological, so newest on top as you scroll down, they are older events.

Email alerts work well, and you filter what kind you get, if any.

I'll look into some time filters and the best way to add them in the UI.
 
Interesting approach. I built the original one well over a decade ago to cover a lack that was existing with the CHP incidents where if you didn't see it while active, it was gone.
I also have the car incidents, but only display the motorcycle ones. They aren't marked as MC/not MC< I had to parse the text to determine it in my code.

Some suggestions:
1. I like the map idea, I never put the time into it to add that feature. But, I'd suggest reducing the listed events on the right to be contained within the viewed area, that way users can limit the events to an area that they're intersted in simply by zooming in. It would be a very straight-forward filter to implement.
2. Allow users to get incidents within a timeframe, people are often looking for an incident that happened to someone they know within the past few days. Narrowing it down to a specific day and even time range would allow them to more quickly find the incident.
3. I have trouble reading the date/time info, us older people don't have as good of eyesight as you youngsters.

I have a database full of incidents that goes back more than a decade. I'd have no problem with sharing it with you, I built mine for a need and haven't upgraded it in a long time.
 
Last edited:
Interesting approach. I built the original one well over a decade ago to cover a lack that was existing with the CHP incidents where if you didn't see it while active, it was gone.
I have seen and used yours for what feels like more than a decade. Thank you for building it then.
1. I like the map idea, I never put the time into it to add that feature. But, I'd suggest reducing the listed events on the right to be contained within the viewed area, that way users can limit the events to an area that they're intersted in simply by zooming in. It would be a very straight-forward filter to implement.
I like it, I'll add it.
2. Allow users to get incidents within a timeframe, people are often looking for an incident that happened to someone they know within the past few days. Narrowing it down to a specific day and even time range would allow them to more quickly find the incident.
You can do it on the History page by date, but not time. On my list to do.
3. I have trouble reading the date/time info, us older people don't have as good of eyesight as you youngsters.
Is it the color or the font size, or both?
I have a database full of incidents that goes back more than a decade. I'd have no problem with sharing it with you, I built mine for a need and haven't upgraded it in a long time.
I had mine collecting data for about 6 months, with no user side. I just decided to make the user interface after reviewing the stats I gathered. I do a ton of reporting at work so it was a fun little project to gather and analyze it. Adding the email alerts and mapping was my original plan.
 
Probably a bit of both. The color is probably the begger issue for me, it's a bit too light for my older eyes.
I was planning on making a light/dark theme option for people to choose. May just do that.

Added the map zoom/filter as well as the date/time on the history search. Both live today.
 
Thanks @BigB !

QQ: Can the filter options be passed as query parameters, so I can store a browser shortcut to the motorcycle incidents? e.g. https://stclair.xyz/chpincidents/?moto=1
It isn't built for it now, but could be.

It does remember your filtered options. So if you select moto and close the browser it should remember the moto filter when you return. Assuming you don't clear site history on a browser close.


Edit: the email alerts can be filtered to moto and region, for specific targeted area and incidents.
 
Thanks @BigB !

QQ: Can the filter options be passed as query parameters, so I can store a browser shortcut to the motorcycle incidents? e.g. https://stclair.xyz/chpincidents/?moto=1
Okay, a 'copy link' option is enabled on header, inside the filters. The moto, fatal and type was already there, but I don't think anyone would be able to remember or want to figure out the office codes. All should work now, simply configure as you want then click the copy url button, load in a new tab with that full URL and bookmark it, should be all set then, for live viewing.


Example URL above.
 
Okay, a 'copy link' option is enabled on header, inside the filters. The moto, fatal and type was already there, but I don't think anyone would be able to remember or want to figure out the office codes. All should work now, simply configure as you want then click the copy url button, load in a new tab with that full URL and bookmark it, should be all set then, for live viewing.


Example URL above.
Oh that is FANTASTIC and very quick :D

Thank you so much , both for adding this functionality, and for creating the site as a whole!
 
Back
Top