Advertisement
mrcbrown

Omega2+ Crypto Coin Display (Bash)

Aug 22nd, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.45 KB | None | 0 0
  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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement