leiweibau / Pi.Alert

Scan the devices connected to your WIFI / LAN and alert you the connection of unknown devices. It also warns if a "always connected" device disconnects. In addition, it is possible to check web services for availability. For this purpose HTTP status codes and the response time of the service are evaluated.
https://leiweibau.net
GNU General Public License v3.0
434 stars 31 forks source link

Added support for Mikrotik routeros DHCP server and Unifi client list #173

Closed piapiacz closed 1 year ago

piapiacz commented 1 year ago

Here is added support for reading DHCP leases from Mikrotik router and reading clients from Unifi controller. I also moved import "FritzHosts" from beginning of the "pialert.py" file to the "read_fritzbox_active_hosts" function. So it wouldn't be imported if FRITZBOX_ACTIVE is not enabled. I also altered the readme and install files to reflect the required python modules ("routeros_api" for Mikrotik and "pyunifi" for Unifi)

leiweibau commented 1 year ago

Great. I'll take the time later today to take a closer look at your pull request.

leiweibau commented 1 year ago

Since I have neither Mikrotik nor Unifi hardware to test , I hope that I have taken over everything correctly.