Open captainhowdy1 opened 6 years ago
You can use --targetmacs
Thank you for the response! Is there a template that I am missing that would have the format I would need. I am having a hard time creating a file that the script understands from scratch. "Macaddress"="nickname" in .txt format is the basic structure I've tried
On Tue, Oct 9, 2018, 11:33 PM Zack notifications@github.com wrote:
You can use --targetmacs
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/schollz/howmanypeoplearearound/issues/41#issuecomment-428434694, or mute the thread https://github.com/notifications/unsubscribe-auth/AbtJ3_OaUBGrIuIjOLqPaHQx4oBu0Rusks5ujXirgaJpZM4XUcLh .
Oh, sorry I misunderstood your question. There is no way to do that in howmanypeoplearearound.
You can make sure that it only detects 1A:DC:5C:8E:15:7B
by making a file and passing it with that mac.
E.g.
howmanypeoplearearound --targetmacs macs.txt
And macs.txt
:
1A:DC:5C:8E:15:7B
You could easily change the name in post-processing though, via sed or something.
Is there a way to have the JSON output print names of devices that I manually input into a seperate file? For example, if I know that my android has a mac address of 1A:DC:5C:8E:15:7B, could I manually configure a file for the script to refer to so that while running it would associate 1A:DC:5C:8E:15:7B with "myandroid" and print out the name "myandroid" for me to quickly recognize rather than the mac address?