Skip to content

dobryc/homebridge-log-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published