Organizes 11 projects for Cerbo GX/Venus OS into a single repository: - axiom-nmea: Raymarine LightHouse protocol decoder - dbus-generator-ramp: Generator current ramp controller - dbus-lightning: Blitzortung lightning monitor - dbus-meteoblue-forecast: Meteoblue weather forecast - dbus-no-foreign-land: noforeignland.com tracking - dbus-tides: Tide prediction from depth + harmonics - dbus-vrm-history: VRM cloud history proxy - dbus-windy-station: Windy.com weather upload - mfd-custom-app: MFD app deployment package - venus-html5-app: Custom Victron HTML5 app fork - watermaker: Watermaker PLC control UI Adds root README, .gitignore, project template, and per-project .gitignore files. Sensitive config files excluded via .gitignore with .example templates provided. Made-with: Cursor
1.7 KiB
1.7 KiB
dbus-template
Venus OS D-Bus service template. Use this as a starting point for new services.
Getting Started
- Copy this directory:
cp -r _template/ dbus-your-service-name/ - Rename
dbus-template.pyto match your service (e.g.your_service.py) - Update
config.pywith your service name, product ID, and settings - Update
service/runto point to your renamed main script - Update
install.sh: setSERVICE_NAMEandMAIN_SCRIPTvariables - Update
build-package.sh: setPACKAGE_NAMEand the file copy list - Replace this README with your own documentation
Files
| File | Purpose |
|---|---|
dbus-template.py |
Main service with D-Bus registration boilerplate |
config.py |
Configuration constants (service name, product ID, timing) |
service/run |
daemontools entry point |
service/log/run |
multilog configuration |
install.sh |
Venus OS installation (velib symlink, service registration, rc.local) |
uninstall.sh |
Removes service symlink |
build-package.sh |
Creates a deployable .tar.gz package |
D-Bus Paths
Update these for your service:
| Path | Type | Description |
|---|---|---|
/ProductName |
string | Service display name |
/Connected |
int | Connection status (0/1) |
/Settings/Template/Enabled |
int | Enable/disable via settings |
Checklist
- Unique service name in
config.py(com.victronenergy.yourservice) - Unique product ID in
config.py(check existing services to avoid conflicts) - All file references updated in
service/run,install.sh,build-package.sh - Custom D-Bus paths added
- Settings paths updated
- README replaced with your own documentation