[mythtv-users] Mythbuntu Control Panel Status
TL
ted1193-mythmlist at yahoo.com
Thu Dec 3 02:50:41 UTC 2020
>On Sunday, August 2, 2020, 05:46:42 AM EDT, Stephen Worthington <stephen_agent at jsw.gen.nz> wrote:
>wget http://www.jsw.gen.nz/mythtv/wait-until-pingable.py
Mythbuntu Control Panel now has three methods for the user to choose from to have the backend start after the network is up. The Basic method is the same as the previous method. The Basic method creates this /etc/systemd/system/mythtv-backend.service.d file:
[Unit]
After=network-online.target
Wants=network-online.target
[Service]
ExecStartPre=/bin/sleep 5
The Ping method uses Stephen W's very helpful script. Stephen W, if you don't mind, I copied your wait-until-pingable.py script to https://github.com/mythcp/mythbuntu-control-panel, and it is installed when MCP is installed. When the user selects the Ping method, a text entry field becomes visible. Upon applying the method, MCP uses wait-until-pingable.py to check the entry. If the ping is successful, MCP creates this /etc/systemd/system/mythtv-backend.service.d file:
[Unit]
After=network.target
[Service]
ExecStartPre=+/bin/bash -c "/usr/share/mythbuntu/wait-until-pingable.py [user input] 30"
The HDHomeRun method uses a Python script similar to Bill M's script at https://forum.mythtv.org/viewtopic.php?f=29&t=1467. Upon the user applying the method, MCP checks that an HDHomeRun device is discoverable. If successful, MCP creates this /etc/systemd/system/mythtv-backend.service.d file:
[Unit]
After=network.target
[Service]
ExecStartPre=/bin/bash -c "/usr/share/mythbuntu/hdhomerun-discover.py"
I still need to update the wiki, and I still need to add the ability for MCP to install hdhomerun_config. For now, the wiki can instruct the user to use "sudo apt install hdhomerun-config".
More information about the mythtv-users
mailing list