photoframe - turn off screen during certain hours
#1
I have setup one of my rpi as a digital frame running openelec. I'm using the following autoexec.py python script to start the slideshow on boot. It doesn't seem to be random but its a start

Code:
import xbmc
xbmc.executebuiltin("SlideShow(/storage/pictures/)")

What I would like to be able to do is turn the screen off say between 10pm and 7am. I'm guessing a cron job might do the trick but I'm at a loss of how to code it. Any help would be great.

I think I can fix the random issue with

Code:
import xbmc
xbmc.executebuiltin("SlideShow(/storage/pictures/,recursive,random")
Reply
#2
(2014-12-26, 15:11)hosko Wrote: What I would like to be able to do is turn the screen off say between 10pm and 7am. I'm guessing a cron job might do the trick but I'm at a loss of how to code it. Any help would be great.

Screen off:
Code:
/usr/bin/vcgencmd display_power 0

Screen on:
Code:
/usr/bin/vcgencmd display_power 1
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
#3
Thanks Milhouse
Reply

Logout Mark Read Team Forum Stats Members Help
photoframe - turn off screen during certain hours0