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

Discuss the DIRECTV DVR Control plugin.
dtich
Posts: 850
Joined: Sat Sep 24, 2005 10:32 pm

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

Post 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!
User avatar
jay (support)
Site Admin
Posts: 18416
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

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

Post by jay (support) »

Amazing that it still works TBH...
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
GlennNZ
Posts: 1607
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

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

Post 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
dtich
Posts: 850
Joined: Sat Sep 24, 2005 10:32 pm

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

Post 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
User avatar
GlennNZ
Posts: 1607
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

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

Post 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
dtich
Posts: 850
Joined: Sat Sep 24, 2005 10:32 pm

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

Post 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
User avatar
GlennNZ
Posts: 1607
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

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

Post 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...
dtich
Posts: 850
Joined: Sat Sep 24, 2005 10:32 pm

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

Post 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!
User avatar
GlennNZ
Posts: 1607
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

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

Post 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
dtich
Posts: 850
Joined: Sat Sep 24, 2005 10:32 pm

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

Post 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'
User avatar
GlennNZ
Posts: 1607
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

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

Post 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
dtich
Posts: 850
Joined: Sat Sep 24, 2005 10:32 pm

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

Post 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
User avatar
DaveL17
Posts: 6883
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

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

Post 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
I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]
User avatar
GlennNZ
Posts: 1607
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

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

Post 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
User avatar
DaveL17
Posts: 6883
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

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

Post by DaveL17 »

Cheers mate.
I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]
Post Reply

Return to “DIRECTV DVR Control”