Skip to content

Instantly share code, notes, and snippets.

View SirPolaris's full-sized avatar
🔫
Breach, Bang and Clear

Justin Kelly SirPolaris

🔫
Breach, Bang and Clear
View GitHub Profile

The goal to capture a weighted health, that reflects the likely hood of frustration and overall desirability

Which means it needs to track events (late, early, cancelled, missing full - frustration) but thoes events should be scored/weighted by the situation. Below is the brainstormed idea for metrics:

Tracking:

  • Time of day weighted (rush hour is more important)
  • Last or only of the day, cancelation punishment
  • Frequency (how often, and if this is a enduring problem) weighted
  • Daily and weekly consecutive weight (pos/neg - back to backs, and every day same hour missing) but moderated by total wait time (1+ waits are punishing)
  • Fullness weight (Overcrowding or fine)
@SirPolaris
SirPolaris / BusStats.md
Created February 15, 2026 18:00
Bus Stats Wishlist

Generations

  • Bus List
    • L1/L2/L4 seperation
  • Advance work to capture drops/service reductions

RT Data

  • Status Colour
    • late detected in the last 5min
    • on detour
  • has Official alerts
@SirPolaris
SirPolaris / AutowaStats.md
Created January 24, 2026 15:26
Autowa Statisics

Pulled from the news/scraped

Counts

  • Rollover
  • Car hitting car
  • Car into building
  • Car into object
  • Car on fire
  • Causalities
    • People (Important for advocacy)
  • Landscape (10 Trees killed this year)

Visually Observable Traffic Infringements

Human or dashcam observation

This document lists traffic violations that can be visually confirmed by a person standing on a sidewalk, riding a bike, or reviewing dashcam footage.

No assumptions about radar, speed guns, or internal vehicle data.


🚗 Driving Behaviour (Movement Violations)

@SirPolaris
SirPolaris / AutoaSchema.md
Last active January 23, 2026 05:19
Autowa input schema

Overview

Let us brainstorm about what might be useful Fields to store in the database.

The application is initially collecting license plates, which will then train a model, which will then power a sophisticated speed trap camera on phones, which will then create clips/stills/ect, and hopefully, will auto detect the traffic infringements locally in near-ish real time.

Currently I have been working on the manual mode which is just uploading or taking still photos. But they'll be two automatic modes, which would involve walking/biking (dashcam like) with GPS and auto capturing videos/stills, automatically or via button press (rolling buffer)

All of this has to be planned for, and stuffed somewhere, so let's speculate.

Life Cycle

extends layout
block content
<!-- Navigation -->
nav.navbar.navbar-expand-lg.bg-secondary.text-uppercase.fixed-top(id="mainNav")
.container
span.h5.text-white
if datablock.pageType == 'R'
| Route #{datablock.routeId}
else if datablock.pageType == 'S'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SirPolaris
SirPolaris / OttawaWards2026.geojson
Last active April 7, 2023 17:52
Ottawa Canada Wards 2022-2026
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SirPolaris
SirPolaris / stats.md
Last active April 19, 2022 00:15
The current list of ideas for stats/data display on the /explore section of OCCTranspo's website

Routes

Base/Static Stats

  • Total length
  • Total time
  • Number of stops
  • Average of time between stops
  • First bus time
  • Last bus time
  • Calendar (when it runs)
  • Map (where it runs)
@SirPolaris
SirPolaris / gist:bb45dfff3a078bf10b7580597b0d1d77
Created September 28, 2021 14:04
Template HTML for Ottawa Bus Signage
<html>
<head>
<style>
* {
margin: 0;
padding: 0;
}
*,
*:before,