Real-time Mac ambient light sensor dashboard.
Reads the built-in ALS (Ambient Light Sensor) via ioreg and streams lux values to a web dashboard using Server-Sent Events.
- Real-time lux display with environment description
- Color-coded gauge bar
- 60-second rolling history chart
- Background adapts to ambient brightness
- Auto-reconnect on disconnect
- Zero dependencies — Python stdlib only
python3 server.py
# Open http://localhost:8080- macOS with ambient light sensor (Apple Silicon / Intel)
- Python 3