[mythtv-users] Ensure STB is on

Stephen Worthington stephen_agent at jsw.gen.nz
Thu Aug 15 00:44:31 UTC 2013


On Wed, 14 Aug 2013 12:28:25 -0400, you wrote:

>You have proved yourself a genius once again Mr. Worthington, with your
>direction even a newbie like me can see that the script is working: (not to
>mention the STB turned on)
>
>daryl at daryl-A780L3C:~$ /usr/local/bin/check_stb
>daryl at daryl-A780L3C:~$ grep mythstb-check /var/log/syslog
>Aug 14 08:08:08 daryl-A780L3C mythstb-check: Wed Aug 14 08:08:08 EDT 2013
>STB seems to be turned off, last count was 1728, attempting to Power it on
>Aug 14 08:09:27 daryl-A780L3C mythstb-check: Wed Aug 14 08:09:27 EDT 2013
>STB seems to be turned off, last count was 1728, attempting to Power it on
>Aug 14 08:13:22 daryl-A780L3C mythstb-check: Wed Aug 14 08:13:22 EDT 2013
>STB seems to be turned on, last count was 465
>Aug 14 12:16:31 daryl-A780L3C mythstb-check: Wed Aug 14 12:16:31 EDT 2013
>STB seems to be turned off, last count was 1728, attempting to Power it on
>daryl at daryl-A780L3C:~$
>
>Will Mythtv use this script every time I direct it to record from the STB,
>just because it's in the directory beside the change_channel.sh ? Or do I
>need to insert it into the change_channel.sh?

Nothing like that will happen automagically - you need to add a call
to check_stb at the top of your channel change script.  Just add these
lines:

  # Ensure that the STB is turned on.
  /usr/local/bin/check_stb

>Many thanks and much tribute, Daryl

And of course, thanks to curious onlooker for his rather ingenious
script.


More information about the mythtv-users mailing list