<div dir="ltr">Thanks Bill, scripts are working now, one of my HDHRs isn't, I had to comment out one IP to start BE.<div>It's not the power supply, I traded and the same unit won't work. I'll give it a rest for now.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 29, 2022 at 12:17 PM Bill Meek <<a href="mailto:keemllib@gmail.com">keemllib@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 1/28/22 12:46, Daryl McDonald wrote:<br>
> Thanks Bill:<br>
> daryl@trieli:~$ sudo /usr/local/bin/hdhomerun_check.py<br>
Don't use sudo. If run with that 1st, the log file will be<br>
owned by root:root and mythtv won't be able to write to<br>
it. Use the chown/chmod commands in the last post.<br>
<br>
> daryl@trieli:~$ cat /var/log/mythtv/hdhr_discovery.log<br>
> 2022-01-28 13:05:45 INFO Starting HD Homerun discovery<br>
> 2022-01-28 13:05:45 INFO Found HD Homerun. Seconds=0.428, attempts=1.<br>
> <br>
> After a few stops and starts:<br>
> daryl@trieli:~$ cat /var/log/mythtv/hdhr_discovery.log<br>
> 2022-01-28 13:05:45 INFO Starting HD Homerun discovery<br>
> 2022-01-28 13:05:45 INFO Found HD Homerun. Seconds=0.428, attempts=1.<br>
<br>
That's good.<br>
<br>
> daryl@trieli:~$<br>
> and FE info shows tuners unavailable <br>
<br>
Then the connections to the HDHR's doesn't seem to be the problem.<br>
Remember to look in your frond and backend log files for clues.<br>
<br>
> I uncommented "Service" and added "ExecStartPre=/usr/local/bin/hdhomerun_check.py" right below it<br>
> I think the permissions are correct:<br>
> daryl@trieli:~$ ls -al /usr/local/bin/hdhomerun_check.py<br>
> -rwxr-xr-x 1 root root 1875 Jan 28 12:59 /usr/local/bin/hdhomerun_check.py<br>
> daryl@trieli:~$<br>
> maybe it should not be owned by root?<br>
<br>
No, root:root is normal and it's readable/executable by everyone.<br>
<br>
> 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<br>
> <br>
> Evidentially it is not running on startup:<br>
> daryl@trieli:~$ cat /var/log/mythtv/hdhr_discovery.log<br>
> 2022-01-28 13:05:45 INFO Starting HD Homerun discovery<br>
> 2022-01-28 13:05:45 INFO Found HD Homerun. Seconds=0.428, attempts=1.<br>
> 2022-01-28 13:44:23 INFO Starting HD Homerun discovery<br>
> 2022-01-28 13:44:23 INFO Found HD Homerun. Seconds=0.426, attempts=1.<br>
> daryl@trieli:~$<br>
<br>
The tool only looks to see if the HDHR is running, no check<br>
of MythTV configurations. It, and programs/scripts, care for the case<br>
where the backend starts before the HDHR(s) are up.<br>
<br>
> but working well from the command line.  What have I missed? <br>
<br>
Can't tell from the above, But if you have two HDHRs *AND* they have static<br>
IP addresses, then add a 2nd ExecStartPre line (using the systemctl<br>
edit command). When you do, add the IP address after each call to<br>
the new version here, replacing the earlier one: <a href="https://pastebin.com/FTGKVUkq" rel="noreferrer" target="_blank">https://pastebin.com/FTGKVUkq</a><br>
<br>
Similar to this:<br>
ExecStartPre=/usr/local/bin/hdhomerun_check.py 10.10.10.11<br>
ExecStartPre=/usr/local/bin/hdhomerun_check.py 10.10.10.99<br>
<br>
You can get your IPs easily by running: hdhomerun_config discover<br>
<br>
If your IPs aren't static then this program isn't for you. Unless<br>
you only have one HDHR, which is my case, not yours. Delete the<br>
ExexStartPre line(s).<br>
<br>
-- <br>
Bill<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div>