diff --git a/btcTicker.py b/btcTicker.py index 67fec75..b051baf 100644 --- a/btcTicker.py +++ b/btcTicker.py @@ -7,7 +7,8 @@ from kivy.properties import ObjectProperty from kivy.uix.textinput import TextInput from kivy.clock import Clock -import datetime +import requests +import json import time from getStampTicker import GetTicker @@ -19,13 +20,13 @@ class BigLabel(Label): class BigTextInput(TextInput): - """ Big label class """ + """ Big text input class """ def __init__(self, *args, **kwargs): super(BigTextInput, self).__init__(*args, **kwargs) class RootWidget(BoxLayout): - """Root Kivy accordion widget class""" + """Root Kivy widget class""" btc_multiplier_input = ObjectProperty() btc_amount_input = ObjectProperty() multiplied_btc_amount_input = ObjectProperty() diff --git a/getStampTicker.py b/getStampTicker.py index 07324a8..3a8bd8a 100644 --- a/getStampTicker.py +++ b/getStampTicker.py @@ -8,10 +8,9 @@ headers = {'content-type': 'application/json'} def GetTicker(serverURL=URL): - """Try and get last block info and return formatted text""" - # print('Attempting {0} RPC call'.format(CheckLastBlock.__name__)) + """Try and get bitstamp ticker info""" try: - resp = requests.get(serverURL, headers=headers) + resp = requests.get(serverURL, headers=headers, verify=False) output = json.loads(resp.text) print(output) last_price = float(output[u'last'])