auto-invoice-leeto/README.md

1.0 KiB

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