Mercurial > bottledash
comparison dash.py @ 29:140c9023df7a
added important default servers
author | sean |
---|---|
date | Fri, 14 Aug 2015 15:32:57 +0200 |
parents | af280057d5fa |
children | a957a56bb694 |
comparison
equal
deleted
inserted
replaced
28:af280057d5fa | 29:140c9023df7a |
---|---|
92 # Settings: | 92 # Settings: |
93 # example: | 93 # example: |
94 # -------------------- | 94 # -------------------- |
95 # [settings] | 95 # [settings] |
96 # show_top_bar=True | 96 # show_top_bar=True |
97 # rows=3 | |
97 # -------------------- | 98 # -------------------- |
98 # options: | 99 # options: |
99 # show_top_bar (True / False) [optional] | 100 # show_top_bar (True / False) [optional] |
100 # If True, the dashboard will show the current date and the time on the top | 101 # If True, the dashboard will show the current date and the time on the top |
101 # if False, the dashboard will not show a top-bar | 102 # if False, the dashboard will not show a top-bar |
102 # default: True | 103 # default: False |
103 # hint: the top-bar has got a height of 5%! | 104 # hint: the top-bar has got a height of 5%! |
105 # | |
106 # rows (integer-number) [recommended] | |
107 # the number or rows for the tiles. Not every number makes sence since | |
108 # you usually cannot scroll on the screen. This only works on the default | |
109 # tile template - it is always possivle to write an own template! | |
110 # example: | |
111 # If there are 4 tiles in 2 rows the reult would be the following: | |
112 # ▢▢ | |
113 # ▢▢ | |
114 # | |
115 # if there are 3 tiles in 3 rows the result would be the following | |
116 # ▢ | |
117 # ▢ | |
118 # ▢ | |
119 # | |
120 # if there re 12 tiles in 3 rows the reult would be the following | |
121 # ▢▢▢▢ | |
122 # ▢▢▢▢ | |
123 # ▢▢▢▢ | |
124 # | |
125 | |
104 | 126 |
105 [settings] | 127 [settings] |
106 show_top_bar=False | 128 show_top_bar=False |
107 rows=2 | 129 rows=3 |
108 | 130 |
109 # Tiles: | 131 # Tiles: |
110 # example: | 132 # example: |
111 # -------------------- | 133 # -------------------- |
112 # [tile1] | 134 # [tile1] |
113 # type=mon | 135 # type=mon |
114 # source=192.168.0.2 | 136 # source=192.168.0.2 |
115 # status=up | 137 # status=up |
116 # -------------------- | 138 # -------------------- |
117 # options: | 139 # options: |
118 # type (mon / d3js) [required] | 140 # type (mon / web_view) [required] |
119 # tells the program what kind of tile you need. | 141 # tells the program what kind of tile you need. |
120 # a "mon" tile can be used for IT infrastructure monitoring purposes | 142 # a "mon" tile can be used for IT infrastructure monitoring purposes |
121 # a d3js tile can be used to display a chart | 143 # a "web_view" tile can be used to display a chart |
122 # default: - | 144 # default: - |
123 # | 145 # |
124 # source (<IP> or <FQDN>) [required for mon-types] | 146 # source (<IP> or <FQDN>) [required for mon-types] |
125 # ONLY FOR MON-Type tiles! | 147 # ONLY FOR MON-Type tiles! |
126 # tells the tile which resource to watch | 148 # tells the tile which resource to watch |
131 # | 153 # |
132 # script: (name of a script without extension) [required for d3js-types0] | 154 # script: (name of a script without extension) [required for d3js-types0] |
133 # | 155 # |
134 [tile1] | 156 [tile1] |
135 type=mon | 157 type=mon |
136 source=red2.rgb.intevation.de | 158 source=red2-Bottle-App |
137 status=wait | 159 status=wait |
138 | 160 |
139 [tile2] | 161 [tile2] |
140 type=mon | 162 type=mon |
141 source=192.168.2.3 | 163 source=Intevation_Homepage |
142 status=wait | 164 status=wait |
143 | 165 |
144 [tile3] | 166 [tile3] |
145 type=mon | 167 type=mon |
146 source=192.168.4.3 | 168 source=mpuls-jmd-demo |
147 status=wait | 169 status=wait |
148 | 170 |
149 [tile4] | 171 [tile4] |
172 type=mon | |
173 source=aise-icn | |
174 status=wait | |
175 | |
176 [tile5] | |
177 type=mon | |
178 source=mpuls-s_bew_prev | |
179 status=wait | |
180 | |
181 [tile6] | |
150 type=web_view | 182 type=web_view |
151 div_name=techintern | 183 div_name=techintern |
152 script=display_issues_techintern | 184 script=display_issues_techintern |
153 """) | 185 """) |
154 file.close() | 186 file.close() |