2025–26 · Formula SAE team · assistant lead 2025–26 · FORMULA SAE TEAM · ASSISTANT LEAD
Formula Racing Telemetry Tools
Software for Western Formula Racing's car-data server: a Slack bot that answers plain-English questions about the car's data with charts, and a service that monitors the server's health.
- Python
- Cohere API
- Slack API
- Docker
- InfluxDB 3
Overview
I’m the assistant lead for data acquisition (DAQ) software on Western Formula Racing, the university’s Formula SAE team. The car streams CAN sensor data to a server that stores it in a time-series database. I built two tools on that server: a Slack bot that answers questions about the data, and a service that watches the server itself.
Slack data bot
Team members type a question in plain English after !agent, and the bot replies with the answer and any charts. Nobody has to write a query.
- The bot (Python,
slack_sdkin Socket Mode) sends the question to a code-generator service. - The code generator asks Cohere’s
command-r-plusmodel to write a Python script that queries the car’s data and plots it, guided by a custom system prompt. - The script runs in a separate sandbox container, with a 30-second time limit and caps on output (10 files, 5 MB each).
- If the script fails, the error is added to the prompt and the model tries again, up to two times.
- The bot posts the output and uploads the charts to Slack.
!agent-debug gives harder questions a 20-minute limit, and !location posts the car’s current position as a Google Maps link.
The bot queried InfluxDB 3 when I built it. The team has since moved the database to TimescaleDB.
Health monitor
A Python service that runs as its own container in the server’s Docker Compose stack. Every 60 seconds it records:
- Database container: whether it’s running, its restart count, the disk usage of its data volume, and write latency, measured by timing a test write.
- Data scanner container: whether it’s running, plus events processed per minute, the time of the last successful job and the error count, read from the scanner’s API.
It writes these to a separate monitoring database. I also added an endpoint to the data-downloader API that reports which containers are up, so the team’s DAQ website can show the server’s status.
Also on the team
- Set up the car’s wireless CAN telemetry link with the DAQ team: an antenna on the ECU and a laptop base station with its own antenna.
- Pulled CAN data decoded with the team’s DBC file into Grafana dashboards.
About the commit history
The health monitor is under my GitHub account (PR #22). The Slack bot’s code was committed through the team’s shared account and the team lead’s, so it doesn’t show under my name.