Helper scripts using pdftk to parse Vy.no PDFs so I can paste into my Google Sheets
.gitignore | ||
get_prices.sh | ||
README.md | ||
rename_by_date.sh |
VyExpenseConversion
Because while Vy's smartprice saves us money, it makes it a little bit of a pain to calculate ticket prices.
Requirements
- pdftk
Steps
Getting PDFs from Vy
- Log into https://www.vy.no/mine-sider/mine-reiser
- Filter by "Fullførte" (Completed).
- Check off the receipts that are relevant, hit the download button. Will likely download as
kvittering-*.pdf
- Put downloaded files into a directory, e.g.
FolderName
Run scripts to rename PDFs (optional) and get ticket price
- Use
./rename_by_date.sh FolderName
- This step is technically optional, but for my own sanity I prefer having the PDF files sorted by date & time.
- Use
./get_prices.sh FolderName
- Will echo out in terminal a CSV you can paste into Google Sheets. - Paste into Google Sheets and use "Split text into columns": Image
- Alternatively find this in the "Data" dropdown menu: Image
- For B-column, you will have to search and replace
.
=>,
for Google Sheets to understand it's NOK. - Then do a simple
=SUM(B1:B100)