mirror of
https://github.com/dennisreimann/kindle-display.git
synced 2026-08-13 12:33:45 +02:00
Add mempool.space data
This commit is contained in:
parent
f6e192b703
commit
82e8fd8fc3
1 changed files with 5 additions and 1 deletions
|
|
@ -50,5 +50,9 @@ fi
|
|||
# Bitcoin Quotes
|
||||
quote=$($tor curl -s -f https://www.bitcoin-quotes.com/quotes/random.json 2> /dev/null || echo "null")
|
||||
|
||||
# Mempool Stats
|
||||
fees=$($tor curl -s -f https://mempool.space/api/v1/fees/recommended 2> /dev/null || echo "null")
|
||||
lightning=$($tor curl -s -f https://mempool.space/api/v1/lightning/statistics/latest 2> /dev/null || echo "null")
|
||||
|
||||
# JSON
|
||||
jo -p date="$now" blockcount="$blockcount" rate1=$(jo rate="$rate1" moscow="$moscow1" code="$DISPLAY_RATE1") rate2=$(jo rate="$rate2" moscow="$moscow2" code="$DISPLAY_RATE2") quote="$quote" > $dir/data.json
|
||||
jo -p date="$now" blockcount="$blockcount" rate1=$(jo rate="$rate1" moscow="$moscow1" code="$DISPLAY_RATE1") rate2=$(jo rate="$rate2" moscow="$moscow2" code="$DISPLAY_RATE2") quote="$quote" fees="$fees" lightning="$lightning" > $dir/data.json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue