Linux Script to Refresh Slideshow without restart
#1
Hi Everyone,

I'm kind of new to this, so please bear with me.

I'm running OpenElec XBMC for Raspberry Pi and I want to have it automatically start the slideshow as soon as XBMC starts. I've figured that part out with the below script and added the autoexec.py file to the users directory.

import xbmc

xbmc.executebuiltin("SlideShow (smb://<IP ADDRESS>/images)")

This works successfully on our local network where all of our images are stored in a shared directory. XBMC Starts up, Loads the slideshow and the images display just as needed.

What I'd like to be able to do is have it where XBMC will refresh the directory at a certain interval, lets say every 5 minutes or so and have the slideshow update without having to stop and restart the slideshow. From time to time I'd like to be able to add new images to the network share and have them automatically display.

I found some info about this on this thread, but it's a script for running on an XBOX.
http://forum.xbmc.org/showthread.php?tid=20104

Does anyone know how I can add the correct coding to my autoexec.py file so that it will work like the above thread? I'm hoping it's just a newbie mistake I'm making.

Thanks in advance for your help.
Reply
#2
just a quick bump since i'm trying to find the exact same information.

i want to make a slideshow regularly check for new images in the image folder. easiest way seems to be to make the slideshow restart every ten minutes or so, but i don' know how to do that...

anyone got any ideas/suggestions?

edit: this addon (http://forum.xbmc.org/showthread.php?tid=144378) can run your script every hour. ive installed it and told it to run the script every hour. unfortunately it cant do any more frequently than that. plus it would probably be useless because it would presumably just interrupt whatever you were doing at the time Big Grin

plus it didnt seem to work for me anyway.
Reply
#3
hi,

I have exact same problem. I am running kodi on a raspberry pi and I need to be able to run the slideshow of pictures from a directory. The directory gets updated remotely. Pictures may be updated (added or deleted) daily or even hourly and the slideshow needs to be able to display new pictures and not display the deleted ones. Currently, when new pictures are added, the slideshow does not update itself until it is restarted.

Has anyone found a solution for this?


Thank you so much!
Reply
#4
Hi,

I am also looking for a slideshow refresh solution. I tried several Add-ons (Watchdog and Auto-update) but it look very much that these are for Audio and Video only and not for JPG images in a slideshow.
Any help would be welcome.

Regards, Benny.
Reply
#5
(2016-12-21, 21:25)Benny54 Wrote: Hi,

I am also looking for a slideshow refresh solution. I tried several Add-ons (Watchdog and Auto-update) but it look very much that these are for Audio and Video only and not for JPG images in a slideshow.
Any help would be welcome.

Regards, Benny.
Hi there! I am trying to do the same thing, did you have any luck in figuring this out?
Reply
#6
(2017-12-24, 07:10)seank123 Wrote:
(2016-12-21, 21:25)Benny54 Wrote: Hi,

I am also looking for a slideshow refresh solution. I tried several Add-ons (Watchdog and Auto-update) but it look very much that these are for Audio and Video only and not for JPG images in a slideshow.
Any help would be welcome.

Regards, Benny.
Hi there! I am trying to do the same thing, did you have any luck in figuring this out? 
No, unfortunately i did not find a solution. So i use the nightly reboot or sometimes i force a manual reboot when i need the new images being published imediately.
Reply
#7
The question of Seank123 triggered me to search (Google) again for a possible solution and I found a script that seems to be working fine for me.
Check the thread (13/13) of Ashtonaut in this forum: https://discourse.osmc.tv/t/refresh-pict...ry/4867/13
I put his script in my autoexec.py and edited the picfolder variable. 
First impression: it works like a charm!

Regards and please let me know if it works for you also.
Reply

Logout Mark Read Team Forum Stats Members Help
Script to Refresh Slideshow without restart0