Skip to content

Commit

Permalink
Merge pull request matryer#1518 from biranyucel/biran
Browse files Browse the repository at this point in the history
Add ETH gas prices bitbar.
  • Loading branch information
matryer authored Dec 11, 2020
2 parents 1391c97 + 223d9c3 commit 6a7dd38
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Cryptocurrency/Ethereum/gasnow.10s.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
#
# <bitbar.title>ETH Gas Price</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Biran Yucel</bitbar.author>
# <bitbar.author.github>biranyucel</bitbar.author.github>
# <bitbar.desc>ETH GasPrice forecast system.</bitbar.desc>
# <bitbar.image>https://i.imgur.com/f1hPKO2.png</bitbar.image>
# <bitbar.abouturl>https://www.gasnow.org/</bitbar.abouturl>
#
#ETH GasPrice forecast system based on SparkPool Pending Transaction Mempool

response=$(curl -s https://www.gasnow.org/api/v3/gas/price\?utm_source\=:)
read code rapid fast standard slow timestamp <<<${response//[^0-9]/ }
echo "𝚵 Rapid ${rapid:0:((${#rapid} - 9))} | color=green"
echo "𝚵 Fast ${fast:0:((${#fast} - 9))} | color=orange"
echo "𝚵 Standard ${standard:0:((${#standard} - 9))} | color=blue"
echo "𝚵 Slow ${slow:0:((${#slow} - 9))} | color=purple"

0 comments on commit 6a7dd38

Please sign in to comment.