From e392d59bfe325f3cd387e7fcaf068db4e09cd71c Mon Sep 17 00:00:00 2001 From: Satoshi Nakamoto <65907137+SatoshiNakamotoBitcoin@users.noreply.github.com> Date: Fri, 22 Sep 2023 21:02:09 +0200 Subject: [PATCH] Update spvblock.py --- pybitblock/SPV/spvblock.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pybitblock/SPV/spvblock.py b/pybitblock/SPV/spvblock.py index 105070d..1232e7c 100644 --- a/pybitblock/SPV/spvblock.py +++ b/pybitblock/SPV/spvblock.py @@ -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