Kodi Community Forum
CCTV screensaver need help with refresh - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Look and feel (https://forum.kodi.tv/forumdisplay.php?fid=178)
+---- Thread: CCTV screensaver need help with refresh (/showthread.php?tid=176277)



CCTV screensaver need help with refresh - nats0128 - 2013-10-22

I am creating a screensaver that will view show what my CCTV cameras i have started on the code from https://github.com/dersphere/script.screensaver.test and only changed the background to my URL link that works fine with getting the footage that is currently showing but i need it to refresh every half a second.

How would i put that in the script and where would i put it?

Thank you


RE: CCTV screensaver need help with refresh - el_cabong - 2014-01-13

can you show the code you used to make the webpage the background.. im trying to do something similar. thanks.


RE: CCTV screensaver need help with refresh - nats0128 - 2014-01-13

Hi, el_cabong

I stop this project ages ago, as i could not find away to stop xbmc from caching the original pictures and looping through the cache instead of updating to new pictures...

I am using a program called ispy that would create a jpg of the current camera and then update the website every X seconds...

If i remember correctly i changed the file "resources/skins/default/720p/script-Python Screensaver TEST-main.xml" so it read

Code:
<window>
    <controls>
        <control type="image">
            <description>Black Background</description>
            <posx>0</posx>
            <posy>0</posy>
            <width>1280</width>
            <height>720</height>
            <texture>{MY URL}</texture>
        </control>............

I ended up using my xbmc setup as a server for the cctv so any recordings and pictures save to the xbmc set up, i then set up just a normal slideshow screensaver and choose the image directory where i store my cctv images...