auto-invoice-leeto/README.md

33 lines
1.2 KiB
Markdown
Raw Normal View History

2020-11-11 18:09:05 +01:00
## 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
2020-11-11 18:09:22 +01:00
* Handle `La somme demandée ne peut être supérieure à ses droits (somme restante: 4.01)`
* Implement other invoice types like Spotify