PHP URL commands not activating visualizations.
See original GitHub issueI 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
reutrns sudo: no tty present and no askpass program specifiednada
, not sure why… Any suggestions? Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
The user www-data does own all the files inside of
/var/www/html
. The only file that isn’t owned bywww-data
is the index.php I created which just shows a line of text on the page describing what it’s for. I did try removing that and attempting to run the visuals as stated in Browser Setup, but to no avail. I will do a freash install again when I get the chance and work it backwards and see if I can find out a cause since you’re saying that I shouldn’t need to givewww-data
Python permissions in the sudoers file. I’ll let you know what I come up with.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
sudo killall python
and runoff.py
in sequence so no conflicts happen. I couldn’t have done this without your expansion on Scott’s repo, so I really appreciate the work man. I’d love to contribute where I can! Let me know.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!!