This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /usr/bin/python3 | |
import requests | |
import json | |
from time import sleep | |
def getBitcoinPrice(): | |
URL = "https://www.bitstamp.net/api/ticker/" | |
try: | |
r = requests.get(URL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
bitcoinAdafruitLcdTicker.py | |
Tested with Python 2.7.3 | |
Libraries required: | |
- Requests | |
http://docs.python-requests.org/en/latest/ | |
- Adafruit LCD library | |
https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code |