updated readme

This commit is contained in:
randogoth 2025-11-13 15:22:30 +02:00
parent 9bd23d3105
commit e9bc00b1c8
4 changed files with 50 additions and 8 deletions

View file

@ -253,3 +253,21 @@ class Config(object):
'''How often the usage check should happen'''
interval = self.data.get('check-interval', 1)
return int(interval)
@property
def statusServer(self):
'''Optional host/port overrides for the embedded status server'''
config = self.data.get('status-server') or {}
host = config.get('host')
port = config.get('port')
if port is None:
parsed_port = None
else:
try:
parsed_port = int(port)
except (TypeError, ValueError):
raise ValueError('status-server.port must be an integer')
return {
'host': host,
'port': parsed_port,
}