Skip to content

Latest commit

 

History

History
73 lines (44 loc) · 2.12 KB

6slideshow.md

File metadata and controls

73 lines (44 loc) · 2.12 KB
name Running the Slideshow (Optional)
title NODEYEZ Slideshow Setup
layout default

Running the Slideshow

If you have a screen attached to your raspberry pi, you can display the generated images to the screen using the slideshow script

Script Location

The script is installed at ~/nodeyez/scripts/slideshow.sh

Run Directly

If you are currently logged in as user nodeyez, exit back to the privileged user

Then run the following

sudo bash -c 'cd /home/nodeyez/nodeyez/scripts && ./slideshow.sh'

This will test the script and begin running through the images in the nodeyez imageoutput folder.

Press q to exit the framebuffer imageviewer display, and then CTRL+C to terminate the script.

If you dont see any images, then edit the slideshow script file

nano /home/nodeyez/nodeyez/scripts/slideshow.sh

Locate the line that initiates the fbi commmand (around line 12) which looks like this

fbi --vt 1 --autozoom --timeout ${timeperimage} --device /dev/fb0 --noreadahead --cachemem 0 --noverbose --norandom ${globtodisplay} > /dev/null 2>&1

Comment the part at the end that redirects to stdout and stderr to /dev/null.

You can do this by placing a # right before this at the end of the line > /dev/null 2>&1.

Save (CTRL+O) and Exit (CTRL+X).

Terminate any existing background process before restarting the slideshow script

for p in `ps aux | grep slideshow | grep -v grep | awk '{print $2}'`; do sudo kill $p; done

Now any errors will be reported to the console.

You may need to change the parameters of the fbi command to

  • Use a different virtual terminal (Try 0 or 1 as the value for --vt)
  • Use a different device for output (Try /dev/fb0 or /dev/fb1 as the value for --device)

Run at Startup

To enable the script to run at startup, as the privileged user run the following

sudo systemctl enable nodeyez-slideshow.service

sudo systemctl start nodeyez-slideshow.service

Home | [Back to Panel Index]({% link _install_steps/5panels.md %}) | [Continue to Website Dashboard]({% link _install_steps/7websitedashboard.md %})