Page 1 of 1

oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Fri Oct 20, 2023 2:14 pm
by dtich
upgraded without fully reading/comprehending potential incompatibilities.....

broke directv control plugin.

are there good current ones that people can recommend. kinda painted myself into a corner on this.


thanks!

Re: oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Fri Oct 20, 2023 3:08 pm
by jay (support)
Amazing that it still works TBH...

oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Fri Oct 20, 2023 3:49 pm
by GlennNZ
It looks python3 compatible at a glance already? (there is not much to it…)
(2nd glance - probably just needs urllib changed…)

Sent from my iPad using Tapatalk

Re: oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Fri Oct 20, 2023 3:56 pm
by dtich
@ glenn, thx, i did update py... let me see ...

@ jay, :d yeah, it's very simple and was a trooper for years.. caught me offguard!~

get this in log btw:

Code: Select all
 Reloading plugin "DIRECTV DVR Control 1.1.1" using API v1.19
   Error                           plugin "DIRECTV DVR Control 1.1.1" is no longer compatible with this Indigo release and must be updated

Re: oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Fri Oct 20, 2023 4:13 pm
by GlennNZ
Try:

https://github.com/Ghawken/directv-dvr-control

Press green Code button - Download Zip- and double click the plugin bundle to update.

I believe should fix. But please test as I can't!

(If works can issue pull back to Indigo repository)

Glenn

Re: oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Fri Oct 20, 2023 4:23 pm
by dtich
glenn, worked, thanks so much.

however, do get this error in log even though the commands are working. perhaps a touch sluggishly.

Oct 20, 2023 at 3:19:41 PM
Reloading plugin "DIRECTV DVR Control 2023.1.1" using API v3.0
Stopping plugin "DIRECTV DVR Control 2023.1.1" (pid 61011)
Stopped plugin "DIRECTV DVR Control 2023.1.1"
Starting plugin "DIRECTV DVR Control 2023.1.1" (pid 61270)
Started plugin "DIRECTV DVR Control 2023.1.1"
Action Group iRed/TiVo Pause
Action Group DTV/Den/Pause
DIRECTV DVR Control Error Send key press action failed with a network error - check your DVR to make sure it's on
Action Group iRed/TiVo EXIT
Action Group DTV/Den/Exit
DIRECTV DVR Control Error Send key press action failed with a network error - check your DVR to make sure it's on
Action Group iRed/TiVo Pause
Action Group DTV/Den/Pause
DIRECTV DVR Control Error Send key press action failed with a network error - check your DVR to make sure it's on

Oct 20, 2023 at 3:20:38 PM
Indigo Cocoa client disconnected
Action Group iRed/TiVo Play
Action Group DTV/Den/Play
DIRECTV DVR Control Error Send key press action failed with a network error - check your DVR to make sure it's on
Action Group iRed/TiVo Play
Action Group DTV/Den/Play
DIRECTV DVR Control Error S

Re: oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Fri Oct 20, 2023 4:28 pm
by GlennNZ
Ok.
Speed should the same.

Will be formatting of the reply - will see what can do without having access to any of the replies

The plugin doesn't log it defaulty currently...

Re: oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Fri Oct 20, 2023 4:31 pm
by dtich
let me know if i can enable a debug mode or anything that would be helpful.

thanks a lot glenn for sorting this, much much appreciated!

Re: oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Fri Oct 20, 2023 4:33 pm
by GlennNZ
dtich wrote:
let me know if i can enable a debug mode or anything that would be helpful.
thanks a lot glenn for sorting this, much much appreciated!


Update to version 2023.1.2 - just there now
Add debug logging and information about what is received.

Post that information and with that should be able to quickly tidy up and fix

Re: oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Fri Oct 20, 2023 4:37 pm
by dtich
Oct 20, 2023 at 3:36:25 PM
Stopping plugin DIRECTV DVR Control (pid 61270)
Stopped plugin DIRECTV DVR Control
Upgrading plugin DIRECTV DVR Control to newer version 2023.1.2 (previous version moved to trash)
Loading plugin "DIRECTV DVR Control 2023.1.2" using API v3.0
Starting plugin "DIRECTV DVR Control 2023.1.2" (pid 64378)
Started plugin "DIRECTV DVR Control 2023.1.2"

Oct 20, 2023 at 3:36:44 PM
Action Group iRed/TiVo Pause
Action Group DTV/Den/Pause
DIRECTV DVR Control Debug sendKeyPress called: send pause to 192.168.100.64 client 0
DIRECTV DVR Control Debug Using URL:
http://192.168.100.64:8080/remote/proce ... ientAddr=0
DIRECTV DVR Control Error Send key press action failed with a network error - check your DVR to make sure it's on
DIRECTV DVR Control Error Exception:
Traceback (most recent call last):
File "plugin.py", line 122, in sendKeyPress
reply = json.load(f)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/__init__.py", line 293, in load
return loads(fp.read(),
AttributeError: 'str' object has no attribute 'read'
Action Group iRed/TiVo Play
Action Group DTV/Den/Play
DIRECTV DVR Control Debug sendKeyPress called: send play to 192.168.100.64 client 0
DIRECTV DVR Control Debug Using URL:
http://192.168.100.64:8080/remote/proce ... ientAddr=0
DIRECTV DVR Control Error Send key press action failed with a network error - check your DVR to make sure it's on
DIRECTV DVR Control Error Exception:
Traceback (most recent call last):
File "plugin.py", line 122, in sendKeyPress
reply = json.load(f)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/__init__.py", line 293, in load
return loads(fp.read(),
AttributeError: 'str' object has no attribute 'read'
Action Group iRed/TiVo Pause
Action Group DTV/Den/Pause
DIRECTV DVR Control Debug sendKeyPress called: send pause to 192.168.100.64 client 0
DIRECTV DVR Control Debug Using URL:
http://192.168.100.64:8080/remote/proce ... ientAddr=0
DIRECTV DVR Control Error Send key press action failed with a network error - check your DVR to make sure it's on
DIRECTV DVR Control Error Exception:
Traceback (most recent call last):
File "plugin.py", line 122, in sendKeyPress
reply = json.load(f)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/__init__.py", line 293, in load
return loads(fp.read(),
AttributeError: 'str' object has no attribute 'read'
Action Group iRed/TiVo Play
Action Group DTV/Den/Play
DIRECTV DVR Control Debug sendKeyPress called: send play to 192.168.100.64 client 0
DIRECTV DVR Control Debug Using URL:
http://192.168.100.64:8080/remote/proce ... ientAddr=0
DIRECTV DVR Control Error Send key press action failed with a network error - check your DVR to make sure it's on
DIRECTV DVR Control Error Exception:
Traceback (most recent call last):
File "plugin.py", line 122, in sendKeyPress
reply = json.load(f)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/__init__.py", line 293, in load
return loads(fp.read(),
AttributeError: 'str' object has no attribute 'read'

Re: oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Fri Oct 20, 2023 4:46 pm
by GlennNZ
Ok
Try 2023..1.3

Let me know outcome - although have a life pause for 1/2 hr or or now. - but will be back after that...

Glenn

Re: oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Fri Oct 20, 2023 4:51 pm
by dtich
glenn, looks very good, plugin is all responsive and quiet-like now -- thank you!

lmk if you need me to do anything else!



Oct 20, 2023 at 3:47:32 PM
Stopping plugin DIRECTV DVR Control (pid 64378)
DIRECTV DVR Control Debug stop_concurrent_thread called
Stopped plugin DIRECTV DVR Control
Upgrading plugin DIRECTV DVR Control to newer version 2023.1.3 (previous version moved to trash)
Loading plugin "DIRECTV DVR Control 2023.1.3" using API v3.0
Starting plugin "DIRECTV DVR Control 2023.1.3" (pid 66520)
Started plugin "DIRECTV DVR Control 2023.1.3"

Oct 20, 2023 at 3:47:48 PM
Action Group iRed/TiVo Pause
Action Group DTV/Den/Pause
Action Group iRed/TiVo Pause
Action Group DTV/Den/Pause
Action Group iRed/TiVo Pause
Action Group DTV/Den/Pause
Action Group iRed/TiVo Pause
Action Group DTV/Den/Pause

Re: oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Mon Jan 08, 2024 12:11 pm
by DaveL17
I've updated the Open Source versionof this plugin for Python 3. This update should be considered a beta as I don't have DirecTV equipment to test against.

I didn't realize that Glenn made an updated fork available, so use the above at your discretion. My update is in no way a comment on Glenn's work! :D

Re: oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Mon Jan 08, 2024 2:56 pm
by GlennNZ
Yours is definitely the definitive python3 update!

Mine was this won’t take long other than changing the API number, and then the urllib usage etc. So was very slap dash.

Moving to requests etc a far better option!


Sent from my iPad using Tapatalk

Re: oops i did it again... NEED RECO ON DTV PLUGIN

PostPosted: Mon Jan 08, 2024 3:18 pm
by DaveL17
Cheers mate.