-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP URL commands not activating visualizations. #2
Comments
That looks like a permissions issue. What's in your |
I was able to get it to work! I did some googling on the error and it pertaining to Apache and found that I needed to give the user www-data permissions to use python in the sudoers file. For the sake of testing, I used Thanks for the help! Prehaps we should add something about this to the README? |
It's very strange that you ran into this. You shouldn't have to do that. Did you make sure that www-data owned all the files in |
I also added a new troubleshooting section and referenced this issue and the workaround you posted: https://github.com/naztronaut/dancyPi-audio-reactive-led#troubleshooting Thanks for doing that! And I'm really glad you got it to work :) congrats!! |
The user www-data does own all the files inside of Unrelated to this issue, but if you're interested I also came up with a solution for controlling the strips visualization and on/off using your repository via Home Assistant. It doesn't use the web server, it uses SSH to remotely run the commands and an automation to run |
It might work if you have I'm interested in learning about your home assistant setup! That's actually been on my list todo for a while but I haven't had any time to work on it. Would love to see what you have :) Thanks! |
I’m not sure the workaround you added with the sudoers file covers the |
For info, changing your trouble shooting to: |
I was able to successfully implement Scotts original and everything works fine. I stumbled across your fork which solved the issue of controlling the on/off state of the LED strip and visualizations. Thank you kindly for that! Very handy feature. I'm having a problem however with getting the visualization('s) to execute via the URL. Everything works as intended using the command line arguments to change the visualization. I do have Apache2 and PHP installed. I did test a couple simple "hello world" and print date PHP index files to insure that Apache could run PHP scripts, which were successful. The
http://ip-address/control.php?on=spectrum
returns nothing on the page (expected) but does not start the visualization (unexpected).http://ip-address/control.php?off=1
reutrnssudo: no tty present and no askpass program specifiednada
, not sure why... Any suggestions? Thanks!The text was updated successfully, but these errors were encountered: