dancyPi-audio-reactive-led icon indicating copy to clipboard operation
dancyPi-audio-reactive-led copied to clipboard

Browser setup documentation

Open biton13 opened this issue 4 years ago • 1 comments

Hi First of all, thanks a lot for sharing your code. Made all process a lot easier. I'm trying to setup the web interface or at least call the control.php file but can't find the documentation pertaining to this setup. Do I need to create a symlink in /var/www/html or something like this ? thanks

biton13 avatar Aug 02 '20 17:08 biton13

Glad you like the project!

I am actually in the process of redoing the web interface using Flask/Python instead of PHP. I thought that calling a python script from PHP to be pretty inefficient. Setting up a quick Flask app would be preferred.

So I removed how to implement control.php (that file will also be removed soon from the repo). I backed up the master branch before I made that change so you can still find some documentation on that here if you still want to set up the PHP script: https://github.com/naztronaut/dancyPi-audio-reactive-led/tree/master_bak#browser-setup

No need or a Symlink, just make sure you have Apache and PHP installed on the pi, move control.php into the /var/www/html directory, change ownership to Apache, and then you can run it. If you run into a permissions issue, there is one troubleshooting step right below that explains how to get past that.

Hope this helps! Let me know if you have questions. Good luck!

naztronaut avatar Aug 03 '20 02:08 naztronaut