Skip to content

Latest commit

 

History

History
executable file
·
33 lines (23 loc) · 867 Bytes

README.md

File metadata and controls

executable file
·
33 lines (23 loc) · 867 Bytes

HomeBridge log clearer

Introduction

This homebridge plugin automaticly clears the Homebridge.log file after a certain period or when it reaches a certain size.

Homebridge sample config

"accessories": [
        {
            "name": "Log cleaner",
            "accessory": "HomebridgeLogCleaner",
            "cleanPeriodInHours": 48, // automatic clear periaod, in hours
            "maxLogSizeInMb": 10, // maximum log size in megabytes, before it will be cleared
            "debugMode": false // just for logging current config size
        },
        // your other accessories
]

This accessory behaves like a fan, rotation speed is a percentage value of current log size to your max log size.

To force clean the log file, just tap on a fan.

Instalation:

npm i homebridge-log-cleaner

...or use Homebridge built-in search