I'm trying to use pynetgear_enhanced to retrieve a list of connected devices from my NetGear Router and then use this to update presence status in Domoticz.
I've got a cron job running every minute that retrieves the list of connected devices and writes it to a JSON text file.
How can I read this JSON text file into dzVents so I can then process the contents?
Thanks
Here's a sample extract of the file:
Code: Select all
[
{
"name": "SonyBravia",
"ip": "192.168.1.176",
"mac": "04:5D:4B:DA:52:B1",
"type": "wired",
"signal": 100,
"link_rate": null,
"allow_or_block": "Allow",
"device_type": null,
"device_model": null,
"ssid": null,
"conn_ap_mac": null
},
{
"name": "XBOXONE",
"ip": "192.168.1.120",
"mac": "94:9A:A9:2E:33:9F",
"type": "wired",
"signal": 100,
"link_rate": null,
"allow_or_block": "Allow",
"device_type": null,
"device_model": null,
"ssid": null,
"conn_ap_mac": null
}
]