mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-15 12:50:38 +02:00
Update spvblock.py
This commit is contained in:
parent
73ff2cf166
commit
e392d59bfe
1 changed files with 5 additions and 1 deletions
|
|
@ -649,8 +649,9 @@ def mtConn(): # here we convert the result of the command 'getblockcount' on a r
|
|||
blogo()
|
||||
closed()
|
||||
output = render("Moscow Time", colors=['yellow'], align='center', font='tiny')
|
||||
outputT = render(f"{a} O'Clock", colors=['green'], align='center', font='tiny')
|
||||
outputT = render("O'Clock", colors=['green'], align='center', font='tiny')
|
||||
print(output)
|
||||
print(a)
|
||||
print(outputT)
|
||||
clear()
|
||||
close()
|
||||
|
|
@ -660,12 +661,15 @@ def mtConn(): # here we convert the result of the command 'getblockcount' on a r
|
|||
|
||||
def mtclock():
|
||||
try:
|
||||
conn = """curl -s https://bitcoinexplorer.org/api/price/sats | jq -C '.[]' | head -n 1 """
|
||||
a = os.popen(conn).read()
|
||||
clear()
|
||||
blogo()
|
||||
closed()
|
||||
output = render("Moscow Time", colors=['yellow'], align='center', font='tiny')
|
||||
outputT = render("O'Clock", colors=['green'], align='center', font='tiny')
|
||||
print(output)
|
||||
print(a)
|
||||
print(outputT)
|
||||
except:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue