-
Notifications
You must be signed in to change notification settings - Fork 11
/
output.dist.tcl
executable file
·492 lines (463 loc) · 15.8 KB
/
output.dist.tcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
#
# Config File for channel output
#
# Copyright: 2014, iAmShorty
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##################################################################
# General Config
##################################################################
#
# WARNING !!!
# Be careful what you are doing, changing the values and putting in
# wrong variables, can cause the bot to stop working!!!
#
#
# Color Scheme
# all color numbers are the same like they are in mIRC
#
# NOTE:
# colors may or may not work in your irc client
# tested with XChat Azure on MAC, there are no
# colors shown. So don't blame me if the output
# is not colored. Sometimes you have to set channelmode
# in IRC to -c to get colors working
#
# 0 = white
# 1 = black
# 2 = darkblue
# 3 = darkgreen
# 4 = red
# 5 = brown
# 6 = magenta
# 7 = orange
# 8 = yellow
# 9 = lightgreen
# 10 = darkcyan
# 11 = lightcyan
# 12 = lightblue
# 13 = pink
# 14 = darkgrey
# 15 = lightgrey
#
# setting colors with \003X where X is the colorcode
# and resetting color with \003 where color should be
# normal again
#
# other options
#
# \027 = underline
# \002 = bold
#
# reset with \027 or \002 at the end of the value
#
#
# output for user balance
#
# -> %balance_coin%
# -> %balance_user%
# -> %balance_confirmed%
# -> %balance_unconfirmed%
# -> %balance_orphaned%
#
set output_balance "Coin: \0032%balance_coin%\003\
| User: %balance_user%\
| Confirmed: %balance_confirmed%\
| Unconfirmed: %balance_unconfirmed%\
| Orphan: %balance_orphan%"
# different announcements per coin
# use coins set in config.tcl with config option
# -> set poolstocheck "BTC LTC"
# the coins listed here, can be used for different
# announcements per coin. if not set or commented out
# the standard announce will be used for announcing
#
# NOTE:
# coinname must be in lowercase
#
#set output_balance_percoin(alf) "Coin: \0032%balance_coin%\003 - test output alf"
#set output_balance_percoin(elp) "Coin: \0032%balance_coin%\003 - test output elp"
#set output_balance_percoin(mac) "Coin: \0032%balance_coin%\003 - test output mac"
#
# output for current block information
#
# -> %blockstats_coin%
# -> %blockstats_current%
# -> %blockstats_next%
# -> %blockstats_last%
# -> %blockstats_diff%
# -> %blockstats_time%
# -> %blockstats_shares%
# -> %blockstats_timelast%
#
set output_blockinfo "Coin: \0032%blockstats_coin%\003\
| Current Block: %blockstats_current%\
| Next Block: %blockstats_next%\
| Last Block: %blockstats_last%\
| Difficulty: %blockstats_diff%\
| Est. Time to resolve: %blockstats_time% minutes\
| Est. Shares to resolve: %blockstats_shares%\
| Time since last Block: %blockstats_timelast% minutes"
# different announcements per coin
# use coins set in config.tcl with config option
# -> set poolstocheck "BTC LTC"
# the coins listed here, can be used for different
# announcements per coin. if not set or commented out
# the standard announce will be used for announcing
#
# NOTE:
# coinname must be in lowercase
#
#set output_blockinfo_percoin(alf) "Coin: \0032%blockstats_coin%\003 - test output alf"
#set output_blockinfo_percoin(elp) "Coin: \0032%blockstats_coin%\003 - test output elp"
#set output_blockinfo_percoin(mac) "Coin: \0032%blockstats_coin%\003 - test output mac"
#
# output for last block information
#
# -> %blockstats_coin%
# -> %blockstats_lastblock%
# -> %blockstats_lastconfirmed%
# -> %blockstats_lastconfirmations%
# -> %blockstats_lastdifficulty%
# -> %blockstats_lasttimefound%
# -> %blockstats_lastshares%
# -> %blockstats_lastestshares%
# -> %blockstats_lastfinder%
#
set output_lastblock "Coin: \0032%blockstats_coin%\003\
| Block: #%blockstats_lastblock%\
| Status: %blockstats_lastconfirmed%\
| Confirmations: %blockstats_lastconfirmations%\
| Difficulty: %blockstats_lastdifficulty%\
| Time found: %blockstats_lasttimefound%\
| Shares: %blockstats_lastshares%\
| Est. Shares: %blockstats_lastestshares%\
| Finder: %blockstats_lastfinder%"
# different announcements per coin
# use coins set in config.tcl with config option
# -> set poolstocheck "BTC LTC"
# the coins listed here, can be used for different
# announcements per coin. if not set or commented out
# the standard announce will be used for announcing
#
# NOTE:
# coinname must be in lowercase
#
#set output_lastblock_percoin(alf) "Coin: \0032%blockstats_coin%\003 - test output alf"
#set output_lastblock_percoin(elp) "Coin: \0032%blockstats_coin%\003 - test output elp"
#set output_lastblock_percoin(mac) "Coin: \0032%blockstats_coin%\003 - test output mac"
#
# output for advertising blocks
#
# -> %blockfinder_coinname%
# -> %blockfinder_newblock%
# -> %blockfinder_lastblock%
# -> %blockfinder_laststatus%
# -> %blockfinder_confirmations%
# -> %blockfinder_lastestshares%
# -> %blockfinder_lastshares%
# -> %blockfinder_percentage%
# -> %blockfinder_lastfinder%
# -> %blockfinder_diff%
# -> %blockfinder_worker%
# -> %blockfinder_amount%
# -> %blockfinder_time%
#
#set output_findblocks "Coin: \0032%blockfinder_coinname%\003\
#| New Block: #%blockfinder_newblock%\
#| Last Block: #%blockfinder_lastblock%\
#| Status: %blockfinder_laststatus%\
#| Confirmations: %blockfinder_confirmations%\
#| Est. Shares: %blockfinder_lastestshares%\
#| Shares: %blockfinder_lastshares%\
#| Percentage: %blockfinder_percentage% %\
#| Difficulty: %blockfinder_diff%\
#| Amount: %blockfinder_amount%\
#| Finder: %blockfinder_lastfinder%\
#| Worker: %blockfinder_worker%\
#| Time: %blockfinder_time%"
set output_findblocks "\[\0032%blockfinder_coinname%\003\]\[\002#%blockfinder_newblock%\002\]\[Diff:\00310 %blockfinder_diff%\003\]\[%blockfinder_laststatus%\]\
found by \002%blockfinder_lastfinder%\002 >\
Last Block was #%blockfinder_lastblock% > Shares: %blockfinder_lastshares%\
over %blockfinder_lastestshares% estimated (%blockfinder_percentage% %)\
Confirmations: %blockfinder_confirmations%\
>> Amount:\0033 %blockfinder_amount%\003"
# different announcements per coin
# use coins set in config.tcl with config option
# -> set poolstocheck "BTC LTC"
# the coins listed here, can be used for different
# announcements per coin. if not set or commented out
# the standard announce will be used for announcing
#
# NOTE:
# coinname must be in lowercase
#
#set output_findblocks_percoin(alf) "Coin: \0032%blockfinder_coinname%\003 - test output alf"
#set output_findblocks_percoin(elp) "Coin: \0032%blockfinder_coinname%\003 - test output elp"
#set output_findblocks_percoin(mac) "Coin: \0032%blockfinder_coinname%\003 - test output mac"
#
# output for poolstats
#
# -> %poolstats_coin%
# -> %poolstats_block%
# -> %poolstats_diffchange%
# -> %poolstats_diff%
# -> %poolstats_nextdiff%
# -> %poolstats_esttime%
# -> %poolstats_nethashratevalue%
# -> %poolstats_nethashrate%
# -> %poolstats_sharesvalid%
# -> %poolstats_sharesinvalid%
# -> %poolstats_sharesestimated%
# -> %poolstats_sharesprogress%
# -> %poolstats_poolhashratevalue%
# -> %poolstats_poolhashrate%
# -> %poolstats_poolworkers%
# -> %poolstats_efficiency%
#
set output_poolstats "Pool: \0032%poolstats_coin%\003\
| Block: #%poolstats_block%\
| Diff change in: %poolstats_blocksuntildiffchange% Blocks\
| Pool Diff: %poolstats_diff%\
| Next Diff: %poolstats_nextdiff%\
| Est. Time per Block: %poolstats_esttime% min.\
| Shares valid: %poolstats_sharesvalid%\
| Shares invalid: %poolstats_sharesinvalid%\
| Shares est.: %poolstats_sharesestimated%\
| Progress: %poolstats_sharesprogress% %\
| Hashrate: %poolstats_poolhashrate% %poolstats_poolhashratevalue%\
| Efficiency: %poolstats_efficiency% %\
| Workers: %poolstats_poolworkers%\
| Net Hashrate: %poolstats_nethashrate% %poolstats_nethashratevalue%"
# different announcements per coin
# use coins set in config.tcl with config option
# -> set poolstocheck "BTC LTC"
# the coins listed here, can be used for different
# announcements per coin. if not set or commented out
# the standard announce will be used for announcing
#
# NOTE:
# coinname must be in lowercase
#
#set output_poolstats_percoin(alf) "Coin: \0032%poolstats_coin%\003 - test output alf"
#set output_poolstats_percoin(elp) "Coin: \0032%poolstats_coin%\003 - test output elp"
#set output_poolstats_percoin(mac) "Coin: \0032%poolstats_coin%\003 - test output mac"
#
# output for poolhashrate
#
# -> %poolhashrate_coin%
# -> %poolhashrate_nethashrate%
# -> %poolhashrate_nethashratevalue%
# -> %poolhashrate_poolhashrate%
# -> %poolhashrate_poolhashratevalue%
#
set output_poolhashrate "Pool: \0032%poolhashrate_coin%\003\
| Hashrate: %poolstats_poolhashrate% %poolstats_poolhashratevalue%\
| Net Hashrate: %poolstats_nethashrate% %poolstats_nethashratevalue%"
# different announcements per coin
# use coins set in config.tcl with config option
# -> set poolstocheck "BTC LTC"
# the coins listed here, can be used for different
# announcements per coin. if not set or commented out
# the standard announce will be used for announcing
#
# NOTE:
# coinname must be in lowercase
#
#set output_poolhashrate_percoin(alf) "Coin: \0032%poolstats_coin%\003 - test output alf"
#set output_poolhashrate_percoin(elp) "Coin: \0032%poolstats_coin%\003 - test output elp"
#set output_poolhashrate_percoin(mac) "Coin: \0032%poolstats_coin%\003 - test output mac"
#
# output for pooldiff
#
# -> %pooldiff_coin%
# -> %pooldiff_blocksuntildiffchange%
# -> %pooldiff_diff%
# -> %pooldiff_nextdiff%
#
set output_poolhashrate "Pool: \0032%pooldiff_coin%\003\
| Diff change in: %pooldiff_blocksuntildiffchange% Blocks\
| Pool Diff: %pooldiff_diff%\
| Next Diff: %pooldiff_nextdiff%"
# different announcements per coin
# use coins set in config.tcl with config option
# -> set poolstocheck "BTC LTC"
# the coins listed here, can be used for different
# announcements per coin. if not set or commented out
# the standard announce will be used for announcing
#
# NOTE:
# coinname must be in lowercase
#
#set output_pooldiff_percoin(alf) "Coin: \0032%poolstats_coin%\003 - test output alf"
#set output_pooldiff_percoin(elp) "Coin: \0032%poolstats_coin%\003 - test output elp"
#set output_pooldiff_percoin(mac) "Coin: \0032%poolstats_coin%\003 - test output mac"
# output for roundstats
#
# -> %roundstats_coin%
# -> %roundstats_block%
# -> %roundstats_diff%
# -> %roundstats_estshares%
# -> %roundstats_allshares%
# -> %roundstats_validshares%
# -> %roundstats_invalidshares%
# -> %roundstats_progress%
#
set output_roundstats "Pool: \0032%roundstats_coin%\003\
| Block: #%roundstats_block%\
| Difficulty: %roundstats_diff%\
| Estimated Shares: %roundstats_estshares%\
| Sharecount: %roundstats_allshares%\
| Shares valid: %roundstats_validshares%\
| Shares invalid: %roundstats_invalidshares%\
| Progress: %roundstats_progress%"
# different announcements per coin
# use coins set in config.tcl with config option
# -> set poolstocheck "BTC LTC"
# the coins listed here, can be used for different
# announcements per coin. if not set or commented out
# the standard announce will be used for announcing
#
# NOTE:
# coinname must be in lowercase
#
#set output_roundstats_percoin(alf) "Coin: \0032%roundstats_coin%\003 - test output alf"
#set output_roundstats_percoin(elp) "Coin: \0032%roundstats_coin%\003 - test output elp"
#set output_roundstats_percoin(mac) "Coin: \0032%roundstats_coin%\003 - test output mac"
#
# output for userstats
#
# -> %userstats_coin%
# -> %userstats_user%
# -> %userstats_hashrate%
# -> %userstats_validround%
# -> %userstats_invalidround%
# -> %userstats_sharerate%
#
set output_userstats "Pool: \0032%userstats_coin%\003\
| User: %userstats_user%\
| Hashrate: %userstats_hashrate% KH/s\
| Valid this round: %userstats_validround%\
| Invalid this round: %userstats_invalidround%\
| Sharerate: %userstats_sharerate% S/s"
# different announcements per coin
# use coins set in config.tcl with config option
# -> set poolstocheck "BTC LTC"
# the coins listed here, can be used for different
# announcements per coin. if not set or commented out
# the standard announce will be used for announcing
#
# NOTE:
# coinname must be in lowercase
#
#set output_userstats_percoin(alf) "Coin: \0032%userstats_coin%\003 - test output alf"
#set output_userstats_percoin(elp) "Coin: \0032%userstats_coin%\003 - test output elp"
#set output_userstats_percoin(mac) "Coin: \0032%userstats_coin%\003 - test output mac"
#
# output for general worker information
#
# -> %workers_username%
# -> %workers_coinname%
# -> %workers_online_count%
# -> %workers_offline_count%
# -> %workers_workername%
# -> %workers_workerhashrate%
#
set output_workerinfo "User %workers_username%\
has %workers_online_count% active\
and %workers_offline_count% inactive workers\
on %workers_coinname% Pool"
# different announcements per coin
# use coins set in config.tcl with config option
# -> set poolstocheck "BTC LTC"
# the coins listed here, can be used for different
# announcements per coin. if not set or commented out
# the standard announce will be used for announcing
#
# NOTE:
# coinname must be in lowercase
#
#set output_workerinfo_percoin(alf) "Coin: \0032%workers_coinname%\003 - test output alf"
#set output_workerinfo_percoin(elp) "Coin: \0032%workers_coinname%\003 - test output elp"
#set output_workerinfo_percoin(mac) "Coin: \0032%workers_coinname%\003 - test output mac"
#
# output for income calculator
#
# -> %income_coin%
# -> %income_hashrate%
# -> %income_diff%
# -> %income_hour%
# -> %income_day%
#
set output_incomeinfo "\[\0032%income_coin%\003\] estimated income\
for %income_hashrate% with current difficulty\
of %income_diff% = %income_hour% %income_coin% per hour,\
%income_day% %income_coin% per day"
# different announcements per coin
# use coins set in config.tcl with config option
# -> set poolstocheck "BTC LTC"
# the coins listed here, can be used for different
# announcements per coin. if not set or commented out
# the standard announce will be used for announcing
#
# NOTE:
# coinname must be in lowercase
#
#set output_incomeinfo_percoin(alf) "Coin: \0032%income_coin%\003 - test output alf"
#set output_incomeinfo_percoin(elp) "Coin: \0032%income_coin%\003 - test output elp"
#set output_incomeinfo_percoin(mac) "Coin: \0032%income_coin%\003 - test output mac"
##########################################################################################
#################### no pool realated output ####################
##########################################################################################
#
# output for marketdata
#
# - Vircurex
#
# -> %marketdata_market%
# -> %marketdata_trade_basecoin%
# -> %marketdata_trade_altcoin%
# -> %marketdata_trade_price%
#
set output_marketdata_vircurex "Market: \0032%marketdata_market%\003\
| Basecoin: %marketdata_trade_basecoin%\
| Altcoin: %marketdata_trade_altcoin%\
| Latest Price: %marketdata_trade_price% %marketdata_trade_altcoin%"
#
# Coinchoose output
#
# -> %coinchoose_name%
# -> %coinchoose_algo%
# -> %coinchoose_currentblocks%
# -> %coinchoose_diff%
# -> %coinchoose_exchange%
# -> %coinchoose_price%
# -> %coinchoose_reward%
# -> %coinchoose_networkhashrate%
# -> %coinchoose_networkhashratevalue%
# -> %coinchoose_avgprofit%
# -> %coinchoose_avghashrate%
# -> %coinchoose_avghashvalue%
#
set output_coinchoose "Coin: \0032%coinchoose_name%\003\
| Algo: %coinchoose_algo%\
| Current Blocks: %coinchoose_currentblocks%\
| Diff: %coinchoose_diff%\
| Price: %coinchoose_price% BTC\
| Blockreward: %coinchoose_reward%\
| Avg. Profit: %coinchoose_avgprofit% %\
| Network Hashrate: %coinchoose_networkhashrate% %coinchoose_networkhashratevalue%\
| Avg. Hashrate: %coinchoose_avghashrate% %coinchoose_avghashvalue%\
| Exchange: %coinchoose_exchange%"
putlog "===>> Mining-Pool-Outputconfig - Version $scriptversion loaded"