Python automation tool for posting meter readouts to EAM-Netz portal.
- Install dependencies:
pip install -r requirements.txt- Create
.envfile in the project root:
user=your_username
pwd=your_passwordpython main.py <readout_kwh>Example:
python main.py 449The tool performs the following steps:
- Authentication - Logs in and retrieves session key
- Get metadata - Fetches selected_read value
- Get last readout - Retrieves the last submitted meter reading
- Post readout - Submits the new meter reading
- Verification - Confirms the readout was posted correctly
main.py- Main script and CLI interfaceeam_api.py- API functions for EAM portal interactionget_session_key()- Authenticationget_selected_read()- Fetch meter metadataget_last_readout()- Retrieve last readingpost_readout()- Submit new reading
.env- Environment variables (credentials)requirements.txt- Python dependencies