-
Notifications
You must be signed in to change notification settings - Fork 10
/
Cryptometer-Medium.ini
499 lines (440 loc) · 13.9 KB
/
Cryptometer-Medium.ini
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
493
494
495
496
497
498
499
; ------------------------------------------------------------------------
; _ ___ _______ _ ___ __ __
; | | / (_)___ / / __ \ | | / (_)___/ /___ ___ / /______
; | | /| / / / __ \/ / / / / | | /| / / / __ / __ \/ _ \/ __/ ___/
; | |/ |/ / / / / / / /_/ / | |/ |/ / / /_/ / /_/ / __/ /_(__ )
; |__/|__/_/_/ /_/_/\____/ |__/|__/_/\__,_/\__, /\___/\__/____/
; /____/
;
; Note: This is not an official Win10Widgets.com widget, but does depend
; on Win10 widgets as it inherits the coloring/styles.
;
; @link http://win10widgets.com
;
; ------------------------------------------------------------------------
[Metadata]
Name=Cryptometer (medium)
Author=Ben Kuhl
Information=Tracks a given set of cryptocurrencies. For the README, visit https://github.com/bkuhl/cryptometer or from the Rainmeter window, right click the "Cryptometer" directory and choose "Open Folder"
License=Creative Commons BY-NC-SA 4.0
Version=1.0.1
[Variables]
@Include1=#@#variables.ini
@Include2=#@#styles.ini
@Include3=#@#background.ini
BackgroundHeight=160
LeftPadding=10
TopPadding=10
RowHeight=24
AutoBorder=1
APIKey=YOUR-API-KEY-GOES-HERE
RegEx=(?siU)"price":\s*(\d*\.\d{0,2}?).*percent_change_1h":\s*([-+]?\d*\.\d{0,2}?).*percent_change_24h":\s*([-+]?\d*\.\d{0,2}?).*percent_change_7d":\s*([-+]?\d*\.\d{0,2}?)
UserAgentString=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
# Adjusts the distance columns are from the left of the widget
ColumnValueLeftPadding=(#LeftPadding#+50)
Column1hrLeftPadding=(#LeftPadding#+140)
Column24hrLeftPadding=(#LeftPadding#+220)
Column7dLeftPadding=(#LeftPadding#+290)
[StyleGreenText]
FontColor=0,153,51,255
[StyleRedText]
FontColor=210,72,54,255
# Column Headers__________________________________________________________________
[MeasureBTCUSDValue]
Measure=Plugin
Plugin=WebParser
URL=[MeasureBTC]
StringIndex=1
[MeterColumn1hr]
Meter=String
MeterStyle=StyleSmallText | StyleWhiteText | StyleLeftAlign
X=#Column1hrLeftPadding#
Y=#TopPadding#
Text=1hr
[MeterColumn24hr]
Meter=String
MeterStyle=StyleSmallText | StyleWhiteText | StyleLeftAlign
X=#Column24hrLeftPadding#
Y=#TopPadding#
Text=24hr
[MeterColumn7d]
Meter=String
MeterStyle=StyleSmallText | StyleWhiteText | StyleLeftAlign
X=#Column7dLeftPadding#
Y=#TopPadding#
Text=7d
# Bitcoin (BTC)__________________________________________________________________
[MeasureBTC]
Measure=Plugin
Plugin=WebParser
UserAgent=#UserAgentString#
URL=https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest?symbol=BTC
RegExp=#RegEx#
Header=X-CMC_PRO_API_KEY: #APIKey#
UpdateRate=900 # every 15 minutes
# Extract each column's value by the index
[MeasureBTCUSDValue]
Measure=Plugin
Plugin=WebParser
URL=[MeasureBTC]
StringIndex=1
[MeasureBTC1hr]
Measure=Plugin
Plugin=WebParser
URL=[MeasureBTC]
StringIndex=2
IfCondition=MeasureBTC1hr < 0
IfTrueAction=[!SetOption MeterBTCColumn1hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterBTCColumn1hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
[MeasureBTC24hr]
Measure=Plugin
Plugin=WebParser
URL=[MeasureBTC]
StringIndex=3
IfCondition=MeasureBTC24hr < 0
IfTrueAction=[!SetOption MeterBTCColumn24hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterBTCColumn24hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
[MeasureBTC7d]
Measure=Plugin
Plugin=WebParser
URL=[MeasureBTC]
StringIndex=4
IfCondition=MeasureBTC7d < 0
IfTrueAction=[!SetOption MeterBTCColumn7d MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterBTCColumn7d MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
# Render the columns with their appropriate values
[MeterBTCColumnLabel]
Meter=String
MeterStyle=StyleSmallText | StyleLeftAlign
X=#LeftPadding#
Y=(#TopPadding#+(#RowHeight#*1))
Text=BTC
LeftMouseUpAction="https://coinmarketcap.com/currencies/bitcoin/"
[MeterBTCColumnValue]
Meter=String
MeasureName=MeasureBTCUSDValue
MeterStyle=StyleSmallText | StyleLeftAlign
X=#ColumnValueLeftPadding#
Y=(#TopPadding#+(#RowHeight#*1))
Text=$%1
[MeterBTCColumn1hr]
Meter=String
MeasureName=MeasureBTC1hr
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column1hrLeftPadding#
Y=(#TopPadding#+(#RowHeight#*1))
Text=%1%
[MeterBTCColumn24hr]
Meter=String
MeasureName=MeasureBTC24hr
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column24hrLeftPadding#
Y=(#TopPadding#+(#RowHeight#*1))
Text=%1%
[MeterBTCColumn7d]
Meter=String
MeasureName=MeasureBTC7d
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column7dLeftPadding#
Y=(#TopPadding#+(#RowHeight#*1))
Text=%1%
# Ethereum (ETH)__________________________________________________________________
[MeasureETH]
Measure=Plugin
Plugin=WebParser
UserAgent=#UserAgentString#
URL=https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest?symbol=ETH
RegExp=#RegEx#
Header=X-CMC_PRO_API_KEY: #APIKey#
UpdateRate=900 # every 15 minutes
# Extract each column's value by the index
[MeasureETHUSDValue]
Measure=Plugin
Plugin=WebParser
URL=[MeasureETH]
StringIndex=1
[MeasureETH1hr]
Measure=Plugin
Plugin=WebParser
URL=[MeasureETH]
StringIndex=2
IfCondition=MeasureETH1hr < 0
IfTrueAction=[!SetOption MeterETHColumn1hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterETHColumn1hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
[MeasureETH24hr]
Measure=Plugin
Plugin=WebParser
URL=[MeasureETH]
StringIndex=3
IfCondition=MeasureETH24hr < 0
IfTrueAction=[!SetOption MeterETHColumn24hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterETHColumn24hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
[MeasureETH7d]
Measure=Plugin
Plugin=WebParser
URL=[MeasureETH]
StringIndex=4
IfCondition=MeasureETH7d < 0
IfTrueAction=[!SetOption MeterETHColumn7d MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterETHColumn7d MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
# Render the columns with their appropriate values
[MeterETHColumnLabel]
Meter=String
MeterStyle=StyleSmallText | StyleLeftAlign
X=#LeftPadding#
Y=(#TopPadding#+(#RowHeight#*2))
Text=ETH
LeftMouseUpAction="https://coinmarketcap.com/currencies/ethereum/"
[MeterETHColumnValue]
Meter=String
MeasureName=MeasureETHUSDValue
MeterStyle=StyleSmallText | StyleLeftAlign
X=#ColumnValueLeftPadding#
Y=(#TopPadding#+(#RowHeight#*2))
Text=$%1
[MeterETHColumn1hr]
Meter=String
MeasureName=MeasureETH1hr
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column1hrLeftPadding#
Y=(#TopPadding#+(#RowHeight#*2))
Text=%1%
[MeterETHColumn24hr]
Meter=String
MeasureName=MeasureETH24hr
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column24hrLeftPadding#
Y=(#TopPadding#+(#RowHeight#*2))
Text=%1%
[MeterETHColumn7d]
Meter=String
MeasureName=MeasureETH7d
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column7dLeftPadding#
Y=(#TopPadding#+(#RowHeight#*2))
Text=%1%
# Bitcoin Cash (BCH)__________________________________________________________________
[MeasureBCH]
Measure=Plugin
Plugin=WebParser
UserAgent=#UserAgentString#
URL=https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest?symbol=BCH
RegExp=#RegEx#
Header=X-CMC_PRO_API_KEY: #APIKey#
UpdateRate=900 # every 15 minutes
# Extract each column's value by the index
[MeasureBCHUSDValue]
Measure=Plugin
Plugin=WebParser
URL=[MeasureBCH]
StringIndex=1
[MeasureBCH1hr]
Measure=Plugin
Plugin=WebParser
URL=[MeasureBCH]
StringIndex=2
IfCondition=MeasureBCH1hr < 0
IfTrueAction=[!SetOption MeterBCHColumn1hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterBCHColumn1hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
[MeasureBCH24hr]
Measure=Plugin
Plugin=WebParser
URL=[MeasureBCH]
StringIndex=3
IfCondition=MeasureBCH24hr < 0
IfTrueAction=[!SetOption MeterBCHColumn24hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterBCHColumn24hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
[MeasureBCH7d]
Measure=Plugin
Plugin=WebParser
URL=[MeasureBCH]
StringIndex=4
IfCondition=MeasureBCH7d < 0
IfTrueAction=[!SetOption MeterBCHColumn7d MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterBCHColumn7d MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
# Render the columns with their appropriate values
[MeterBCHColumnLabel]
Meter=String
MeterStyle=StyleSmallText | StyleLeftAlign
X=#LeftPadding#
Y=(#TopPadding#+(#RowHeight#*3))
Text=BCH
LeftMouseUpAction="https://coinmarketcap.com/currencies/bitcoin-cash/"
[MeterBCHColumnValue]
Meter=String
MeasureName=MeasureBCHUSDValue
MeterStyle=StyleSmallText | StyleLeftAlign
X=#ColumnValueLeftPadding#
Y=(#TopPadding#+(#RowHeight#*3))
Text=$%1
[MeterBCHColumn1hr]
Meter=String
MeasureName=MeasureBCH1hr
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column1hrLeftPadding#
Y=(#TopPadding#+(#RowHeight#*3))
Text=%1%
[MeterBCHColumn24hr]
Meter=String
MeasureName=MeasureBCH24hr
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column24hrLeftPadding#
Y=(#TopPadding#+(#RowHeight#*3))
Text=%1%
[MeterBCHColumn7d]
Meter=String
MeasureName=MeasureBCH7d
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column7dLeftPadding#
Y=(#TopPadding#+(#RowHeight#*3))
Text=%1%
# Ripple (XRP)__________________________________________________________________
[MeasureXRP]
Measure=Plugin
Plugin=WebParser
UserAgent=#UserAgentString#
URL=https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest?symbol=XRP
RegExp=#RegEx#
Header=X-CMC_PRO_API_KEY: #APIKey#
UpdateRate=900 # every 15 minutes
# Extract each column's value by the index
[MeasureXRPUSDValue]
Measure=Plugin
Plugin=WebParser
URL=[MeasureXRP]
StringIndex=1
[MeasureXRP1hr]
Measure=Plugin
Plugin=WebParser
URL=[MeasureXRP]
StringIndex=2
IfCondition=MeasureXRP1hr < 0
IfTrueAction=[!SetOption MeterXRPColumn1hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterXRPColumn1hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
[MeasureXRP24hr]
Measure=Plugin
Plugin=WebParser
URL=[MeasureXRP]
StringIndex=3
IfCondition=MeasureXRP24hr < 0
IfTrueAction=[!SetOption MeterXRPColumn24hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterXRPColumn24hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
[MeasureXRP7d]
Measure=Plugin
Plugin=WebParser
URL=[MeasureXRP]
StringIndex=4
IfCondition=MeasureXRP7d < 0
IfTrueAction=[!SetOption MeterXRPColumn7d MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterXRPColumn7d MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
# Render the columns with their appropriate values
[MeterXRPColumnLabel]
Meter=String
MeterStyle=StyleSmallText | StyleLeftAlign
X=#LeftPadding#
Y=(#TopPadding#+(#RowHeight#*4))
Text=XRP
LeftMouseUpAction="https://coinmarketcap.com/currencies/ripple/"
[MeterXRPColumnValue]
Meter=String
MeasureName=MeasureXRPUSDValue
MeterStyle=StyleSmallText | StyleLeftAlign
X=#ColumnValueLeftPadding#
Y=(#TopPadding#+(#RowHeight#*4))
Text=$%1
[MeterXRPColumn1hr]
Meter=String
MeasureName=MeasureXRP1hr
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column1hrLeftPadding#
Y=(#TopPadding#+(#RowHeight#*4))
Text=%1%
[MeterXRPColumn24hr]
Meter=String
MeasureName=MeasureXRP24hr
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column24hrLeftPadding#
Y=(#TopPadding#+(#RowHeight#*4))
Text=%1%
[MeterXRPColumn7d]
Meter=String
MeasureName=MeasureXRP7d
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column7dLeftPadding#
Y=(#TopPadding#+(#RowHeight#*4))
Text=%1%
# Litecoin (LTC)__________________________________________________________________
[MeasureLTC]
Measure=Plugin
Plugin=WebParser
UserAgent=#UserAgentString#
URL=https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest?symbol=LTC
RegExp=#RegEx#
Header=X-CMC_PRO_API_KEY: #APIKey#
UpdateRate=900 # every 15 minutes
# Extract each column's value by the index
[MeasureLTCUSDValue]
Measure=Plugin
Plugin=WebParser
URL=[MeasureLTC]
StringIndex=1
[MeasureLTC1hr]
Measure=Plugin
Plugin=WebParser
URL=[MeasureLTC]
StringIndex=2
IfCondition=MeasureLTC1hr < 0
IfTrueAction=[!SetOption MeterLTCColumn1hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterLTCColumn1hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
[MeasureLTC24hr]
Measure=Plugin
Plugin=WebParser
URL=[MeasureLTC]
StringIndex=3
IfCondition=MeasureLTC24hr < 0
IfTrueAction=[!SetOption MeterLTCColumn24hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterLTCColumn24hr MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
[MeasureLTC7d]
Measure=Plugin
Plugin=WebParser
URL=[MeasureLTC]
StringIndex=4
IfCondition=MeasureLTC7d < 0
IfTrueAction=[!SetOption MeterLTCColumn7d MeterStyle "StyleSmallText | StyleLeftAlign | StyleRedText"]
IfFalseAction=[!SetOption MeterLTCColumn7d MeterStyle "StyleSmallText | StyleLeftAlign | StyleGreenText"]
# Render the columns with their appropriate values
[MeterLTCColumnLabel]
Meter=String
MeterStyle=StyleSmallText | StyleLeftAlign
X=#LeftPadding#
Y=(#TopPadding#+(#RowHeight#*5))
Text=LTC
LeftMouseUpAction="https://coinmarketcap.com/currencies/litecoin/"
[MeterLTCColumnValue]
Meter=String
MeasureName=MeasureLTCUSDValue
MeterStyle=StyleSmallText | StyleLeftAlign
X=#ColumnValueLeftPadding#
Y=(#TopPadding#+(#RowHeight#*5))
Text=$%1
[MeterLTCColumn1hr]
Meter=String
MeasureName=MeasureLTC1hr
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column1hrLeftPadding#
Y=(#TopPadding#+(#RowHeight#*5))
Text=%1%
[MeterLTCColumn24hr]
Meter=String
MeasureName=MeasureLTC24hr
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column24hrLeftPadding#
Y=(#TopPadding#+(#RowHeight#*5))
Text=%1%
[MeterLTCColumn7d]
Meter=String
MeasureName=MeasureLTC7d
MeterStyle=StyleSmallText | StyleLeftAlign
X=#Column7dLeftPadding#
Y=(#TopPadding#+(#RowHeight#*5))
Text=%1%