Logs which devices are in your local network and draws graphs
Screenshot:
-
add this line to your crontab on your raspberry pi (or other device that is always on):
*/10 * * * * nmap -sn $subnet -oX - >> $outputpath/logs
or
*/10 * * * * nmap -sn $subnet -oX - | xz >> $outputpath/logs.xz
if you don't have a lot of space on that device.
- $subnet is your local network, e.g. '192.168.178.*'
- $outputpath is the path where you want your log stored
-
create a
config.json
file. For the schema see Configuration.tsminimal example:
{ "input": "../logs", "macToName": {}, "hostToName": {}, "logInterval": 10, "ignoreLessThan": 3000, "self": "raspberry-hostname" }
-
Open
index.html
in a browser. Firefox should directly work, for Chrome you need to open it via a server (likepython3 -m http.server
) because of security reasons.