env variables not setting
andrewm659 opened this issue · 2 comments
Hello,
I am trying out your fork of lightshowpi but the env variables aren't working. I have them set in /etc/profile.d/lightshowpi.bashrc, /etc/bash.bashrc and in my ~/.bashrc. Yet every time I run synchronized_lights.py or try to start the microweb it complains about the variables not being set up. I tried changing the folder thinking that was the issue but nope.
pi@LightShowPi-EZ:~/lightshowpi/bin $ sudo ./start_microweb
You need to first setup the SYNCHRONIZED_LIGHTS_HOME environment variable to point to the install
directory for lightshowPi. Please visit the lightshowPi wiki page for more information:
https://bitbucket.org/togiles/lightshowpi/wiki/Home#markdown-header-synchronized_lights_home-environment-variable
pi@LightShowPi-EZ:~/lightshowpi/bin $ env|grep -i lightshow
PWD=/home/pi/lightshowpi/bin
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/pi/LightShowPi-EZ/bin:/home/pi/LightShowPi-EZ/bin
SYNCHRONIZED_LIGHTS_HOME=/home/pi/LightShowPi-EZ
OLDPWD=/home/pi/lightshowpi
pi@LightShowPi-EZ:~/lightshowpi/bin $
Oh my word. I have not looked at GitHub in forever. What directory did you install my fork to?
It looks like you're currently in the ~/lightshowpi/bin
directory, which would mean the install directory is not LightShowPi-EZ
but lightshowpi
unless you have two instances installed, in which case you are running the incorrect executable. You need to be in the ~/LightShowPi-EZ/bin
directory.