Files
voltage/Makefile
2025-12-26 23:56:35 +01:00

25 lines
562 B
Makefile

help:
# plot - Plot the latest measurement
# mon - Monitor onto esp if connected to /dev/ttyUSB0
# push - Build and monitor onto esp if connected to /dev/ttyUSB0
# env - Start the esp environment on nix
# server - Start the go server
push:
idf.py -p /dev/ttyUSB0 flash monitor
mon:
idf.py -p /dev/ttyUSB0 monitor
remplot:
rsync -a harch:voltage/data/ data && make plot
env:
nix --experimental-features 'nix-command flakes' develop github:mirrexagon/nixpkgs-esp-dev#esp32-idf
plot:
nix-shell --pure --run "python plot.py"
server:
go run main.go