Remote Control Via Filemaker Pro       GO

Applications  



Gpio control scripts
https://www.raspberrypi.org/forums/viewtopic.php?f=108&t=125372
Smart shutdown
Curl Control
Get from URL FMP

Relays
Sensors
Controlling Relays from Sensors
Cron
Incron not available on raspian
Inotify  put file in it's own directory and monitor that. Set permissions. chmod  and user

   
sudo chown pi:pi /folder/file
sudo chmod 755 /folder/file

or if you want to change everything in a folder
sudo chown -R pi:pi /folder
sudo chmod -R 755 /folder
-m monitor directory indefinately
Best tutorial https://superuser.com/questions/956311/continuously-detect-new-files-with-inotify-tools-within-multiple-directories-r
https://linux.die.net/man/1/inotifywait
MONITORDIR="/path/to/the/dir/to/monitor/"
inotifywait -m -r -e create --format '%w%f' "${MONITORDIR}" | while read NEWFILE
do
        echo "This is the body of your mail" | mailx -s "File ${NEWFILE} has been created" "yourmail@addresshere.tld"
done
inotifywait [-hcmrq] [-e <event> ] [-t <seconds> ] [--format <fmt> ] [--timefmt <fmt> ] <file> [ ... ]
inotifywait -m -e   modify    %ee --format %T    --timefmt  --%D   %k:%M  ~/temperature
https://linux.die.net/man/3/strftime
inotifywait -m /path -e create -e moved_to |
    while read path action file; do
        echo "The file '$file' appeared in directory '$path' via '$action'"
        # do something with the file
    done
testing
inotifywait -m -e modify --format %T%e --timefmt --%D-%k:%M ~/temperature

https://superuser.com/questions/956311/continuously-detect-new-files-with-inotify-tools-within-multiple-directories-r
https://stackoverflow.com/questions/4060212/how-to-run-a-shell-script-when-a-file-or-directory-changes
Install
sudo apt-get install incron

According to the man page for the conf file, you need to add users to /etc/incron.allow

Webiopi
GPIO
Script
Pinouts
Gpio


Php



<?php
         $setmode17 = shell_exec("/usr/local/bin/gpio -g mode 17 out");
         if(isset($_GET['on'])){
                 $gpio_on = shell_exec("/usr/local/bin/gpio -g write 17 1");
                 echo "On";
         }
         else if(isset($_GET['off'])){
                 $gpio_off = shell_exec("/usr/local/bin/gpio -g write 17 0");
                 echo "Off";
         }


?>