Comprised of two main components: the Control Module, and the Sensor. Click or tap on the button below to learn more.
Learn MoreNote that if you are logged into your account, the code to the right will use one of your sensors and its corresponding key! Click the button below to learn more about the API.
See API Documentationimport urllib.request
import json
#selections
sensor = 'A020A617FA00'
key = 'scnSzX8gKzz3WBDfsiqkuE81'
query = ''
#requesting api
url = 'https://www.aquaswift.io/data/api/?sensor='+sensor+'&key='+key+query
req = urllib.request.Request(url)
#parsing response
r = urllib.request.urlopen(req).read()
data = json.loads(r.decode('utf-8'))
#displaying output
print("Sensor",data['sensor'],"is reporting a current Water Depth of:",data['depthSensor']['depthAirRef'] + " " + data['depthSensor']['units'])
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod temp or incididunt ut labore et dolore magna aliqua. Ut enim ad minim.
Get Started NowNote: if you are currently logged into your account, the example JSON response will be from one of your sensors. To learn more about the Basic API, click the button below.
See API Documentation{
"depthSensor": {
"depth": {
"value": "5.5195",
"fixedRef": "5.7067",
"max": "6.5962",
"min": "6.3204",
"time": {
"value": "1547788479",
"max": "1546381390",
"min": "1546388780"
},
"units": "ft"
},
"temperature": {
"value": "8.7033",
"max": "9.5833",
"min": "9.5467",
"time": {
"value": "1547788479",
"max": "1546382808",
"min": "1546392468"
},
"units": "C"
}
},
"controlModule": {
"id": "A020A617FA00",
"eventId": "142621",
"lastConnection": "1547788479",
"deviceType": "001",
"status": "1",
"nickname": null,
"air": {
"pressure": {
"value": "1003.2939",
"fixedReference": "997.7000",
"max": "1010.4250",
"min": "1006.8347",
"time": {
"value": "1547788479",
"max": "1546392190",
"min": "1546377413"
}
},
"temperature": {
"value": "-5.0000",
"max": "0.0000",
"min": "-7.6200",
"time": {
"value": "1547788479",
"max": "0",
"min": "1546392468"
}
}
},
"diagnostics": {
"time": "1547788479",
"wakeUps": "16260",
"timeOuts1": "11",
"timeOuts2": "0",
"timeOuts3": "0",
"fw_version": "2.057",
"onTime": {
"value": "4.3340",
"max": "22",
"min": "4",
"time": {
"value": "1547788479",
"max": "1546392468",
"min": "1546377981"
}
},
"sleepTime": "300.00"
},
"supplyVoltage": {
"value": "5553.0000",
"max": "5285.3335",
"min": "5226.6665",
"time": {
"value": "1547788479",
"max": "1546377413",
"min": "1546392190"
}
}
}
}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod temp or incididunt ut labore et dolore magna aliqua. Ut enim ad minim.
Get Started Now