Script to record my power consumption

This commit is contained in:
Felix Van der Jeugt 2020-09-22 11:05:22 +02:00
parent c693226c6a
commit e7351a6d50
No known key found for this signature in database
GPG Key ID: 58B209295023754D
1 changed files with 4 additions and 0 deletions

4
local/bin/meterstand Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
FILE=/data/documents/verpleegsterstraat-249/meterstanden.csv
sed -i '${p;s/.*,/'"$(date --iso)"',/}' "$FILE"
"$EDITOR" "$FILE"