# coconutBattery Printing - Help

You can create a custom HTML template to use for printing. The template has to be a valid HTML document and can be cutomized with the parameters in the list on this page.

To enable custom templates please use the "Printing" tab in the app preferences.

    <!DOCTYPE html>
    <html>
    <body>
    <h3>Sample Report - Generated at: $REPORT_CREATION$</h3>
    <hr/>
    <p>Battery Report for "<span>$IOS_DEVICE$</span>" (<span>$IOS_MODEL$</span>)</p>
    <p>Battery Health: <span>$IOS_BATTERY_HEALTH_PERCENT$</span></p>
    <p>Battery Cycle-Count: <span>$IOS_BATTERY_CYCLECOUNT$</span></p>
    </body>
    </html>

Variable | Translates to | Example
--- | --- | ---
$REPORT_CREATION$ | Report Creation Time | "2024-04-14 10:00"
$REPORT_VERSION$ | App version |
$MAC_MODEL$ | Model identifier of the Mac | Mac12,1
$MAC_SERIAL$ | Mac serial number | C02XXXXXXXXX
$MAC_MANUFACTURE_DATE$ | Manufacture date of the Mac |
$MAC_BATTERY_MANUFACTURER$ | Battery manufacturer |
$MAC_BATTERY_SERIAL$ | Battery serial number |
$MAC_BATTERY_MANUFACTURE_DATE$ | Battery manufacture date |
$MAC_BATTERY_CYCLECOUNT$ | Battery CycleCount |
$MAC_BATTERY_HEALTH_PERCENT$ | Battery health in percent | 100%
$MAC_BATTERY_MAH$ | Current battery health in mAh | (6309 mAh / 6559 mAh)
$MAC_BATTERY_FAILURE$ | Failues reported by the battery | Over-Voltage, Over-Temperature...
$MAC_BATTERY_OSX_HEALTH$ | Battery health reported by macOS | Good/Fair
$IOS_DEVICE_TYPE$ | Device type | iPhone 15
$IOS_MODEL$ | iOS device model identifier | iPhone12,1
$IOS_NAME$ | Name of the device | Michelangelo's iPhone
$IOS_SERIAL$ | iOS device serial number |
$IOS_MANUFACTURE_DATE$ | Device manufacture date |
$IOS_BATTERY_SERIAL$ | Battery serial number |
$IOS_BATTERY_MANUFACTURE_DATE$ | Battery manufacture date |
$IOS_BATTERY_CYCLECOUNT$ | Battery CycleCount |
$IOS_BATTERY_HEALTH_PERCENT$ | Battery health in percent | 100%
$IOS_BATTERY_MAH$ | Current battery health in mAh | (1250 mAh / 1600 mAh)