From MythTV Official Wiki
Revision as of 03:08, 25 August 2017 by Gtb (talk | contribs) (minor correction of initial page content)

Jump to: navigation, search

MythUtil-Channel-HDHR-channelCheck is a python script which is part of a set of related utility scripts (MythUtil-Channel-XMLTV-getLineup MythUtil-Channel-videosource MythUtil-Channel-HDHR-channelCheck MythUtil-Channel-HDHR-visibilityCheck MythUtil-Channel-visibility) that may be useful for users to maintain their channel lineup.

The definitive source location for this script is located on github, which is where one should obtain the current script.

MythUtil-Channel-HDHR-channelCheck reports on any difference between available channels between ones channel lineup and what a current generation HDHomeRun device lineup contains.


 MythUtil-Channel-HDHR-channelCheck [-h] --hdhr HDHR [--backend BACKEND]
                                    [--port PORT] [--username USERNAME]
                                    [--password PASSWORD]
                                    (--videosource-name SOURCENAME | --videosource-id SOURCEID)
                                    [--channel CHANNELINCLUDE [CHANNELINCLUDE ...]]
                                    [--exclude-channel CHANNELEXCLUDE [CHANNELEXCLUDE ...]]

Optional arguments:

 -h, --help            show this help message and exit
 --hdhr HDHR           the HDHomeRun from which to retrieve the lineup
 --backend BACKEND, --host BACKEND
                       the host (backend) to access. The default is localhost.
 --port PORT           the port to connect to on on the host. The default is 6544
 --username USERNAME   the username to use for host authentication
 --password PASSWORD   the password to use for host authentication
 --videosource-name SOURCENAME
                       the video source name
 --videosource-id SOURCEID
                       the video source id
                       list of channels to consider. The default is all
                       list of channels to exclude. The default is none


Only tested with MythTV 0.28, and 4th generation HDHR devices with the latest firmwares. To usefully use this script one must use the "Detect Channels" capability of the HDHR before running the script.


For the examples below, it is presumed you are running on the backend host with the default ports and the sourceid of your cable lineup is 2.

  • Scenario: You want to compare your HDHR channel data with your MythTV channels
 MythUtil-Channel-HDHR-channelCheck --hdhr=myhdhr.local --videosource-id=2