Output and pull requests
After a measurement run, inspect the generated output before creating a pull request. The tool creates a good starting point, but the contributor is still responsible for making sure the profile identifies the correct device and contains plausible measurements.
Output location
Docker runs write to the mounted export directory in your measurement working directory:
powercalc-measure/
.env
export/
<model_id>/
model.json
brightness.csv.gz
color_temp.csv.gz
Native runs write to:
utils/measure/export/
Some modes do not write profile files. Average prints a result, and Recorder writes the filename you selected in the wizard.
Generated model data
When you choose to generate model.json, the tool fills fields such as:
namedevice_typecalculation_strategystandby_powermeasure_methodmeasure_devicemeasure_descriptionmeasure_settingscreated_atmin_voltageandmax_voltagewhen voltage readings are available
You may still need to add or adjust library metadata before submitting, for example:
aliases- Additional discovery identifiers
- Manufacturer directory and
manufacturer.json - Device-type-specific fields that the tool cannot infer
Where to place files
Profiles belong under:
profile_library/<manufacturer>/<model>/
Use only the model ID for the model directory name. Put the full product name in aliases when needed.
Example:
profile_library/acme/LED1837R5/
model.json
hs.csv.gz
color_temp.csv.gz
Important
Do not edit profile_library/library.json. It is generated by CI and repository scripts.
Review checklist
Before opening a pull request:
- The manufacturer and model directory names are correct.
- The profile uses a specific model identifier, not a generic family identifier.
- The generated CSV files match the capabilities of the device.
- There are no uncompressed duplicate
.csvfiles when.csv.gzfiles are present. - Standby power is realistic and not accidentally
0because of meter limitations. - The profile validates against the schema.
Pull request steps
- Fork the Powercalc repository.
- Add the manufacturer and model directory under
profile_library. - Commit only the profile files needed for this device.
- Open a pull request against the Powercalc repository.
- Use the power profile pull request template.
- Mention anything unusual about the setup, such as dummy load usage, multiple lights in parallel, OCR, manual readings, or estimated standby power.
Submit one device per pull request. Smaller pull requests are easier to review and keep the profile history clear.