jumpmanjay / HDGrandSlam.bundle

A Plex plug-in that interfaces with HDHomeRun tuners and DVRs
MIT License
76 stars 8 forks source link

HDHR-US support #6

Closed a5m0 closed 7 years ago

a5m0 commented 7 years ago

Is there any way to get the old HDHR-US device working on this?

jumpmanjay commented 7 years ago

If you can update the firmware to the newer beta releases, it will probably work. I don't have any devices to test against, though.

logan2211 commented 7 years ago

OS is Ubuntu 16.04 I'm trying to get this working on a HDHR-US and getting this:


2017-01-11 19:06:06,147 (7f0f867fc700) :  DEBUG (runtime:814) - Found route matching /video/hdgrandslam/showallchannels
2017-01-11 19:06:06,155 (7f0f867fc700) :  CRITICAL (PyHDHR:626) - Exception in Tuner.processLineup while attempting to load: http://192.168.1.129:80/lineup.json
2017-01-11 19:06:06,155 (7f0f867fc700) :  CRITICAL (PyHDHR:627) - HTTP Error 404: Not Found
2017-01-11 19:06:06,970 (7f0f867fc700) :  DEBUG (PyHDHR:1030) - PyHDHR.discover - could not determine device type - {u'LocalIP': u'192.168.1.129', u'DiscoverURL': u'http://192.168.1.129:80/discover.json', u'DeviceID': u'1016F7EF', u'Legacy': 1, u'BaseURL': u'http://192.168.1.129:80'}
2017-01-11 19:06:06,970 (7f0f867fc700) :  DEBUG (PyHDHR:1028) - PyHDHR.discover - ignoring tuner (in manual config mode)
2017-01-11 19:06:06,975 (7f0f867fc700) :  CRITICAL (objects:73) - Exception setting attribute 'title' of object <Framework.modelling.objects.DirectoryObject object at 0x7f0f9ed1d650> to 47.4 - KTXDDT4 ( Programación Religiosa ) (type: <type 'str'>) (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 71, in _set_attribute
    el.set(convert_name(name), value)
  File "lxml.etree.pyx", line 699, in lxml.etree._Element.set (src/lxml/lxml.etree.c:34531)
  File "apihelpers.pxi", line 563, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:15781)
  File "apihelpers.pxi", line 1366, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22211)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

2017-01-11 19:06:06,975 (7f0f867fc700) :  CRITICAL (objects:73) - Exception setting attribute 'title' of object <Framework.modelling.objects.DirectoryObject object at 0x7f0f84da58d0> to 49.1 - KSTRDT ( Moisés, Los 10 Mandamientos ) (type: <type 'str'>) (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 71, in _set_attribute
    el.set(convert_name(name), value)
  File "lxml.etree.pyx", line 699, in lxml.etree._Element.set (src/lxml/lxml.etree.c:34531)
  File "apihelpers.pxi", line 563, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:15781)
  File "apihelpers.pxi", line 1366, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22211)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

2017-01-11 19:06:06,975 (7f0f867fc700) :  CRITICAL (objects:73) - Exception setting attribute 'title' of object <Framework.modelling.objects.DirectoryObject object at 0x7f0f84da5ed0> to 55.1 - KAZDDT ( Desafío India ) (type: <type 'str'>) (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 71, in _set_attribute
    el.set(convert_name(name), value)
  File "lxml.etree.pyx", line 699, in lxml.etree._Element.set (src/lxml/lxml.etree.c:34531)
  File "apihelpers.pxi", line 563, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:15781)
  File "apihelpers.pxi", line 1366, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22211)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

2017-01-11 19:06:06,976 (7f0f867fc700) :  CRITICAL (objects:73) - Exception setting attribute 'title' of object <Framework.modelling.objects.DirectoryObject object at 0x7f0f84da5410> to 55.3 - KAZDDT3 ( Desafío India ) (type: <type 'str'>) (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 71, in _set_attribute
    el.set(convert_name(name), value)
  File "lxml.etree.pyx", line 699, in lxml.etree._Element.set (src/lxml/lxml.etree.c:34531)
  File "apihelpers.pxi", line 563, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:15781)
  File "apihelpers.pxi", line 1366, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22211)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

2017-01-11 19:06:06,977 (7f0f867fc700) :  DEBUG (runtime:88) - Sending packed state data (112 bytes)
2017-01-11 19:06:06,977 (7f0f867fc700) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 16229 bytes
2017-01-11 19:06:07,020 (7f0f867fc700) :  DEBUG (runtime:717) - Handling request GET /video/hdgrandslam/showtunedtvstaged?guideno=11.2&title=11.2+-+KTVTDT2+%28+The+Dick+Cavett+Show+%29
2017-01-11 19:06:07,021 (7f0f867fc700) :  DEBUG (runtime:814) - Found route matching /video/hdgrandslam/showtunedtvstaged
2017-01-11 19:06:07,026 (7f0f867fc700) :  CRITICAL (PyHDHR:626) - Exception in Tuner.processLineup while attempting to load: http://192.168.1.129:80/lineup.json
2017-01-11 19:06:07,026 (7f0f867fc700) :  CRITICAL (PyHDHR:627) - HTTP Error 404: Not Found
2017-01-11 19:06:07,858 (7f0f867fc700) :  DEBUG (PyHDHR:1030) - PyHDHR.discover - could not determine device type - {u'LocalIP': u'192.168.1.129', u'DiscoverURL': u'http://192.168.1.129:80/discover.json', u'DeviceID': u'1016F7EF', u'Legacy': 1, u'BaseURL': u'http://192.168.1.129:80'}
2017-01-11 19:06:07,858 (7f0f867fc700) :  DEBUG (PyHDHR:1028) - PyHDHR.discover - ignoring tuner (in manual config mode)
2017-01-11 19:06:07,858 (7f0f867fc700) :  CRITICAL (PyHDHR:829) - Exception: unknown url type: ?duration=1
2017-01-11 19:06:07,858 (7f0f867fc700) :  CRITICAL (__init__:424) - Unknown error fetching channel info for ChannelNumber: 11.2
2017-01-11 19:06:07,858 (7f0f867fc700) :  CRITICAL (runtime:889) - Exception (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
    result = f(**d)
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/HDGrandSlam.bundle/Contents/Code/__init__.py", line 194, in ShowTunedTVStaged
    oc.add(ShowTunedTV(guideno=guideno))
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 162, in add
    raise Framework.exceptions.FrameworkException("Object of type '%s' cannot be added to this container." % str(type(obj)))
FrameworkException: Object of type '<class 'Framework.modelling.objects.MediaContainer'>' cannot be added to this container.

2017-01-11 19:06:07,859 (7f0f867fc700) :  DEBUG (runtime:88) - Sending packed state data (112 bytes)
2017-01-11 19:06:07,859 (7f0f867fc700) :  DEBUG (runtime:924) - Response: [500] 1098 bytes```
jumpmanjay commented 7 years ago

Update the firmware on your tuner to a newer version.

On Jan 11, 2017 7:07 PM, "Logan V" notifications@github.com wrote:

OS is Ubuntu 16.04 I'm trying to get this working on a HDHR-US and getting this:

2017-01-11 19:06:06,147 (7f0f867fc700) : DEBUG (runtime:814) - Found route matching /video/hdgrandslam/showallchannels 2017-01-11 19:06:06,155 (7f0f867fc700) : CRITICAL (PyHDHR:626) - Exception in Tuner.processLineup while attempting to load: http://192.168.1.129:80/lineup.json 2017-01-11 http://192.168.1.129:80/lineup.json2017-01-11 19:06:06,155 (7f0f867fc700) : CRITICAL (PyHDHR:627) - HTTP Error 404: Not Found 2017-01-11 19:06:06,970 (7f0f867fc700) : DEBUG (PyHDHR:1030) - PyHDHR.discover - could not determine device type - {u'LocalIP': u'192.168.1.129', u'DiscoverURL': u'http://192.168.1.129:80/discover.json', u'DeviceID': u'1016F7EF', u'Legacy': 1, u'BaseURL': u'http://192.168.1.129:80'} 2017-01-11 19:06:06,970 (7f0f867fc700) : DEBUG (PyHDHR:1028) - PyHDHR.discover - ignoring tuner (in manual config mode) 2017-01-11 19:06:06,975 (7f0f867fc700) : CRITICAL (objects:73) - Exception setting attribute 'title' of object <Framework.modelling.objects.DirectoryObject object at 0x7f0f9ed1d650> to 47.4 - KTXDDT4 ( Programación Religiosa ) (type: <type 'str'>) (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 71, in _set_attribute el.set(convert_name(name), value) File "lxml.etree.pyx", line 699, in lxml.etree._Element.set (src/lxml/lxml.etree.c:34531) File "apihelpers.pxi", line 563, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:15781) File "apihelpers.pxi", line 1366, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22211) ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

2017-01-11 19:06:06,975 (7f0f867fc700) : CRITICAL (objects:73) - Exception setting attribute 'title' of object <Framework.modelling.objects.DirectoryObject object at 0x7f0f84da58d0> to 49.1 - KSTRDT ( Moisés, Los 10 Mandamientos ) (type: <type 'str'>) (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 71, in _set_attribute el.set(convert_name(name), value) File "lxml.etree.pyx", line 699, in lxml.etree._Element.set (src/lxml/lxml.etree.c:34531) File "apihelpers.pxi", line 563, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:15781) File "apihelpers.pxi", line 1366, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22211) ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

2017-01-11 19:06:06,975 (7f0f867fc700) : CRITICAL (objects:73) - Exception setting attribute 'title' of object <Framework.modelling.objects.DirectoryObject object at 0x7f0f84da5ed0> to 55.1 - KAZDDT ( Desafío India ) (type: <type 'str'>) (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 71, in _set_attribute el.set(convert_name(name), value) File "lxml.etree.pyx", line 699, in lxml.etree._Element.set (src/lxml/lxml.etree.c:34531) File "apihelpers.pxi", line 563, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:15781) File "apihelpers.pxi", line 1366, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22211) ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

2017-01-11 19:06:06,976 (7f0f867fc700) : CRITICAL (objects:73) - Exception setting attribute 'title' of object <Framework.modelling.objects.DirectoryObject object at 0x7f0f84da5410> to 55.3 - KAZDDT3 ( Desafío India ) (type: <type 'str'>) (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 71, in _set_attribute el.set(convert_name(name), value) File "lxml.etree.pyx", line 699, in lxml.etree._Element.set (src/lxml/lxml.etree.c:34531) File "apihelpers.pxi", line 563, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:15781) File "apihelpers.pxi", line 1366, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22211) ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

2017-01-11 19:06:06,977 (7f0f867fc700) : DEBUG (runtime:88) - Sending packed state data (112 bytes) 2017-01-11 19:06:06,977 (7f0f867fc700) : DEBUG (runtime:924) - Response: [200] MediaContainer, 16229 bytes 2017-01-11 19:06:07,020 (7f0f867fc700) : DEBUG (runtime:717) - Handling request GET /video/hdgrandslam/showtunedtvstaged?guideno=11.2&title=11.2+-+KTVTDT2+%28+The+Dick+Cavett+Show+%29 2017-01-11 19:06:07,021 (7f0f867fc700) : DEBUG (runtime:814) - Found route matching /video/hdgrandslam/showtunedtvstaged 2017-01-11 19:06:07,026 (7f0f867fc700) : CRITICAL (PyHDHR:626) - Exception in Tuner.processLineup while attempting to load: http://192.168.1.129:80/lineup.json 2017-01-11 http://192.168.1.129:80/lineup.json2017-01-11 19:06:07,026 (7f0f867fc700) : CRITICAL (PyHDHR:627) - HTTP Error 404: Not Found 2017-01-11 19:06:07,858 (7f0f867fc700) : DEBUG (PyHDHR:1030) - PyHDHR.discover - could not determine device type - {u'LocalIP': u'192.168.1.129', u'DiscoverURL': u'http://192.168.1.129:80/discover.json', u'DeviceID': u'1016F7EF', u'Legacy': 1, u'BaseURL': u'http://192.168.1.129:80'} 2017-01-11 19:06:07,858 (7f0f867fc700) : DEBUG (PyHDHR:1028) - PyHDHR.discover - ignoring tuner (in manual config mode) 2017-01-11 19:06:07,858 (7f0f867fc700) : CRITICAL (PyHDHR:829) - Exception: unknown url type: ?duration=1 2017-01-11 19:06:07,858 (7f0f867fc700) : CRITICAL (init:424) - Unknown error fetching channel info for ChannelNumber: 11.2 2017-01-11 19:06:07,858 (7f0f867fc700) : CRITICAL (runtime:889) - Exception (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request result = f(**d) File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/HDGrandSlam.bundle/Contents/Code/init.py", line 194, in ShowTunedTVStaged oc.add(ShowTunedTV(guideno=guideno)) File "/usr/lib/plexmediaserver/Resources/Plug-ins-1751929/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/objects.py", line 162, in add raise Framework.exceptions.FrameworkException("Object of type '%s' cannot be added to this container." % str(type(obj))) FrameworkException: Object of type '<class 'Framework.modelling.objects.MediaContainer'>' cannot be added to this container.

2017-01-11 19:06:07,859 (7f0f867fc700) : DEBUG (runtime:88) - Sending packed state data (112 bytes) 2017-01-11 19:06:07,859 (7f0f867fc700) : DEBUG (runtime:924) - Response: [500] 1098 bytes```

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jumpmanjay/HDGrandSlam.bundle/issues/6#issuecomment-272046201, or mute the thread https://github.com/notifications/unsubscribe-auth/ATeY4EZY0syjL30JlwC2mujSqpvCqnjDks5rRXzcgaJpZM4KvT8D .

logan2211 commented 7 years ago

Sorry, I should have mentioned, I did update the firmware on this box to the latest version available: 20161117

jumpmanjay commented 7 years ago

Is that the really old version of the hardware?

On Jan 11, 2017 7:15 PM, "Logan V" notifications@github.com wrote:

Sorry, I should have mentioned, I did update the firmware on this box to the latest version available: 20161117

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jumpmanjay/HDGrandSlam.bundle/issues/6#issuecomment-272047537, or mute the thread https://github.com/notifications/unsubscribe-auth/ATeY4AVo4UMcnFT8cBgxdltTg05jbTwSks5rRX7DgaJpZM4KvT8D .

logan2211 commented 7 years ago

Yep. Ancient

jumpmanjay commented 7 years ago

Yeah, sorry, I don't think that old model has the proper API calls for it to work

On Jan 11, 2017 7:23 PM, "Logan V" notifications@github.com wrote:

Yep. Ancient

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jumpmanjay/HDGrandSlam.bundle/issues/6#issuecomment-272048744, or mute the thread https://github.com/notifications/unsubscribe-auth/ATeY4KOCpHhZLe5Pvmi1f5Cbw_ash-IRks5rRYB5gaJpZM4KvT8D .

nicktones commented 7 years ago

Close issue?

a5m0 commented 7 years ago

ok, answer is NO, thanks for the info guys!