Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ############################################################################################
- [enabled_plugins]
- # List all plugins to enable pxx = PluginName
- # Enable the ScotteCom plugin to communicate with a NBE scotty/woody/biocomfort pellet burner
- #p01 = ScotteCom
- # CustomAlarms lets you define limits and actions for data items
- #p02 = CustomAlarms
- # RaspberryGPIO works only on a raspberry pi
- #p03 = RaspberryGPIO
- # The calculate plugin lets you calculate your own data from existing data items
- #p04 = Calculate
- # The OWFS plugin connects to a running owfs server on localhost:4304 to read onewire devices
- p05 = OWFS
- # The SiloLevel plugin adds parameters for silo fill up level and silo fill up date.
- # When present PellmonWeb displays a graph with calculated silo level from fill up time to present time
- #p06 = SiloLevel
- # Testplugin is a plugin template that does nothing useful
- #p99 = TestPlugin
- ############################################################################################
- [plugin_ScotteCom]
- # The settings in this section are passed to the ScotteCom plugin
- # Serial port device name, eg. /dev/ttyUSB0
- # Remove to run with dummy data for testing
- serialport = /dev/ttyUSB0
- # Chip version string or 'auto'
- chipversion = auto
- [plugin_TestPlugin]
- # Items in sections named as "plugin_xxx" are passed to a plugin named "xxx"
- # This plugin adds the items listed as dummy parameters
- plugindata1 = 123
- [plugin_CustomAlarms]
- # Define an alarm by creating four parameters:
- # xxx_item = item to read
- # xxx_comparator = >|>=|<|<=|==|!=
- # xxx_level = level to compare against
- # xxx_status = item to hold the result of the comparision, 1=True, 0=False
- # optional:
- # xxx_enum = FalseText|TrueText
- # example:
- alarm1_item = boiler_temp
- alarm1_comparator = >
- alarm1_level = 90
- alarm1_status = boiler_temp_supervision
- alarm1_enum = OK|Boiler temperature too high
- alarm2_item = chute_temp
- alarm2_comparator = >
- alarm2_level = 45
- alarm2_status = boiler_temp_supervision
- alarm2_enum = OK|Chute temperature too high
- [plugin_Calculate]
- # This plugin implements a simple stack engine.
- # xxx_calc = operator|value;operator|value;...
- # xxx_read = item name to read to execute the calculation and retrive the result
- # 'value' pushes the value to the stack, 'operator' pops one or several values,
- # executes a calculation on it/them and pushes the result back to the stack
- # Operators can be: ADD, SUB, MUL, DIV, GET, SET, EXEC, >, <, ==, !=, IF, POP
- # GET pops an item name, reads the value and pushes the value or 'error'
- # SET pops an item name and a value, then writes the value to the item name and pushes the result 'ok' or 'error'. ex: 85;boiler_temp;SET
- # IF pops three values, first the value to push back when False, then the value to push back when True,
- # and then the value to evaluate. Ex: 0;123;456;IF will leave '456' on the stack, while 1;123;456 will
- # leave '123' on the stack
- # EXEC pops a calculate item name, gets its value, executes it and pushes the result
- # POP discards one value from the stack
- # example: get boiler temperature divided by two from an item named 'half_boiler_temp'
- calc1_calc = boiler_temp;GET;2;DIV
- calc1_read = half_boiler_temp
- [plugin_OWFS]
- # Data item name = owfs_path
- # This two reads the value and type from the fake sensor available in the default owfs configuration
- Botten_tekniktank = 10.67C6697351FF/temperature
- Mitten_tekniktank = 10.67C6697351FF/temperature
- Toppen_tekniktank = 10.67C6697351FF/temperature
- Framledning = 10.67C6697351FF/temperature
- Utemperatur = 10.67C6697351FF/temperature
- Returledning = 10.67C6697351FF/temperature
- Innetemperatur = 10.67C6697351FF/temperature
- Vinkallare = 10.67C6697351FF/temperature
- Toppen_slavtank = 10.67C6697351FF/temperature
- Botten_slavtank = 10.67C6697351FF/temperature
- Panna = 10.67C6697351FF/temperature
- Solpaneler = 10.67C6697351FF/temperature
- ############################################################################################
- [conf]
- # Full path to the rrd database, if it does not exist it is created
- # Remove if you do not want data polling
- database = /usr/local/var/lib/pellmon/rrd.db
- # Full path to the optional persistent rrd database. It is copied
- # over the database file at startup, and on shutdown the database
- # is copied to the persistent_db file. Useful if the database
- # is in a ramdisk
- #persistent_db = /usr/local/var/lib/pellmon/nvrrd.db
- # If persistent_db is in use the database is copied to
- # persistent_db every db_store_interval seconds
- db_store_interval = 7200
- # Full path to the logfile
- logfile = /usr/local/var/log/pellmon/pellmon.log
- # logging level = info/debug
- loglevel = info
- # Port number for the webserver
- port = 8081
- # rrd database update interval in seconds
- pollinterval = 30
- [authentication]
- # username = password, for webinterface
- testuser = 12345
- [rrd_ds_names]
- # These are the datasource names used when creating the rrd database,
- # "dxx = datasource name". The left value (dxx) is used to match the
- # datasource names to the actual data to write to it, in the
- # pollvalues section. The datasource names can be anything, but
- # the defaults are the same as the data item names in the pollvalues section
- # The rrd database is created with the datasources in the order they appear here.
- # Delete or rename the rrd database file after adding/removing ds-names
- # or use some other method to add the new ds-name to the existing rrd database
- d01 = botten_tekniktank
- d02 = mitten_tekniktank
- d03 = toppen_tekniktank
- d04 = framledning
- d05 = utemperatur
- d06 = returledning
- d07 = innetemperatur
- d08 = vinkallare
- d09 = feeder_time
- d10 = feeder_capacity
- d11 = _logtick
- d12 = toppen_slavtank
- d13 = botten_slavtank
- d14 = panna
- d15 = solpaneler
- d16 = _extra5
- d17 = _extra6
- d18 = _extra7
- d19 = _extra8
- d20 = _extra9
- [rrd_ds_types]
- # Optional rrd data source type definitions for the datasource names in the
- # rrd_ds-names section. If no type is defined for a datasource name the
- # default type is used, "DS:%s:GAUGE:%u:U:U", where %s is replaced with the
- # datasource name and %u is replaced with 4*pollinterval
- d09 = DS:%s:COUNTER:%u:U:U
- d11 = DS:%s:COUNTER:%u:U:U
- [pollvalues]
- # Data values to write to the rrd database.
- # "dxx = parameter/data name"
- # The data names are read from the protocol plugins with the getItem method
- # and written to the rrd database ds-name that has a matching "dxx".
- # Data names starting with an underscore are handled by special cases in the code,
- # eg. _logtick is updated whenever a protocol reports that an "event" has occured.
- # In general underscored names are written as undefined, so they can be used to
- # write "spare" ds-names in an rrd database, to avoid having to recreate the rrd
- # when more sensors are added.
- # Whenever something is written to the log, _logtick is also increased.
- # It is used to draw a tickmark in the graph
- d01 = botten_tekniktank
- d02 = mitten_tekniktank
- d03 = toppen_tekniktank
- d04 = framledning
- d05 = utemperatur
- d06 = returledning
- d07 = innetemperatur
- d08 = vinkallare
- d09 = _feeder_time
- d10 = _feeder_capacity
- # Whenever something is written to the log, _logtick is also increased.
- # It is used to draw a tickmark in the graph
- d11 = _logtick
- d12 = toppen_slavtank
- d13 = botten_slavtank
- d14 = panna
- d15 = solpaneler
- d16 = _extra5
- d17 = _extra6
- d18 = _extra7
- d19 = _extra8
- d20 = _extra9
- [graphcolors]
- # To add a ds-name from the rrd-database to the graph, set
- # dxx = #hexcolorvalue
- d01 = #FF0000
- d02 = #00FF00
- d03 = #0000FF
- d04 = #FFFF00
- d05 = #FF05FF
- d06 = #0101FF
- d07 = #207F20
- d08 = #2F2FFF
- d12 = #FF0020
- d13 = #FF0030
- d14 = #FF0040
- d15 = #FF0050
- ############################################################################################
- [email]
- # Uncomment and set these for email on mode/alarm status changes
- # Uses TLS, this works for gmail:
- #server=smtp.gmail.com:587
- #username=user
- #password=12345
- #from=user@mail.com
- #to=user@mail.com
- #subject=PellMon status
- # Send email when any of these change
- #conditions=alarm,mode,parameter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement