Mac Touch Bar script to track the STEEM/SBD price

in #steemdev2 months ago

image.png

Early this morning, I read that @emrebeyler wrote a MacOS Status bar app to track the STEEM price. I thought it was a neat idea given that we are seeing some positive prices in the last couple of weeks. I have a MacBook Pro, so I whipped up a quick shell script to display this on the Touch Bar. It uses the 3rd party BetterTouchTool, jq (for json parsing) and the CoinGecko API (thanks @coingecko!):

image.png

It updates every 15 minutes and you can force an update by tapping on the prices itself. @themarkymark suggested in @emrebeyler's app that he also include the SBD price—so I have added this in my Touch Bar version. Hope you find this useful!

#! /bin/bash

output=$(curl -s "https://api.coingecko.com/api/v3/simple/price?ids=STEEM,STEEM-DOLLARS&vs_currencies=USD");
steem=$(echo $output | /usr/local/bin/jq ".steem.usd");
steem=$(printf "%0.2f" $steem)
sbd=$(echo $output | /usr/local/bin/jq ".\"steem-dollars\".usd");
sbd=$(printf "%0.2f" $sbd)
echo "STEEM \$$steem, SBD \$$sbd"


Sort:  

This post earned a total payout of 3.030$ and 1.515$ worth of author reward that was liquified using @likwid.
Learn more.

Thanks for posting this, I hope a lot of people find it useful.

You're welcome! !ENGAGE 20

Thank you very much!



@shaidon you have received 20 ENGAGE from @contrabourdon!
View and trade the tokens on Steem Engine.


This tip bot is powered by witness untersatz!

$trdo !DERANGED !COFFEEA

Congratulations @contrabot, you successfuly trended the post shared by @contrabourdon!
@contrabourdon will receive 0.98934413 TRDO & @contrabot will get 0.65956275 TRDO curation in 3 Days from Post Created Date!

"Call TRDO, Your Comment Worth Something!"

To view or trade TRDO go to steem-engine.com
Join TRDO Discord Channel or Join TRDO Web Site

Thank you for supporting @CatsMakeKittens by being a part of our community @contrabourdon.

Each CATS you purchase gets you daily upvotes from me @CatScientist as our community grows so do your rewards for being a member!

That's pretty dope.




giphy is supported by witness untersatz!

I don't use macos, but this looks really nice. Congratulations on the project.

This post has received a 3.13 % upvote from @drotto thanks to: @sbi-booster.

Congratulations @contrabourdon, your post successfully recieved 0.98934413 TRDO from below listed TRENDO callers:

@contrabot earned : 0.65956275 TRDO curation


To view or trade TRDO go to steem-engine.com
Join TRDO Discord Channel or Join TRDO Web Site

coffeea Lucky you @contrabourdon here is your COFFEEA, view all your tokens at steem-engine.com Vote for c0ff33a as Witness

Thanks for sharing this. I hope a lot of people enjoy it.