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.
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=someone@example.com
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.
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
.
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.