Automation for posting invoices to Leeto
Go to file
HugoPoi 5a5bf6161d doc: update todo list 2020-11-11 18:09:22 +01:00
.env.browser_fingerprint feat: implement Leeto invoice posting 2020-11-11 18:09:05 +01:00
.env.netflix_cookies.example feat: just curl the billing page 2020-11-11 16:13:40 +01:00
.gitignore feat: implement Leeto invoice posting 2020-11-11 18:09:05 +01:00
README.md doc: update todo list 2020-11-11 18:09:22 +01:00
config.sh.example feat: implement Leeto invoice posting 2020-11-11 18:09:05 +01:00
last-invoice-to-leeto.sh feat: implement Leeto invoice posting 2020-11-11 18:09:05 +01:00

README.md

What is this ?

Automation tool for POSTING your Netflix invoice to Leeto

Requirements

apt install bash curl grep jq wkhtmltopdf

Usage

  1. cp .env.netflix_cookies.example .env.netflix_cookies
  2. cp config.sh.example .env.netflix_cookies
  3. Fill the .env.netflix_cookies with SecureNetflixId and NetflixId. In firefox these are in the developper tools in Storage/Cookies
  4. Fill the config.sh with your email and password for Leeto
  5. Change the amount of your invoice usally either 7.99, 11.99 or 15.99
  6. If you're not part of Monibrand you need to change the LEETO_ORGANISATION_ID and LEETO_QUOTUM_ID with yours
  7. $ ./last-invoice-to-leeto.sh
  8. then clean the cached files rm *.html *.pdf

TODO

  • Put this in an automation cron like Zappier or IFTTT or NodeRED
  • Better handling error
  • Netflix login (can be a pain in the ass)
  • Trigger on the good invoice date of Netflix once a month
  • Better error handling
  • Handle La somme demandée ne peut être supérieure à ses droits (somme restante: 4.01)
  • Implement other invoice types like Spotify