This repository is a clean starting template for a new WinCC Unified Companion module.
It is structured so the same module can run:
- standalone
- as a hosted Companion module
- as a packaged
.exemodule for the hostmodules/folder
main.py: hosted and standalone entrypointhosted_runtime.py: minimal Companion runtime helperexample_module/app.py: starter UI and business logicmodule.json: module manifest used by the hostbuild_module_exe.bat: PyInstaller build script and package output flowMODULE_TEMPLATE_MEMORY.md: extra implementation notes
- Copy this folder to a new location for your module.
- Rename the following placeholders:
example_moduleExampleModuleexample_moduleinsidemodule.json
- Implement your UI and logic in
example_module/app.py. - Run locally:
python main.py- Build the packaged module:
.\build_module_exe.bat- Install the result in the host:
modules/<your_module_id>/
Or use the packaged ZIP from dist/ with the host Install Module flow.
- this repository is meant to stay clean and reusable as a base template
- build output folders are ignored by git
- line endings and editor behavior are already standardized for Windows-based development