I am very new to all of this so be easy on me
I have my PI setup as an airplay server for my car and it works great. Right now I am ssh'ing into the Pi to run a sudo init 0 to shut it down before I turn my car off.
What I would like is a simple way for me to click a button from my iphone (I guess via a webserver running on the PI) to trigger a shutdown.
I have been searching around and found a few things but since I am such a newbie I don't quite get them
What would be the simplest way to accomplish this? It does not have to require a webserver if there is another way.