daily pastebin goal
46%
SHARE
TWEET

Omega2+ Crypto Coin Display (Bash)

mrcbrown Aug 22nd, 2017 (edited) 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. ## Set Your Currency
  4. curr=$'USD'
  5.  
  6. ## Coin Amounts
  7. ltct=$'200'
  8. btct=$'200'
  9. etht=$'200'
  10. dasht=$'200'
  11.  
  12. ## Clear OLED Screen
  13. oled-exp -i
  14.  
  15. ## Create Values
  16. btc=$(php-cli coins.php 'BTC' $curr $btct)
  17. eth=$(php-cli coins.php 'ETH' $curr $etht)
  18. dash=$(php-cli coins.php 'DASH' $curr $dasht)
  19. ltc=$(php-cli coins.php 'LTC' $curr $ltct)
  20.  
  21. ## Display on Screen
  22. oled-exp write "CURRENT VALUE\nLTC: $ltc\nBTC: $btc\nETH: $eth\nDASH: $dash"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top