30 lines
1.0 KiB
Markdown
30 lines
1.0 KiB
Markdown
## What is this ?
|
|
|
|
Automation tool for POSTING your [Netflix](https://www.netflix.com) invoice to [Leeto](https://leeto.co)
|
|
|
|
## Requirements
|
|
|
|
`apt install bash curl grep jq wkhtmltopdf`
|
|
|
|
## Usage
|
|
|
|
1. `cp .env.netflix_cookies.example .env.netflix_cookies`
|
|
1. `cp config.sh.example .env.netflix_cookies`
|
|
1. Fill the `.env.netflix_cookies` with `SecureNetflixId` and `NetflixId`.
|
|
In firefox these are in the developper tools in `Storage/Cookies`
|
|
1. Fill the `config.sh` with your email and password for Leeto
|
|
1. Change the amount of your invoice usally either `7.99`, `11.99` or
|
|
`15.99`
|
|
1. If you're not part of [Monibrand](https://www.monibrand.com) you need
|
|
to change the `LEETO_ORGANISATION_ID` and `LEETO_QUOTUM_ID` with yours
|
|
1. `$ ./last-invoice-to-leeto.sh`
|
|
1. 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
|