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/logsor
*/10 * * * * nmap -sn $subnet -oX - | xz >> $outputpath/logs.xzif 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.jsonfile. For the schema see Configuration.tsminimal example:
{ "input": "../logs", "macToName": {}, "hostToName": {}, "logInterval": 10, "ignoreLessThan": 3000, "self": "raspberry-hostname" } -
Open
index.htmlin a browser. Firefox should directly work, for Chrome you need to open it via a server (likepython3 -m http.server) because of security reasons.
