Font size to 80
This commit is contained in:
parent
c73bfcb1ea
commit
e38c0d2ff8
1 changed files with 5 additions and 4 deletions
|
|
@ -140,6 +140,7 @@ async def api_gerty_json(
|
|||
"refreshTime": gerty.refresh_time,
|
||||
"requestTimestamp": round(time.time()),
|
||||
"nextScreenNumber": next_screen_number,
|
||||
"showTextBoundRect": true,
|
||||
"name": gerty.name
|
||||
},
|
||||
"screen": {
|
||||
|
|
@ -258,7 +259,7 @@ async def get_exchange_rate(gerty):
|
|||
if amount:
|
||||
price = ('{0} {1}').format(format_number(amount), gerty.exchange)
|
||||
text.append(get_text_item_dict("Current BTC price", 15))
|
||||
text.append(get_text_item_dict(price, 40))
|
||||
text.append(get_text_item_dict(price, 80))
|
||||
except:
|
||||
pass
|
||||
return text
|
||||
|
|
@ -292,7 +293,7 @@ async def get_onchain_stat(stat_slug: str, gerty):
|
|||
if stat_slug == "onchain_difficulty_epoch_progress":
|
||||
stat = round(r.json()['progressPercent'])
|
||||
text.append(get_text_item_dict("Progress through current difficulty epoch", 15))
|
||||
text.append(get_text_item_dict("{0}%".format(stat), 40))
|
||||
text.append(get_text_item_dict("{0}%".format(stat), 80))
|
||||
elif stat_slug == "onchain_difficulty_retarget_date":
|
||||
stat = r.json()['estimatedRetargetDate']
|
||||
dt = datetime.fromtimestamp(stat / 1000).strftime("%e %b %Y at %H:%M")
|
||||
|
|
@ -301,7 +302,7 @@ async def get_onchain_stat(stat_slug: str, gerty):
|
|||
elif stat_slug == "onchain_difficulty_blocks_remaining":
|
||||
stat = r.json()['remainingBlocks']
|
||||
text.append(get_text_item_dict("Blocks remaining until next difficulty adjustment", 15))
|
||||
text.append(get_text_item_dict("{0}".format(format_number(stat)), 40))
|
||||
text.append(get_text_item_dict("{0}".format(format_number(stat)), 80))
|
||||
elif stat_slug == "onchain_difficulty_epoch_time_remaining":
|
||||
stat = r.json()['remainingTime']
|
||||
text.append(get_text_item_dict("Blocks remaining until next difficulty adjustment", 15))
|
||||
|
|
@ -319,7 +320,7 @@ async def get_mempool_stat(stat_slug: str, gerty):
|
|||
if stat_slug == "mempool_tx_count":
|
||||
stat = round(r.json()['count'])
|
||||
text.append(get_text_item_dict("Transactions in the mempool", 15))
|
||||
text.append(get_text_item_dict("{0}".format(format_number(stat)), 40))
|
||||
text.append(get_text_item_dict("{0}".format(format_number(stat)), 80))
|
||||
return text
|
||||
|
||||
def get_date_suffix(dayNumber):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue