Display MoreJust going to make a stab in the dark, based on this error line:
AssertionError: View function mapping is overwriting an existing endpoint function: index
I wonder if flask doesn't like the same variable name used more than once. Maybe change each def to be something different?
@route('/color/<colorid>')
def indexc(colorid):
subprocess.check_output(['/usr/bin/hyperion-remote', '--color', colorid])
return "done"
@route('/effect/<effectname>')
def indexe(effectname):
subprocess.check_output(['/usr/bin/hyperion-remote', '--effect', effectname])
return "done"
@route('/clearall')
def indexclear():
subprocess.check_output(['/usr/bin/hyperion-remote', '--clearall'])
return "done"
And like i said, something stupid simple, that worked! More upset now that i didnt see that. Now i just gotta get my pi's accessible from google home outside the network.
Thank you thank you thank you!