We have Raspberry Pis that we want to configure for some display monitors inside our building.
When my Raspberry Pi boots it connects to a Windows share, but if I add or remove files from that share the changes don't show on the Pi until I hit the F5 key to refresh the view.
Our goal is to have images that are stored in a network share appear as a slideshow on the pi display. We're hoping to achieve this by having Rsync run to copy the images from the network share folder to the Pi Pictures folder. Then X-screensaver will display images from the Pictures folder.
My issue is, I need to know how to add the equivalent of an "F5" keystroke into the rsync script or as a task in crontab so the inventory of the network share gets refreshed before the rsync job runs. We want to run rsync as a cron task twice a day, at 9:30am and 4:30pm.
At this point I just have all the tasks laid out in Crontab so it goes:
4:30pm unmount network share
4:31pm remount network share (this refreshes the view since I don't have the equivalent of an "F5" script
4:32pm run Rsync
4:33pm restart x-screensaver
I was hoping having a script equivalent of an F5 keystroke could simplify the process and yield a more elegant solution.
July 25th Edit
For some reason xscreensaver wasn't recognizing my image files and kept throwing a "no suitable images" error so I installed the Mate desktop (my personal favorite) and am now using the mate-screensaver, which pulls images from the Pictures file. Everything else works the same except the 4:33 command is a restart of mate-screensaver.