This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Network scan IP Camera (Dahua)
MarcelTimmermans
Member
in Developers
Hi,
I am building an app for Dahua camera's. It seems to work all but I would like to implement the list_devices function so that only Dahua Camera's will be shown. This means I need to scan the network somehow and identify what is a Dahua camera. Anyone thoughts how to do this?
Marcel
I am building an app for Dahua camera's. It seems to work all but I would like to implement the list_devices function so that only Dahua Camera's will be shown. This means I need to scan the network somehow and identify what is a Dahua camera. Anyone thoughts how to do this?
Marcel
Comments
From what I can infer from the code (not at all tested, just to get you going):
Thanks. This is almost the same what I tried but this is taking relative long. So I first want to scan all the ip address an look for a manufacturer that is dahua and then do this on the limited set of ip addresses. But I am not sure how to find the manufacture (as for example you will see in Advanced IP Scanner).
Unfortunately I cannot use the api as I am on windows and they use net-keepalive which is not supported under windows.
If you need testing, just let me know.