Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Latest commit

 

History

History
28 lines (23 loc) · 1.18 KB

README.md

File metadata and controls

28 lines (23 loc) · 1.18 KB

Share KPN MBs with family members

Docker container to share MBs between mobile phone numbers at the first of the month.

Archived since KPN implemented this feature natively in their app as of May 2022.

Installation

Create a .env file with your preferences, see the .env.example file which fields must be filled. Do not forget to remove the comments. A correct .env file could look like this:

[email protected]
PASSWORD=secret123
NUMBER=0612345678
SC_SERVICE_TOKEN=aBCd1234
NUMBERS=0601010101,0602020202
MBS=6000,1337

Which will send 6000MB to 0601010101 and 1337MB to 0602020202, by default once per month.

Getting the SC_SERVICE_TOKEN

The easiest way is to log in to mijn.kpn.com and open the developer tools. Then go to Application > Local storage > https://mijn.kpn.com and in the Value field copy the serviceToken.

Running

Once you have successfully created a .env file you can now run the script on a server, if you use Docker you can run:

docker build -t kpn-mb-share . 
docker run -d kpn-mb-share --name kpn-mb-share

The script is scheduled with cron in entrypoint.sh to run every first of the month at exactly 00:05.