thanks again Guru. i forgot about the executable privilege. i did that for the .sh file when i first tried this a couple days ago, but forgot that step when trying the python alternative. so i went ahead and set that, and updated the System Command plugin to run:
sudo /usr/local/bin/scripts/light_on.py
Im running a job right now though, so im going to wait for it to be finished before i try it... just to be safe. As a side note, since there were so many script options above, this is what i currently have in the .py...
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
red=26
green=13
blue=19
GPIO.setup(red, GPIO.OUT)
GPIO.setup(green, GPIO.OUT)
GPIO.setup(blue, GPIO.OUT)
GPIO.output(red, 1)
GPIO.output(blue, 1)
GPIO.output(green, 1)
So as i understand, BCM sets the #ing to be the GPIO #, not the pin #. So, the above #s correspond to GPIOs i used, not the pins.
i know these lights work with PWM, as i can get any color thru the Enclosure plugin. So, IF this works, im assuming this will give me full brightness. Either that or it will give me 1/255th brightness.
and a final thought, in 1 of the tutorials, it made mention of needing python 3 or newer. Iv never updated python since installing Octopi, so im currently on 2.7 i think. Will that have an effect? I looked up how to update python and the one page i found on it seemed pretty involved... compling and such... something iv never done, and several users were reporting it taking hours.