Hi,
I'm working on a script but can't manage it to work.
The idea:
Detect my phone on the wifi network. Save the status in a php file so i'm able to display the status on a webpage.
I found 2 scripts on the internet and like to combine those. The only problem is, they're in different script-languages.
The first script (.sh): https://www.reddit.com/r/raspberry_pi/comments/1yrudi/
Ping an IP-adress, save the status to a file so we can compare it during a new scan. If the status is the same as the previous status, do nothing.
I'd liked to combine that part of the script with this script (.py):
http://raspberrypilife.com/a-simple-way ... -are-home/
The second script is already working. I've reserved an ip-adress in my router. So my Iphone will always connect with that IP-Adress (192.168.178.65).
I'd liked to run the script on the background without displaying the output in the Terminal, so i still can use the Terminal for other scripts.
The status ( 0 or 1 ) needs to be saved in a php file, so i'm able to display it to a webpage.
Hopefully everything is clear. If there are any questions, feel free to ask.
Greetings,
Krijn