Some PHP code to handle data to and from an Arduino door opener.
Yes the code is horrible :) this was a quick solution to our missing garage door issue. But it works wondefully!
|---- LED (on when door open)
|
[Web Server + MariaDB + PHP] ----{internet}---- [Arduino(pin)] ----- Magnet Switch on door
|
|
|---{ethernet}--- [Arduino] --- RFID reader outside door
Notes:
- make sure you create a google.cache file and it is writable by PHP if you wish to use Android push notifications.