-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex_html.py
55 lines (47 loc) · 1.07 KB
/
index_html.py
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
#!/usr/bin/env python3
'''
HTML templates for steem_flow.py
'''
html_head = '''<html><head>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<meta http-equiv="refresh" content="3" >
<title>STEEM transfer statistics</title></head>
<body>'''
html_end = '</body></html>'
html_block = '''
block_interval: %s
<br>
from_last_block: %s timestamp: %s
<br><br>
'''
html_1 = html_head + html_block + html_end
html_cur_pow = '''
current_block: %s (#%s) time_stamp: %s (%s, %s minutes passed)
<br><br>
pow2_count: %s (avg: %s blocks), each %s
<br><br>
'''
html_trans = '''
transfers: %s
<br>
to_exchange: %s (%s STEEM @ %s spm, %s SBD @ %s $pm)
<br>
from_exchange: %s (%s STEEM @ %s spm, %s SBD @ %s $pm)
<br>
to/from exchange ratio: %s:1 STEEM, %s:1 SBD
<br>
between_users: %s
<br>
between_exchanges: %s
<br>
to_null: %s (%s SBD) @ %s $pm
<br><br>
vesting: %s (%s STEEM) @ %s spm
<br>
new withdraw: %s (%s MV) @ %s VESTS per min
<br><br>
convert: %s (%s SBD) @ %s $pm
<br>
feed base: %s (%s), each %s
'''
html_all = html_head + html_block + html_cur_pow + html_trans + html_end