Advertisement
Guest User

Untitled

a guest
Jan 15th, 2014
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ############################################################################################
  2.  
  3. [enabled_plugins]
  4. # List all plugins to enable pxx = PluginName
  5. # Enable the ScotteCom plugin to communicate with a NBE scotty/woody/biocomfort pellet burner
  6. #p01 = ScotteCom
  7.  
  8. # CustomAlarms lets you define limits and actions for data items
  9. #p02 = CustomAlarms
  10.  
  11. # RaspberryGPIO works only on a raspberry pi
  12. #p03 = RaspberryGPIO
  13.  
  14. # The calculate plugin lets you calculate your own data from existing data items
  15. #p04 = Calculate
  16.  
  17. # The OWFS plugin connects to a running owfs server on localhost:4304 to read onewire devices
  18. p05 = OWFS
  19.  
  20. # The SiloLevel plugin adds parameters for silo fill up level and silo fill up date.
  21. # When present PellmonWeb displays a graph with calculated silo level from fill up time to present time
  22. #p06 = SiloLevel
  23.  
  24. # Testplugin is a plugin template that does nothing useful
  25. #p99 = TestPlugin
  26.  
  27. ############################################################################################
  28.  
  29. [plugin_ScotteCom]
  30. # The settings in this section are passed to the ScotteCom plugin
  31.  
  32. # Serial port device name, eg. /dev/ttyUSB0
  33. # Remove to run with dummy data for testing
  34. serialport = /dev/ttyUSB0
  35.  
  36. # Chip version string or 'auto'
  37. chipversion = auto
  38.  
  39. [plugin_TestPlugin]
  40. # Items in sections named as "plugin_xxx" are passed to a plugin named "xxx"
  41. # This plugin adds the items listed as dummy parameters
  42. plugindata1 = 123
  43.  
  44. [plugin_CustomAlarms]
  45. # Define an alarm by creating four parameters:
  46. # xxx_item = item to read
  47. # xxx_comparator = >|>=|<|<=|==|!=
  48. # xxx_level = level to compare against
  49. # xxx_status = item to hold the result of the comparision, 1=True, 0=False
  50. # optional:
  51. # xxx_enum = FalseText|TrueText
  52.  
  53. # example:
  54. alarm1_item = boiler_temp
  55. alarm1_comparator = >
  56. alarm1_level = 90
  57. alarm1_status = boiler_temp_supervision
  58. alarm1_enum = OK|Boiler temperature too high
  59.  
  60. alarm2_item = chute_temp
  61. alarm2_comparator = >
  62. alarm2_level = 45
  63. alarm2_status = boiler_temp_supervision
  64. alarm2_enum = OK|Chute temperature too high
  65.  
  66. [plugin_Calculate]
  67. # This plugin implements a simple stack engine.
  68. # xxx_calc = operator|value;operator|value;...
  69. # xxx_read = item name to read to execute the calculation and retrive the result
  70. # 'value' pushes the value to the stack, 'operator' pops one or several values,
  71. # executes a calculation on it/them and pushes the result back to the stack
  72. # Operators can be: ADD, SUB, MUL, DIV, GET, SET, EXEC, >, <, ==, !=, IF, POP
  73. # GET pops an item name, reads the value and pushes the value or 'error'
  74. # 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
  75. # IF pops three values, first the value to push back when False, then the value to push back when True,
  76. # and then the value to evaluate. Ex: 0;123;456;IF will leave '456' on the stack, while 1;123;456 will
  77. # leave '123' on the stack
  78. # EXEC pops a calculate item name, gets its value, executes it and pushes the result
  79. # POP discards one value from the stack
  80.  
  81. # example: get boiler temperature divided by two from an item named 'half_boiler_temp'
  82. calc1_calc = boiler_temp;GET;2;DIV
  83. calc1_read = half_boiler_temp
  84.  
  85. [plugin_OWFS]
  86. # Data item name = owfs_path
  87. # This two reads the value and type from the fake sensor available in the default owfs configuration
  88. Botten_tekniktank = 10.67C6697351FF/temperature
  89. Mitten_tekniktank = 10.67C6697351FF/temperature
  90. Toppen_tekniktank = 10.67C6697351FF/temperature
  91. Framledning = 10.67C6697351FF/temperature
  92. Utemperatur = 10.67C6697351FF/temperature
  93. Returledning = 10.67C6697351FF/temperature
  94. Innetemperatur = 10.67C6697351FF/temperature
  95. Vinkallare = 10.67C6697351FF/temperature
  96. Toppen_slavtank = 10.67C6697351FF/temperature
  97. Botten_slavtank = 10.67C6697351FF/temperature
  98. Panna = 10.67C6697351FF/temperature
  99. Solpaneler = 10.67C6697351FF/temperature
  100.  
  101. ############################################################################################
  102.  
  103. [conf]
  104. # Full path to the rrd database, if it does not exist it is created
  105. # Remove if you do not want data polling
  106. database = /usr/local/var/lib/pellmon/rrd.db
  107.  
  108. # Full path to the optional persistent rrd database. It is copied
  109. # over the database file at startup, and on shutdown the database
  110. # is copied to the persistent_db file. Useful if the database
  111. # is in a ramdisk
  112. #persistent_db = /usr/local/var/lib/pellmon/nvrrd.db
  113.  
  114. # If persistent_db is in use the database is copied to
  115. # persistent_db every db_store_interval seconds
  116. db_store_interval = 7200
  117. # Full path to the logfile
  118. logfile = /usr/local/var/log/pellmon/pellmon.log
  119.  
  120. # logging level = info/debug
  121. loglevel = info
  122.  
  123. # Port number for the webserver
  124. port = 8081
  125.  
  126. # rrd database update interval in seconds
  127. pollinterval = 30
  128.  
  129. [authentication]
  130. # username = password, for webinterface
  131. testuser = 12345
  132.  
  133. [rrd_ds_names]
  134. # These are the datasource names used when creating the rrd database,
  135. # "dxx = datasource name". The left value (dxx) is used to match the
  136. # datasource names to the actual data to write to it, in the
  137. # pollvalues section. The datasource names can be anything, but
  138. # the defaults are the same as the data item names in the pollvalues section
  139. # The rrd database is created with the datasources in the order they appear here.
  140. # Delete or rename the rrd database file after adding/removing ds-names
  141. # or use some other method to add the new ds-name to the existing rrd database
  142. d01 = botten_tekniktank
  143. d02 = mitten_tekniktank
  144. d03 = toppen_tekniktank
  145. d04 = framledning
  146. d05 = utemperatur
  147. d06 = returledning
  148. d07 = innetemperatur
  149. d08 = vinkallare
  150. d09 = feeder_time
  151. d10 = feeder_capacity
  152. d11 = _logtick
  153. d12 = toppen_slavtank
  154. d13 = botten_slavtank
  155. d14 = panna
  156. d15 = solpaneler
  157. d16 = _extra5
  158. d17 = _extra6
  159. d18 = _extra7
  160. d19 = _extra8
  161. d20 = _extra9
  162.  
  163. [rrd_ds_types]
  164. # Optional rrd data source type definitions for the datasource names in the
  165. # rrd_ds-names section. If no type is defined for a datasource name the
  166. # default type is used, "DS:%s:GAUGE:%u:U:U", where %s is replaced with the
  167. # datasource name and %u is replaced with 4*pollinterval
  168. d09 = DS:%s:COUNTER:%u:U:U
  169. d11 = DS:%s:COUNTER:%u:U:U
  170.  
  171. [pollvalues]
  172. # Data values to write to the rrd database.
  173. # "dxx = parameter/data name"
  174. # The data names are read from the protocol plugins with the getItem method
  175. # and written to the rrd database ds-name that has a matching "dxx".
  176. # Data names starting with an underscore are handled by special cases in the code,
  177. # eg. _logtick is updated whenever a protocol reports that an "event" has occured.
  178. # In general underscored names are written as undefined, so they can be used to
  179. # write "spare" ds-names in an rrd database, to avoid having to recreate the rrd
  180. # when more sensors are added.
  181. # Whenever something is written to the log, _logtick is also increased.
  182. # It is used to draw a tickmark in the graph
  183.  
  184. d01 = botten_tekniktank
  185. d02 = mitten_tekniktank
  186. d03 = toppen_tekniktank
  187. d04 = framledning
  188. d05 = utemperatur
  189. d06 = returledning
  190. d07 = innetemperatur
  191. d08 = vinkallare
  192. d09 = _feeder_time
  193. d10 = _feeder_capacity
  194. # Whenever something is written to the log, _logtick is also increased.
  195. # It is used to draw a tickmark in the graph
  196. d11 = _logtick
  197. d12 = toppen_slavtank
  198. d13 = botten_slavtank
  199. d14 = panna
  200. d15 = solpaneler
  201. d16 = _extra5
  202. d17 = _extra6
  203. d18 = _extra7
  204. d19 = _extra8
  205. d20 = _extra9
  206.  
  207.  
  208. [graphcolors]
  209. # To add a ds-name from the rrd-database to the graph, set
  210. # dxx = #hexcolorvalue
  211. d01 = #FF0000
  212. d02 = #00FF00
  213. d03 = #0000FF
  214. d04 = #FFFF00
  215. d05 = #FF05FF
  216. d06 = #0101FF
  217. d07 = #207F20
  218. d08 = #2F2FFF
  219. d12 = #FF0020
  220. d13 = #FF0030
  221. d14 = #FF0040
  222. d15 = #FF0050
  223.  
  224. ############################################################################################
  225.  
  226. [email]
  227. # Uncomment and set these for email on mode/alarm status changes
  228. # Uses TLS, this works for gmail:
  229. #server=smtp.gmail.com:587
  230. #username=user
  231. #password=12345
  232. #from=user@mail.com
  233. #to=user@mail.com
  234. #subject=PellMon status
  235. # Send email when any of these change
  236. #conditions=alarm,mode,parameter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement