font size to 60

This commit is contained in:
Black Coffee 2022-09-29 18:02:52 +01:00
parent a2b61558d3
commit f99eae6b5a

View file

@ -253,7 +253,7 @@ async def get_exchange_rate(gerty):
amount = await satoshis_amount_as_fiat(100000000, gerty.exchange)
if amount:
price = ('{0} {1}').format(format_number(amount), gerty.exchange)
text.append(get_text_item_dict(price, 40))
text.append(get_text_item_dict(price, 60))
text.append(get_text_item_dict("Current BTC price", 12))
except:
pass
@ -287,16 +287,16 @@ async def get_onchain_stat(stat_slug: str, gerty):
r = await client.get(gerty.mempool_endpoint + "/api/v1/difficulty-adjustment")
if stat_slug == "onchain_difficulty_epoch_progress":
stat = round(r.json()['progressPercent'])
text.append(get_text_item_dict("{0}%".format(stat), 40))
text.append(get_text_item_dict("{0}%".format(stat), 60))
text.append(get_text_item_dict("Progress through current difficulty epoch", 16))
elif stat_slug == "onchain_difficulty_retarget_date":
stat = r.json()['estimatedRetargetDate']
dt = datetime.fromtimestamp(stat / 1000).strftime("%e %b %Y at %H:%M")
text.append(get_text_item_dict(dt, 40))
text.append(get_text_item_dict(dt, 60))
text.append(get_text_item_dict("Estimated date of next difficulty adjustment", 16))
elif stat_slug == "onchain_difficulty_blocks_remaining":
stat = r.json()['remainingBlocks']
text.append(get_text_item_dict("{0}".format(format_number(stat)), 40))
text.append(get_text_item_dict("{0}".format(format_number(stat)), 60))
text.append(get_text_item_dict("Blocks remaining until next difficulty adjustment", 16))
elif stat_slug == "onchain_difficulty_epoch_time_remaining":
stat = r.json()['remainingTime']
@ -314,7 +314,7 @@ async def get_mempool_stat(stat_slug: str, gerty):
r = await client.get(gerty.mempool_endpoint + "/api/mempool")
if stat_slug == "mempool_tx_count":
stat = round(r.json()['count'])
text.append(get_text_item_dict("{0}".format(format_number(stat)), 40))
text.append(get_text_item_dict("{0}".format(format_number(stat)), 60))
text.append(get_text_item_dict("Transactions in the mempool", 16))
return text