Hey guys. So what I'm trying to do is control my RGB leds over the internet. Technically right now I can, but I want to be able to from a website. My current setup is this:
I have a Raspberry Pi hooked up to my local wireless that has RF24 C++ code communicating with an nRf24L01 module to transmit the RGB value to an arduino, which then uses mosfets and PWM outputs and voodoo magic to turn the lights to that RGB specification. This works, and I can technically control it from anywhere using something like PuTTy, but that's no fun!
I want to be able to control this from a website. I get that if I were to install apache, I could technically use PHP or Python and use _GET and stuff(forgot exactly what it's called) to run commands on the Raspberry pi, right? But I don't think I can do that, since the C++ program needs to be first started, then you enter in commands.
I don't really know how to do this, and I just need some ideas. I thought maybe I could run C++ code from Python, I'm still not interacting with a live C++ program.
How would you guys do this? I would assume you could use some combination of C++ and Python/PHP to interact, but how?