How to install hping3 on windows9/8/2023 # Output-Parameter: 1 = ip-device deteced, 0 = not detected # wait time between the pings: a random number of 1 - 10 secs (would probably work if you fix the sleep to 10 secs as well) # script will try to reach ip address 30 times (hping3 not always "wakes up" the iphone) Script to detect iphone “detect_ip.pl”: #!/usr/bin/perl -w I use 4 cron scripts in parallel (every 5 minutes) to detect presence of the 4 phones in my household, each cron-script invoking the below’s perl script and depending on the result triggers an openhab-rest-api to set a switch… I am sure the script can be improved (I am not exactly a perl expert), but it works fine for me. I chose perl to implement the above concept on a Raspi2. I am really thankful for this thread (surprisingly it seems that there is not much discussion going on in the web at all about this topic) as it seems to be the only way that works in a stable manner.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |