Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: autostart oled display failure..
#14
so logged in as pi I can run
Code:
cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && ./monitor.py

Code:
cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && /usr/bin/python ./monitor.py
Code:
sudo -i
cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && ./monitor.py
Code:
sudo -i
cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && /usr/bin/python ./monitor.py
yes they all work as do all the other commands and scripts I have mentioned...

But adding any of those lines to /etc/rc/local does not cause the display to start or refresh....

What am I missing...?

Quote:When executing a process in a non-interactive environment such as cron, rc.local, you cannot assume environment variables and paths are exported as in a user's interactive shell as no user profile is being sourced.


I'm sorry, this assumes more knowledge of coding than I have Sad   all Greek  to me..Sad

here are all the suggestions  made and tried to no avail

Code:
# moOde startup and job processor daemon
/var/www/command/worker.php > /dev/null 2>&1

/home/pi/Flirc-moode.py
#python /bin/su - pi -c "cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && ./monitor.py &"
#python cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && ./monitor.py &
#/home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor/monitor.py &
#/bin/su - pi -c "/home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor/monitor.py &"
#cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && ./monitor.py &
#/Adafruit_Python_SSD1306/raspberry-oled-monitor/launcher.sh &
#cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && ./monitor.py &
#sudo -i
#cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && ./monitor.py &

exit 0
----------
bob
Reply


Messages In This Thread
autostart oled display failure.. - by DRONE7 - 12-27-2019, 11:54 PM
RE: autostart oled display failure.. - by DRONE7 - 12-28-2019, 03:20 AM
RE: autostart oled display failure.. - by vinnn - 12-28-2019, 11:47 AM
RE: autostart oled display failure.. - by DRONE7 - 12-28-2019, 04:57 PM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 03:59 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 06:10 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 06:56 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 08:03 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 08:26 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 08:57 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 09:39 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 10:02 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 10:30 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 10:44 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 10:53 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 08:11 PM
RE: autostart oled display failure.. - by DRONE7 - 12-31-2019, 03:24 AM

Forum Jump: