<div dir="ltr">Here is the script I use, Was made for Minimyth but you can modify the sleep command and it will prob work for most any system. <br><br><a href="http://minimyth.org/forum/viewtopic.php?t=1470">http://minimyth.org/forum/viewtopic.php?t=1470</a><br>
<br>The only thing I really added was this bit of code(to checkbuttonpress) to use osd_cat to display a message on the screen. I used osd_cat since mythnotify only works in livetv and videos. <br><br>echo `date` &#39;check last button push:&#39; $DIFF &#39; seconds&#39;&gt;&gt;/home/minimyth/messages<br>
if [ $DIFF -gt 5000 ] # at 5000 seconds let user know getting ready for sleep mode<br>then<br>echo &quot;!! Getting ready to go in to sleep mode press any button to abort !!&quot;| osd_cat -d 10<br>fi<br><div class="gmail_quote">
<br><br>On Thu, Jul 17, 2008 at 4:52 PM, Kevin Robbins <span dir="ltr">&lt;<a href="mailto:robbinsck1@gmail.com">robbinsck1@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;m looking for pointers for the following.<br>
<br>
I remember reading that someone had done this with a usb-uirt, lirc and cron.<br>
<br>
Here is exactly what I&#39;d like to do.<br>
<br>
Run a cron job every 2 hours that checks to see if A) There has been<br>
any remote signals sent and B) Check if Myth is playing a video or is<br>
just idle.<br>
<br>
If both conditions are met, I&#39;d like to display a notice that lasts<br>
for 10-20 seconds (which a keypress will cancel) or send a power off<br>
command to the Television.<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</blockquote></div><br></div>