For further reference:
Replacing the lightshowpi python script with another python script runs fine.
I suspect there is something weird happening with this exact script.
I have posed similar questions on the developer's google+ page for the script, and have not received much help.
here's what I did to test the theory:
I modified the shell script (launched from the button detect python)
Yes, it's a dodgy way to get to the goal I know - please bear with me.
Code: Select all
sudo mpg321 -g 50 /home/pi/chimeup.mp3
sudo mpg321 -g 50 /home/pi/p51approaching.mp3
sudo /usr/bin/python /home/pi/lightshowpi/py/synchronized_lights.py --file=/home/pi/p51flyby.mp3
sudo python /home/pi/lightson.py
the extra python script is as follows:
(just tests all the relays on the card and resets them)
Code: Select all
import RPi.GPIO as GPIO
import time
import os
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)
GPIO.setup(23, GPIO.OUT)
GPIO.setup(24, GPIO.OUT)
GPIO.setup(25, GPIO.OUT)
#
#
#
GPIO.output(18, False)
time.sleep(0.1)
GPIO.output(18, True)
time.sleep(0.1)
#
GPIO.output(23, False)
time.sleep(0.1)
GPIO.output(23, True)
time.sleep(0.1)
#
GPIO.output(24, False)
time.sleep(0.1)
GPIO.output(24, True)
time.sleep(0.1)
#
GPIO.output(25, False)
time.sleep(0.1)
GPIO.output(25, True)
#
time.sleep(0.5)
#
#
GPIO.output(18, True)
GPIO.output(23, True)
GPIO.output(24, True)
GPIO.output(25, True)