Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
"""Find fastest 10->98 km/h acceleration times. Two-phase approach:
Phase 1: Coarse scan (10m windows) to find when speed >= 98 km/h
Phase 2: 15m-resolution scan (3h window) — backwards from 98+ to find last <=10 km/h
"""
import subprocess, json, datetime, os, sys
from concurrent.futures import ThreadPoolExecutor, as_completed
from datetime import date, timedelta
INFLUX = "http://localhost:8086"