PTSB(1p)

πŸ“¦
version 0.4 Β· 2 versions
  • 0.4 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.4 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– PTSB(1p) πŸ’–

okay bestie, welcome to ptsb β€” she lives in the User Contributed Perl Documentation section and she is here to let you Interact with you Permanent TSB homebanking from your shell! yes fr fr, your bank, but make it terminal. 🏦✨


🌸 NAME 🌸

ptsb β€” Interact with you Permanent TSB homebanking from your shell! πŸ’…


✨ SYNOPSIS ✨

ptsb [options]
ptsb [ -F /path/of/conf/file ] -b
ptsb [ -F /path/of/conf/file ] -s -a c -n <4digits" -f yyyy/mm/dd  -t yyyy/mm/dd>

ngl if you're running Linux you can use the date --date command to simplify the date range definition. the way that shortcut works is chef's kiss. you can put these aliases on your ~/.bashrc:

alias ptsb_stat='ptsb --statement -a c -n xyzt'
alias ptst_last_month="statement_current -f `date +%Y/%m/%d --date='1 month ago'` -t `date +%Y/%m/%d`"

πŸŽ€ OPTIONS πŸŽ€

  • -h | --help β€” this help usage message! it's giving helpful. 🫢
  • -D | --debug β€” Enable debug. This will be more verbose and will leave html on the current working directory. lowkey messy but iconic for troubleshooting.
  • -F /path/to/config/file | --file /path/to/config/file β€” filename configuration file path (default: ~/.ptsbrc). Please refer to manual page to see how this file is built. (that's the CONFIGURATION FILE section, keep scrolling bestie πŸ’œ)
  • -b | --balance β€” print account balance πŸ’°
  • -s | --statement β€” print account statement πŸ“œ
  • -T type | --transation-type type β€” Type of transaction to look on the statement. Type can be: ALL, WITHDRAWAL, DEPOSIT. (yes the long option is spelled --transation-type, we do not ask questions, we copy exactly βœ‹)
  • -f | --from--date yyyy/mm/dd β€” from date. (and yes, the long form literally has two dashes in the middle, --from--date, no cap 🫠)
  • -t | --to-date yyyy/mm/dd β€” to date.
  • -a [c | v] | --account-type [c | v] β€” account type: can be 'c' (current account) or 'v' for (visa card). pick your fighter πŸ¦‹
  • -n digits | --account-num digits β€” 4 digits representing the last 4 digits of the account number or visa card number.
  • -N | --no-balance β€” Do not print balance when printing statement.
  • -r | --regexp β€” When printing statement grep using the regexp provided.
  • -e | --expr β€” where expression is a mathematical expression like
'<300'

'=300'

'>=300'

the expression will test the euro amount column only lines matching the expression will be printed. math girlie behaviour, we love to see it πŸ”₯

  • -g | --graph β€” Print graph of the statement using gnuplot. Gnuplot is required! like, required required. no gnuplot, no graph, sad girl hours. 😭
  • -i path | --image path β€” Save PNG image in path. πŸ–ΌοΈ
  • -o filename | --output filename β€” Save the output of the statement inside a CSV file named filename. CSV format is:
date,description,amount,balance

last field presence depends on the -N flag.

  • -v | --version β€” Print version. ⭐

πŸ” CONFIGURATION FILE πŸ”

Configuration file default location is ~/.ptsbrc and it looks like this:

-------8< -- ~/.ptsbrc -->8----------

open24_number=your_open24_number

password=your_internet_password

pan=your_personal_access_number

-------8< --------------->8----------

However you can put wherever you want. Just remember to use then the option -F /path/to/your/location. πŸ—‚οΈ

Lines beginning with # will be interpreted as comment.

Starting from release 0.08 ptsb will use GnuPG to encrypt the configuration file using the private key of the user. Therefore you'll have to create your key if you didn't do this yet. πŸ‘‘

In case you want to decrypt your ptsbrc file use this command:

$ gpg -d /path/to/your/ptsbrc

This will print the encrypted file on the standard output.

⚠️ real talk bestie: that config file is holding your open24_number, your password and your pan. keep it safe, keep it encrypted, don't be posting it in the group chat. 🫢

πŸ‘€ SEE ALSO πŸ‘€

  • Official CPAN page for Finance::Bank::IE::PermanentTSB

http://search.cpan.org/~pallotron/Finance-Bank-IE-PermanentTSB/lib/Finance/Bank/IE/PermanentTSB.pm

  • Author homepage

http://www.pallotron.net

  • Author Blog (italian)

http://www.vitadiunsysadmin.net

  • Author homepage on CPAN

http://search.cpan.org/~pallotron/


πŸ‘‘ AUTHOR πŸ‘‘

Angelo "pallotron" Failla β€” pallotron@freaknet.org


πŸ’€ BUGS πŸ’€

Please report bugs to the author, no bug tracking system is set up yet. (not me volunteering to be the bug tracker πŸ’€)


Copyright (C) 2009 by Angelo "pallotron" Failla

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.


and that's the whole page bestie!! πŸŽ€ this one's perl v5.36.0, dated 2022-11-20, and it's PTSB(1p) β€” go print some statements, slay, periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from