mirror of
https://github.com/DanielPollithy/bluetooth_drone.git
synced 2025-10-16 11:45:38 +00:00
d3 update
This commit is contained in:
parent
2848fec28d
commit
86b338f4a5
@ -28,6 +28,7 @@ def notify_website():
|
||||
def poll_website():
|
||||
response = urllib.urlopen(settings.WEBSITE_POLLING_URL)
|
||||
data = json.loads(response.read())
|
||||
print('poll_website')
|
||||
print(data)
|
||||
for booked_station in data:
|
||||
if booked_station['id'] and booked_station['id'] not in booking_history and \
|
||||
|
||||
@ -25,11 +25,11 @@ DRONE_REJECTED_RESTART_TIME = 10
|
||||
|
||||
# eth
|
||||
# this is the drone
|
||||
CLIENT_ETHEREUM_ADDRESS = '0x00928C4Ce6be59B078350a548E739D5086FEf872'
|
||||
CLIENT_ETHEREUM_ADDRESS = '0x00928C4Ce6be59B078350a548E739D5086FEf872'.lower()
|
||||
|
||||
# this is the station contract
|
||||
SERVER_ETHEREUM_ADDRESS = '0xE37497Fa54C4D7AF837AFBfEb798a5f8bEb5140D'
|
||||
STATION_OWNER_ETH_ADDRESS = '0x00DEa97B0E2a09b932b67079c184c2284d0880c0'
|
||||
SERVER_ETHEREUM_ADDRESS = '0xE37497Fa54C4D7AF837AFBfEb798a5f8bEb5140D'.lower()
|
||||
STATION_OWNER_ETH_ADDRESS = '0x00DEa97B0E2a09b932b67079c184c2284d0880c0'.lower()
|
||||
|
||||
WEBSITE_POLLING_SLEEP = 10 # seconds
|
||||
WEBSITE_POLLING_URL = 'http://iotwist.com:8200/api/drone/bookings/{}'.format(CLIENT_ETHEREUM_ADDRESS)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user