Control the photon from desktop

You could use a script that runs a curl command
Or have a simple HTML/JS page like shown here
Tutorial: Spark Variable and Function on One Web Page
and numerous other options