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
|
|
|
|
|
2021-12-22 17:36:33 +01:00
|
|
|
* Docker
|
|
|
|
* An instance of [Url to PDF](https://github.com/alvarcarto/url-to-pdf-api) to convert html invoice to PDF
|
2020-11-11 18:09:05 +01:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2021-12-22 17:36:33 +01:00
|
|
|
1. `cd node_red_data`
|
|
|
|
1. `npm install`
|
|
|
|
1. `docker run -it -p 1880:1880 -v $PWD/node_red_data:/data nodered/node-red`
|
|
|
|
1. You need to provide credentials for
|
|
|
|
* `url-to-pdf-api Credentials`
|
|
|
|
* `url` example `https://url-to-pdf-api.herokuapp.com/api/render`
|
|
|
|
* `apiToken` for Url to PDF if needed
|
|
|
|
* `Netflix Credentials` Netflix
|
|
|
|
* `netflixId` get the value from cookies in a web browser (
|
|
|
|
through the inspector )
|
|
|
|
* `secureNetflixId` get the value from cookies in a web browser (
|
|
|
|
through the inspector )
|
|
|
|
* `Leeto Credentials` [Leeto](https://app.leeto.co/)
|
|
|
|
* `login` is an email
|
|
|
|
* `password`
|
2020-11-11 18:09:05 +01:00
|
|
|
|
|
|
|
## TODO
|
|
|
|
|
2021-12-22 17:36:33 +01:00
|
|
|
* Add an automation cron
|
|
|
|
* Deploy to cloud something
|
|
|
|
* Multi-user (webui maybe ?)
|
2020-11-11 18:09:05 +01:00
|
|
|
* Better handling error
|
|
|
|
* Netflix login (can be a pain in the ass)
|
|
|
|
* Trigger on the good invoice date of Netflix once a month
|
2020-11-11 18:09:22 +01:00
|
|
|
* Implement other invoice types like Spotify
|
|
|
|
|
2021-12-22 17:36:33 +01:00
|
|
|
|