This program queries the 'Mijn Telenet' site to retrieve data about a user's monthly Telenet internet usage (a.k.a. telemeter).
Can be run as a standalone script or used as a module. As a standalone script it prints telemeter info to the console. Credentials can be provided via environment variables (TELENET_USERNAME, TELENET_PASSWORD), else the user will be prompted for credentials.
pip install telemeter
As module
import telemeter
telenet_session = telemeter.TelenetSession()
telenet_session.login("my_username", "my_password")
my_telemeter = telenet_session.telemeter()
As script
python3 telemeter/telemeter.py
For a Home Assistant integration, see https://github.com/myTselection/telenet_telemeter.