https://github.com/bennetyee/span_circuit_info
Use SPAN's API to get information about selected circuits
https://github.com/bennetyee/span_circuit_info
rust span
Last synced: 7 days ago
JSON representation
Use SPAN's API to get information about selected circuits
- Host: GitHub
- URL: https://github.com/bennetyee/span_circuit_info
- Owner: bennetyee
- Created: 2026-05-21T08:05:10.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-05-25T21:18:48.000Z (29 days ago)
- Last Synced: 2026-05-25T23:18:05.076Z (29 days ago)
- Topics: rust, span
- Language: Rust
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# span_circuit_info
This is a vibe-coded reimplementation of the Python code in the
repository https://github.com/bennetyee/SPAN-hacks in Rust, but with
some added features, such as exponential backoff retry logic. The API
is designed to work with https://github.com/bennetyee/live_plotter to
display interesting charts.
Remote viewing of circuit power usage is possible by running
`span_circuit_info` on a home server to log into a file, and then the
when away from home run `live_plotter` to access the data using `ssh
HOME tail +0f FILE | live_plotter ...` to display the strip chart.
I run
```sh
span_circuit_info -a --abs -k instantPowerW --live 5 --timestamp >> span-data/all-circuits.log
```
with the labels saved via a single invocation of
```sh
span_circuit_info -a -k name -q > span-data/labels
```
so that when I'm away from home, I can do
```sh
ssh HOME tail +0f span-data/all-circuits.log | eval live_plotter --timestamp --labels `cat span-data/labels ` -v $(expr 60 \* 60 \* 24)
```
(I have a local copy of the `labels` file.)