So i am trying to get back to making this work through my google home mini. I still have to figure out the getting the google home mini to communicate in my network, but fairly certain i can get that. I have it up and running to where i can hit a webaddress on my computer to trigger an effect. Problem being is that it only works if i have just the effect or just the color script in it. As soon as i try to include the clearall or both color and effect in it, i get errors trying to run the CouchSite.py. (its a webserver to control my LEDs embedded into my couch drink rail)
Here is what i currently have. I dont know why but when i was working previously i got away from the daemon stuff and am using some for of app. Im not well versed in any of this and trying to learn as i go.
from flask import Flask
app = Flask(__name__)
subprocess.check_output(['/usr/bin/hyperion-remote', '--effect', effectname])
if __name__ == "__main__":
When i try to run the script i get this....
Traceback (most recent call last):
File "CouchSite.py", line 10, in <module>
File "/usr/lib/python3/dist-packages/flask/app.py", line 1080, in decorator
self.add_url_rule(rule, endpoint, f, **options)
File "/usr/lib/python3/dist-packages/flask/app.py", line 64, in wrapper_func
return f(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1051, in add_url_rule
'existing endpoint function: %s' % endpoint)
AssertionError: View function mapping is overwriting an existing endpoint function: index
Any ideas of what i am missing. I feel like its probably something stupid and that i am close. Any help is appreciated, thank you!