This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

iPhone presence detection
#1
Hi

I am looking for an iPhone presence detection solution.

I found many iPhone detection bash scripts like this one

Code:
script (/opt/openhab/iphonedetect.sh)
#!/bin/bash
MAC=${2//-/:}
declare -a DEVICES
hping3 -2 -c 10 -p 5353 -i u1 $1 -q >/dev/null 2>&1
DEVICES=arp -an | awk '{print $4}'
CHECK=$MAC
if [[ ${DEVICES[*]} =~ $CHECK ]]
then
echo "ON"
else
echo "OFF"
fi
[*]


But nothing in lua.

Did anyone over here already implemented a script and wants to share this?

Thanks
Nicky
Reply


Messages In This Thread
iPhone presence detection - by npinguin - 25.08.2016, 18:29
RE: iPhone presence detection - by edgars - 26.08.2016, 06:14
RE: iPhone presence detection - by DGrandes - 07.08.2018, 11:46
RE: iPhone presence detection - by admin - 29.08.2016, 16:37
RE: iPhone presence detection - by DGrandes - 05.07.2018, 13:05
RE: iPhone presence detection - by npinguin - 29.08.2016, 21:04
RE: iPhone presence detection - by rocfusion - 04.09.2016, 19:46
RE: iPhone presence detection - by admin - 05.09.2016, 06:00
RE: iPhone presence detection - by adiaz - 09.07.2018, 07:17
RE: iPhone presence detection - by admin - 09.07.2018, 08:19
RE: iPhone presence detection - by Daniel - 09.07.2018, 08:25
RE: iPhone presence detection - by DGrandes - 11.07.2018, 10:58
RE: iPhone presence detection - by Daniel - 07.08.2018, 12:18
RE: iPhone presence detection - by DGrandes - 07.08.2018, 14:21
RE: iPhone presence detection - by Daniel - 07.08.2018, 14:37
RE: iPhone presence detection - by DGrandes - 07.08.2018, 14:55
RE: iPhone presence detection - by Daniel - 07.08.2018, 16:09
RE: iPhone presence detection - by DGrandes - 09.08.2018, 12:27
RE: iPhone presence detection - by FatMax - 09.08.2018, 14:52
RE: iPhone presence detection - by Daniel - 09.08.2018, 16:16
RE: iPhone presence detection - by DGrandes - 10.08.2018, 09:44

Forum Jump: