Update spvblock.py

This commit is contained in:
Satoshi Nakamoto 2023-09-22 20:13:49 +02:00 committed by GitHub
parent fd3c8cd5a2
commit 5bc8cb3a40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -643,7 +643,7 @@ def pgpConn():
def mtConn(): # here we convert the result of the command 'getblockcount' on a random art design
while True:
try:
conn = """curl -s https://bitcoinexplorer.org/api/price/sats | jq -C | grep -E "usd" | awk '{print $2}' | tr -d '"' | tr -d ','"""
conn = """curl -s https://bitcoinexplorer.org/api/price/sats | jq -C '.[]' | head -n 1"""
a = os.popen(conn).read()
clear()
blogo()
@ -660,7 +660,7 @@ 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 | grep -E "usd" | awk '{print $2}' | tr -d '"' | tr -d ','"""
conn = """curl -s https://bitcoinexplorer.org/api/price/sats | jq -C '.[]' | head -n 1"""
a = os.popen(conn).read()
clear()
blogo()
@ -669,9 +669,6 @@ def mtclock():
outputT = render(f"{a} O'Clock", colors=['green'], align='center', font='tiny')
print(output)
print(outputT)
clear()
close()
mtConn()
except:
pass
#-----------------------------END MT--------------------------------