mirror of
https://github.com/DanielPollithy/bluetooth_drone.git
synced 2025-10-16 11:45:38 +00:00
11 lines
326 B
Python
11 lines
326 B
Python
# this file checks in a given interval a http endpoint for booking the drone should make
|
|
|
|
import urllib
|
|
import json
|
|
import settings
|
|
|
|
while True:
|
|
url = 'http://localhost:8080/drone/{}/bookings'.format(settings.CLIENT_ETHEREUM_ADDRESS)
|
|
response = urllib.urlopen(url)
|
|
data = json.loads(response.read())
|
|
print data |