watch_battery

Poll the board over WLAN and print the battery status every few seconds.

Usage: uv run tools/watch_battery.py [host] [interval_s]

Functions

fetch(host)

Read the battery status from the board's web API.

main()

Print the battery status every few seconds.

Module Contents

watch_battery.fetch(host)

Read the battery status from the board’s web API.

watch_battery.main()

Print the battery status every few seconds.