How maizeshark/evcc-to-pdf works
EVCC Charging Report Generator is a Python tool that retrieves a month of charging sessions, optionally filters and formats them, creates a localized PDF, and can email it. The primary workflow starts with a user running the script and ends with a PDF in the output folder, with email delivery optional. The sampled source shows API access, formatting, rendering, and email code; README statements support the documented filtering, localization, and template capabilities. Several internal steps are represented at the main script path because the excerpt does not expose their full implementation or call sequence.
Main entry points: generate_pdf_report.py PDF rendering · template_en.html HTML templates · template_de.html German template
Components 13
Inputs and configuration
- CLI and config
generate_pdf_report.py
Session data
- EVCC API
- Session retrieval
generate_pdf_report.py - Filters and columns
generate_pdf_report.py
Report generation
- Localization and formatting
generate_pdf_report.py - HTML templates
template_en.html - German template
template_de.html - PDF rendering
generate_pdf_report.py
Delivery
- PDF report
- Output folder
- Email delivery
generate_pdf_report.py - SMTP service
Other components
- Report operator
Connections 13
- Report operator → CLI and config: runs
README.md - CLI and config → Session retrieval: requests data
README.md - Session retrieval → EVCC API: fetches sessions
generate_pdf_report.py - Session retrieval → Filters and columns: filters sessions
README.md - Filters and columns → Localization and formatting: formats fields
README.md - Localization and formatting → HTML templates: renders with
README.md - Localization and formatting → German template: renders with
README.md - HTML templates → PDF rendering: provides layout
README.md - German template → PDF rendering: provides layout
README.md - PDF rendering → PDF report: writes PDF
generate_pdf_report.py - PDF rendering → Output folder: saves report
generate_pdf_report.py - PDF report → Email delivery: attaches report
README.md - Email delivery → SMTP service: sends via
generate_pdf_report.py