@bayesianlogic.1,
Not pretending that no one is asking for an API. Just trying to understand what you are looking for because it seems to keep moving around ?
- an API that gives you access to the data you want ? Some coding required - DONE/AVAILABLE
- a turnkey API integration with some other systems that you haven’t specified yet ?
- a guarantee that the data will be open ?
Try this snippet in the main, just after authentication:
while True :
print ("Active:", sense.active_power, "W")
print ("Active Solar:", sense.active_solar_power, "W")
print ("Active Devices:", sense.active_devices)
time.sleep(5)
sense.get_realtime()
Voila - realtime data every 5 seconds !
Active: 1307.7867550118826 W
Active Solar: 2088.206370681175 W
Active Devices: ['Solar', 'Other', 'Always On', 'Wine fridge']
Active: 1205.68335837638 W
Active Solar: 2080.2029271756765 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1211.2089672834845 W
Active Solar: 2074.7690572945867 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1186.932354491204 W
Active Solar: 2092.380433443701 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1211.4922382677905 W
Active Solar: 2098.99344553845 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1219.57131298678 W
Active Solar: 2124.617451679893 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1199.5503087579273 W
Active Solar: 2130.958141069161 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1274.48032903485 W
Active Solar: 2125.7676501679234 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1228.9526036744937 W
Active Solar: 2127.711158422753 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1187.4183573971968 W
Active Solar: 2133.1198598467745 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1208.3620372621808 W
Active Solar: 2126.692590965191 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1298.7568159848452 W
Active Solar: 2129.407009060029 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1193.4933937221067 W
Active Solar: 2139.2909138354007 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1251.24178925436 W
Active Solar: 2122.113190201577 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1168.586562764831 W
Active Solar: 2113.934448392596 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1311.3641994995996 W
Active Solar: 2118.4330584090203 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1248.712611003546 W
Active Solar: 2123.236458440544 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1162.4684883783339 W
Active Solar: 2125.0347446980886 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1129.5608566035517 W
Active Solar: 2129.1210953877307 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1149.2199384197593 W
Active Solar: 2132.9313481033314 W
Active Devices: ['Solar', 'Other', 'Always On']
Active: 1239.5117781530134 W
Active Solar: 2137.4060480855405 W
Active Devices: [‘Solar’, ‘Other’, ‘Always On’]
Active: 1291.369999677525 W
Active Solar: 2134.280629086774 W
Active Devices: [‘Solar’, ‘Other’, ‘Always On’]
Active: 1322.1911663613282 W
Active Solar: 2122.98150197044 W
Active Devices: [‘Solar’, ‘Other’, ‘Always On’]
Active: 1262.313267676509 W
Active Solar: 2115.347908941563 W
Active Devices: [‘Solar’, ‘Other’, ‘Always On’]
Active: 1204.4166299321223 W
Active Solar: 2121.0520880515687 W
Active Devices: [‘Solar’, ‘Other’, ‘Always On’]
Active: 1349.1270783274667 W
Active Solar: 2126.473625388695 W
Active Devices: [‘Solar’, ‘Other’, ‘Always On’]
Active: 1267.6356412927853 W
Active Solar: 2137.6411214745604 W
Active Devices: [‘Solar’, ‘Other’, ‘Always On’]