[mythtv-users] from PCI to network tuners

Bill Meek keemllib at gmail.com
Sat Jan 29 17:17:47 UTC 2022


On 1/28/22 12:46, Daryl McDonald wrote:
> Thanks Bill:
> daryl at trieli:~$ sudo /usr/local/bin/hdhomerun_check.py
Don't use sudo. If run with that 1st, the log file will be
owned by root:root and mythtv won't be able to write to
it. Use the chown/chmod commands in the last post.

> daryl at trieli:~$ cat /var/log/mythtv/hdhr_discovery.log
> 2022-01-28 13:05:45 INFO Starting HD Homerun discovery
> 2022-01-28 13:05:45 INFO Found HD Homerun. Seconds=0.428, attempts=1.
> 
> After a few stops and starts:
> daryl at trieli:~$ cat /var/log/mythtv/hdhr_discovery.log
> 2022-01-28 13:05:45 INFO Starting HD Homerun discovery
> 2022-01-28 13:05:45 INFO Found HD Homerun. Seconds=0.428, attempts=1.

That's good.

> daryl at trieli:~$
> and FE info shows tuners unavailable 

Then the connections to the HDHR's doesn't seem to be the problem.
Remember to look in your frond and backend log files for clues.

> I uncommented "Service" and added "ExecStartPre=/usr/local/bin/hdhomerun_check.py" right below it
> I think the permissions are correct:
> daryl at trieli:~$ ls -al /usr/local/bin/hdhomerun_check.py
> -rwxr-xr-x 1 root root 1875 Jan 28 12:59 /usr/local/bin/hdhomerun_check.py
> daryl at trieli:~$
> maybe it should not be owned by root?

No, root:root is normal and it's readable/executable by everyone.

> after a recent reboot FE shows one of two tuners available, I want to be able to check for two dual HDHRs eight potential tuners
> 
> Evidentially it is not running on startup:
> daryl at trieli:~$ cat /var/log/mythtv/hdhr_discovery.log
> 2022-01-28 13:05:45 INFO Starting HD Homerun discovery
> 2022-01-28 13:05:45 INFO Found HD Homerun. Seconds=0.428, attempts=1.
> 2022-01-28 13:44:23 INFO Starting HD Homerun discovery
> 2022-01-28 13:44:23 INFO Found HD Homerun. Seconds=0.426, attempts=1.
> daryl at trieli:~$

The tool only looks to see if the HDHR is running, no check
of MythTV configurations. It, and programs/scripts, care for the case
where the backend starts before the HDHR(s) are up.

> but working well from the command line.  What have I missed? 

Can't tell from the above, But if you have two HDHRs *AND* they have static
IP addresses, then add a 2nd ExecStartPre line (using the systemctl
edit command). When you do, add the IP address after each call to
the new version here, replacing the earlier one: https://pastebin.com/FTGKVUkq

Similar to this:
ExecStartPre=/usr/local/bin/hdhomerun_check.py 10.10.10.11
ExecStartPre=/usr/local/bin/hdhomerun_check.py 10.10.10.99

You can get your IPs easily by running: hdhomerun_config discover

If your IPs aren't static then this program isn't for you. Unless
you only have one HDHR, which is my case, not yours. Delete the
ExexStartPre line(s).

-- 
Bill


More information about the mythtv-users mailing list