121121# strip is identified by a unique <status id>. Each status strip is
122122# defined by a name, an icon and a serie of lines described as follow:
123123#
124+ # web.status.<page id>.visibility=<visibility formula>
125+ #
126+ # <visibility forlula> should be a valid javascript formula returning
127+ # 0: to hide the row
128+ # anything else but 0: show the row
129+ #
124130# web.status.<page id>.content.<status id>.name=<display name>
125131# web.status.<page id>.content.<status id>.icon=<display icon>
126132# web.status.<page id>.content.<status id>.line.<line number>=<parameter>
158164# Percent(value,total)
159165# Print percentage of value compared to total
160166#
161- # ProgressBar(value,total)
167+ # ProgressBar(value,total,warning, danger )
162168# Draw a progressbar representing the value compared to total.
163169# [=========------------]
164- #
170+ # The default color of pregressbar is blue.
171+ # If warning value is lower than critical, progressbar color will
172+ # be orange if percentage is higher than warning value and red
173+ # if the percentage is higher than danger value
174+ # If warning value is higher than critical, progressbar color will
175+ # be orange if percentage is lower than warning value and red
176+ # if the percentage is lower than danger value
177+ #
178+ # JustGageBar(title, label,min, value, max, width, height, levelColors, warning, critical)
179+ # Draw a half-circular gauge
180+ # title : Title of the gauge (located on to of the gauge)
181+ # label : Label of the gauge (located under the value)
182+ # min : min value of the gauge
183+ # value : value to be drawn
184+ # max : max value of the gauge
185+ # width, height : size of the gauge
186+ # levelColors : Array defining colors of each level [normal,warning,critical]
187+ # (in Hex format), default: green, orange and red.
188+ # Default colors are available into the array 'percentColors'.
189+ # warning : Warning level (in %) used to define color (default: 33)
190+ # critical : Critical level (in %) used to define color (default: 66)
191+ #
165192# Plural (value)
166193# Print 's ' if value > 1 or ' ' if not.
167194#
171198# display on screen the current time and will simulate the
172199# seconds by incrementing them periodically.
173200#
174- # Label(data,formula, text, LEVEL )
175- # Badge(data,formula, text, LEVEL )
201+ # Label(data,formula, text, level )
202+ # Badge(data,formula, text, level )
176203# This function will write a label/badge with a defined
177204# background color if the formula return TRUE.
178205# data : data to use with the formula
179206# formula : formula evaluated in regards to data to determine
180207# if label/badge has to be printed
181208# text : text to be displayed
182- # LEVEL : 'default' or 'success' or 'warning' or 'important'
183- # or 'info' or or 'inverse'
209+ # level : 'default' (grey), 'primary' (blue label/grey badge),
210+ # 'success' (green), 'info' (cyan), 'warning' (orange)
211+ # or 'danger' (red)
184212#
185213# The statistic page is fully configurable.
186214# It is possible to define multiple pages. Each page is identified by
212240# <parameter> and <value> can be find into the same web page as previous
213241# parameter. This allow to customize the graph and axis.
214242#
243+ # Example file are available in the template directory (prefixed by 'example').
244+ # To understand how a feature is behaving, you can include this example file
245+ # using the 'include' directive.
246+ # These include directive are already written (commented) into the default
247+ # configuration file: raspbian.conf
248+ # When configuration files change, it is required to restart rpimonitor.
215249#######################################################################
216250
217251#web.friends.1.name=Raspberry Pi
@@ -228,6 +262,11 @@ web.page.pagetitle='RPi-Monitor ('+data.hostname+')'
228262web.status.1.name=Raspberry Pi
229263web.statistics.1.name=Raspberry Pi
230264
265+ #include=/etc/rpimonitor/template/example.justgage.conf
266+ #include=/etc/rpimonitor/template/example.badge_and_label.conf
267+ #include=/etc/rpimonitor/template/example.progressbar.conf
268+ #include=/etc/rpimonitor/template/example.visibility.conf
269+
231270include=/etc/rpimonitor/template/version.conf
232271include=/etc/rpimonitor/template/uptime.conf
233272include=/etc/rpimonitor/template/cpu.conf
@@ -241,3 +280,6 @@ include=/etc/rpimonitor/template/network.conf
241280#include=/etc/rpimonitor/template/storage.conf
242281#include=/etc/rpimonitor/template/services.conf
243282#include=/etc/rpimonitor/template/wlan.conf
283+ #include=/etc/rpimonitor/template/dht11.conf
284+
285+
0 commit comments