A Kalman Filter to Stop Bothering the Server (Or the Guilty Pleasure of Over-Engineering)

How a scalar Kalman filter reduces network calls by 80% in a menu bar app, adapts to battery status, and sleeps on its own when you're inactive.