Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.
/ kpn-mb-share Public archive

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

Notifications You must be signed in to change notification settings

OlafHaalstra/kpn-mb-share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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=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.

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •