Skip to content

Batcontrol Configuration

Matthias Strubel edited this page Oct 4, 2025 · 8 revisions

This is the main control logic configuration:

timezone: Europe/Berlin #your time zone. not optional.
loglevel: debug
logfile_enabled: true
log_everything: false # if false debug messages from fronius.auth and urllib3.connectionpool will be suppressed
max_logfile_size: 200 #kB
logfile_path: logs/batcontrol.log

Timezone

This parameter is used to calculate the correct time for your location, as some datasources deliver UTC based timeslots. Valid values are tz based(wikipedia).

Logfile

Logpath

logfile_path: logs/batcontrol.log

Describes where logfiles are stored. The path can be relative or absolute.

Log Level

loglevel: debug

Increases or decreases the verbosity of log messages. Valid entries are

  • error
  • warning
  • info
  • debug

The recommended settings are info and debug. To reduce the noise in the default setup, we introduced

log_everything: false

Setting this to true, the logmessage from Fronius authentication logic + HTTP-Requests are visible in the logfile. These are very verbose messages, which is the reason to only enable it for debugging purposes.

Enable / Disable logfile

logfile_enabled: true

This parameter is used to enable a pyhsical logfile. Console out is still active if this value is set to false. This can be useful in docker-based environments.

Logsize

max_logfile_size: 200 #Kb

Amount of logsize bevore a logswitch is applied. The logs switches from log.1 to log.2 and back. Each file will be the size of max_logfile_size. This is used to avoid a filling up disk.

Clone this wiki locally