HDHRUtil utilities - A few useful (python3) scripts for those using the HDHR ecosystem

Want to write your own code to work with a HDHomeRun or work with the HDHomeRun DVR? We are happy to help with concepts, APIs, best practices.
gtb
Expert
Posts: 3409
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA

HDHRUtil utilities - A few useful (python3) scripts for those using the HDHR ecosystem

Postby gtb » Sun Jun 03, 2018 5:25 pm

HDHRUtil utilities - A few useful (python3) scripts for those using the HDHR ecosystem

*IMPORTANT NOTE* Most of these utilities utilize undocumented features/functions of the various HDHR components which have been reverse engineered. In addition to potentially failing to do the correct thing today, at any future point SiliconDust may decide to change or alter their systems such that these utilities fail to work at that time. Caveat Emptor. Because these use undocumented capabilities, some of which may be considered proprietary, trade secret, or under other covenants, if SiliconDust asks me to remove the public repo I will do so.

*MORE IMPORTANT NOTE* Some of these utilities (especially those that manipulate metadata) may be able to screw up your recordings in ways that may make them unplayable, or may result in future episodes not being record, or may cause duplicate recordings, or may cause the entire universe to explode. Please try not to make the universe explode.

Github repository: https://github.com/garybuhrmaster/HDHRUtil

More complete documentation on each script (typically including an example) can be found in the docs/ subdirectory of the repo

Quick summary of current utilities:

HDHRUtil-DVR-fileMetadata - Display, update, set a files metadata
HDHRUtil-DVR-fileImport - Import an existing file into a DVR file with specified metadata
HDHRUtil-Tuner-channelScan - Report status, or start or stop a channel scan
HDHRUtil-Tuner-channelSetting - Set the channel status for a HDHR device
HDHRUtil-Tuner-channelSettingDuplicate - Copy the channel status from one HDHR to another

in the importers/ subdirectory is an example script to import selected recordings from MythTV.

gtb
Expert
Posts: 3409
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA

Re: HDHRUtil utilities - A few useful (python3) scripts for those using the HDHR ecosystem

Postby gtb » Sun Jun 03, 2018 5:30 pm

reserved for future updates

gtb
Expert
Posts: 3409
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA

Re: HDHRUtil utilities - A few useful (python3) scripts for those using the HDHR ecosystem

Postby gtb » Sun Jun 03, 2018 5:31 pm

reserved for future updates

ebo
Posts: 466
Joined: Thu Jan 07, 2010 6:58 pm

Re: HDHRUtil utilities - A few useful (python3) scripts for those using the HDHR ecosystem

Postby ebo » Mon Jun 04, 2018 7:31 pm

Since I'm not a coder, I don't know if the following suggestions are possible with variants of your scripts or even as they stand now, but they would be useful.

1) An additive scan of a user-selectable range of channels, i.e. keeping all previously-found channels. A special case would be to add a single channel, which could just be a range where the high and low channels are the same. Adding channels is useful where an antenna must be moved to get different channels. Setting a range helps where the local spread is much less than the US default of 2-69, 2-51 or (soon) 2-36.

2) The ability to remove unwanted channels found in a scan. Even better: a channel blacklist to keep those channels from showing up in future scans.

gtb
Expert
Posts: 3409
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA

Re: HDHRUtil utilities - A few useful (python3) scripts for those using the HDHR ecosystem

Postby gtb » Wed Jun 13, 2018 10:17 pm

Since I'm not a coder, I don't know if the following suggestions are possible with variants of your scripts or even as they stand now, but they would be useful.
As I understand your suggestion, those are functions of the actual device channel scan itself, and nothing these scripts can do about those functions. There have been suggestions that some changed scan functionality will be available RSN with some beta firmware. Perhaps some of those pending changes will help your use case (none of us will know until the firmware ships and people try it out).


Return to “Development Support”

Who is online

Users browsing this forum: No registered users and 3 guests