Sightglass
part of MaracaiboA camera that reads the diesel sight glass, because the tanks predate sensors.
The boat’s fuel tanks are older than the idea of a fuel sensor — but they have a sight glass, and a sight glass can be looked at. So a small camera watches both glasses, a vision model reads the level off the image, and the result publishes as an ordinary MQTT sensor. One safeguard worth stealing: a diesel level only falls, so when the camera suddenly reads higher the number freezes until a refill is declared — a wrong reading is worse than no reading.
- Dark tank announces itself on MQTT
- Tank level rises only through declared refill
- Kalman fusion of camera reads with burn rate
- Camera sources added from the UI, no SSH
- Local CV stack replaced by cloud vision detector
- Monolith refactored into modules with dashboard
- Gradient-based fuel level detection for braided hose
- Initial Sightglass commit
- Diesel only goes down
Decision. The published fuel level on the boat can only fall. It rises for exactly one reason: I declare a refill through an explicit door…
- One tank read 10% high for weeks. The detector was never wrong.
Sightglass watches the diesel sight tubes on the boat with a camera. Starboard read ~10% high for weeks. I kept tuning thresholds; the…
- A physical invariant is a free hallucination detector
Sightglass is a Raspberry Pi pointing two cameras (via go2rtc) at the diesel sight glasses on my 1967 boat; a vision model reads the fuel…