summaryrefslogtreecommitdiff
path: root/dump.lua
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-04-05 18:51:41 +0200
committerAki <please@ignore.pl>2024-04-05 18:57:53 +0200
commit84423e63959e31a8eb55efbf7194798bee3811dd (patch)
tree0bb4902f170e5fd0c3611019dc3674409d060301 /dump.lua
downloadfuel-84423e63959e31a8eb55efbf7194798bee3811dd.zip
fuel-84423e63959e31a8eb55efbf7194798bee3811dd.tar.gz
fuel-84423e63959e31a8eb55efbf7194798bee3811dd.tar.bz2
Dumped recent refueling history into a repository
Yes, currently it only dumps into the standard output. There's too little data especially on LPG to make any good estimates at this point. Later on, this format will allow the data to be dumped anywhere for any kind of analysis or calculations to be done within this codebase. Or something like that.
Diffstat (limited to 'dump.lua')
-rwxr-xr-xdump.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/dump.lua b/dump.lua
new file mode 100755
index 0000000..4fb3d77
--- /dev/null
+++ b/dump.lua
@@ -0,0 +1,7 @@
+#!/usr/bin/env -S lua -l fuel
+local f = fuel.fill
+local r = fuel.relative
+f("O", "2023-12-28", "17:55", 202230.0, "95", 100.21, 15.37)
+f("O", "2024-02-23", "12:05", r(119.2), "lpg", 74.14, 23.61)
+f("O", "2024-02-23", "12:18", 202350.9, "95", 100.02, 14.95)
+f("O", "2024-04-05", "12:27", r(279.2), "95", 100.16, 14.86)