NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) v
« Previous 1 2 3 4 5 … 20 Next »
Using R5000-HD with Network Recorder Plugin

 
  • 0 Vote(s) - 0 Average
Using R5000-HD with Network Recorder Plugin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,814
Threads: 954
Joined: May 2006
#41
2019-11-30, 10:16 PM (This post was last modified: 2019-11-30, 10:16 PM by mvallevand.)
Ok no problem at all. My mistake, this needs python3 (python 2.7 is EOL in January)

Martin
checkbin99
Offline

Member

Posts: 142
Threads: 1
Joined: Nov 2019
#42
2019-11-30, 11:56 PM
Here's some results:

desktop:/home/bill/Downloads# python3   opendct.py   DISCOVERY
('192.168.1.15', 8271)
b'STN\x04\x01\x00#(\x0f0:0:0:0:0:0:0:0'
9000
Timed out, no more responses
Exit


NOTE: 192.168.1.15 is my SageTV  server, but my R5000 (Win7)  server is at  .16.  


desktop:/home/bill/Downloads# python3  opendct.py  VERSION
VERSION
Exit
Traceback (most recent call last):
  File "opendct.py", line 188, in <module>
    main(sys.argv)
  File "opendct.py", line 41, in main
    payload = sendMessage(message)
  File "opendct.py", line 69, in sendMessage
    sock.connect(server_address)
ConnectionRefusedError: [Errno 111] Connection refused



After updating with my IP address and port:

desktop:/home/bill/Downloads# python3 opendct.py PROPERTIES
PROPERTIES
Exit
Traceback (most recent call last):
  File "opendct.py", line 190, in <module>
    main(sys.argv)
  File "opendct.py", line 43, in main
    payload = sendMessage(message)
  File "opendct.py", line 76, in sendMessage
    data = sock.recv(1024)
socket.timeout: timed out



desktop:/home/bill/Downloads# python3   opendct.py    VERSION
VERSION
2
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,814
Threads: 954
Joined: May 2006
#43
2019-12-01, 12:06 AM
It looks like the r5000 doesn't support discovery (or UDP is firewalled) but that is not a big deal.

When you run against the r5000 version should return the same as the NetworkRecorder plugin. Are you sure you had

192.168.1.16 and port 6969 (which you showed on the first post here) in the .py file?

Martin
checkbin99
Offline

Member

Posts: 142
Threads: 1
Joined: Nov 2019
#44
2019-12-01, 12:11 AM (This post was last modified: 2019-12-01, 12:16 AM by checkbin99.)
I changed the Ip and port here in the script:

#edit server IP keep the single quotes^M
^M
server = '192.168.1.16'^M
port = 6969^M


I see these ^M s probably from this script having been edited in Windows and Im testing in Linux.    I removed them and now get this:

desktop:/home/bill/Downloads# python3 opendct.py PROPERTIES
PROPERTIES

Exit
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,814
Threads: 954
Joined: May 2006
#45
2019-12-01, 12:17 AM
It couldn't hurt but I don't think that is the issue. Is the firewall open on the 6969 server?

Martin
checkbin99
Offline

Member

Posts: 142
Threads: 1
Joined: Nov 2019
#46
2019-12-01, 12:26 AM (This post was last modified: 2019-12-01, 12:35 AM by checkbin99.)
Windows firewall is off on the R5000 server.  Opened the firewall on my Linux box with the script to allow all in and out.  If I telnet to the R5000 on port 6969 it responds, so the port seems to be open:

desktop:/home/bill/Downloads# telnet 192.168.1.16 6969
Trying 192.168.1.16...
Connected to 192.168.1.16.
Escape character is '^]'.
Connection closed by foreign host.

I'm seeing this now:

desktop:/home/bill/Downloads# python3   opendct.py   PROPERTIES
PROPERTIES
Exit
Traceback (most recent call last):
  File "opendct.py", line 190, in <module>
    main(sys.argv)
  File "opendct.py", line 43, in main
    payload = sendMessage(message)
  File "opendct.py", line 76, in sendMessage
    data = sock.recv(1024)
socket.timeout: timed out
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,814
Threads: 954
Joined: May 2006
#47
2019-12-01, 12:35 AM
You are getting

ConnectionRefusedError: [Errno 111] Connection refused

which typically means the server is not running on that port, firewall typically timeout.

There are two ports in the file I want you to change the one at the top if that matters.

Martin
checkbin99
Offline

Member

Posts: 142
Threads: 1
Joined: Nov 2019
#48
2019-12-01, 12:41 AM (This post was last modified: 2019-12-01, 12:44 AM by checkbin99.)
Stupid question, but you don't want NextPV and/or the recording service on for this tests, do you?  When I go to the R5000 server and open the NextCom app, for the device I see "SageTV:  Waiting for connection on port 6969"  (SageTV is not running for this test of course)

Yes, I changed the port at the top where it says #edit server IP keep the single quotes - just after the server = <IP> line
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,814
Threads: 954
Joined: May 2006
#49
2019-12-01, 12:53 AM
No this is just trying to get the basis for a support file that will talk to the r5000. Later on NextPVR will talk to this file (from Windows or linux).

The logic seems simple enough it is not even opening the socket. It works fine between my Windows PC and linux and vice -versa using OpenDCT

Martin
checkbin99
Offline

Member

Posts: 142
Threads: 1
Joined: Nov 2019
#50
2019-12-01, 12:58 AM (This post was last modified: 2019-12-01, 01:01 AM by checkbin99.)
I see.  I'm puzzled though, when I try to connect to port 69 of  the R5000 server, there is a response.  Wouldn't this indicate the port is open and listening?:

desktop:/home/bill/Downloads# telnet  192.168.1.16  6969
Trying 192.168.1.16...
Connected to 192.168.1.16.
Escape character is '^]'.

I also use opendct with SageTV on Linux and the R5000 works for me in that environment too.

I'm going to try this right from the Linux box that I have sageTV on to see if the results are any different.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (26): « Previous 1 … 3 4 5 6 7 … 26 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to configure RemoteRecorder Plugin to use remote NextPVR instance? bm_00 5 2,924 2020-10-06, 12:32 PM
Last Post: mvallevand
  Connecting NVPR to Emby Plugin NVPR Geek 0 1,268 2018-06-10, 12:32 AM
Last Post: NVPR Geek
  YouTube Plugin whurlston 645 179,470 2017-11-25, 07:52 PM
Last Post: ga_mueller
  Newb here: Can someone help with a Plex Plugin issue? wepham 1 3,127 2017-02-07, 07:10 AM
Last Post: petenshari
  System Plugin Confused by New NPVR Naming Scheme Lao Pan 1 2,654 2016-09-25, 08:26 AM
Last Post: imilne
  Movies2 Plugin Problem... Anyone using it? ga_mueller 5 4,330 2016-08-22, 07:02 PM
Last Post: ga_mueller
  Network Recorder with more than 1 NPVR (how to)? SFX Group 9 5,953 2016-03-03, 05:57 PM
Last Post: UncT
  Plex Plugin Nikkie300 4 6,094 2016-01-24, 05:59 PM
Last Post: Nikkie300
  NextPVR Plex plugin, no live TV ajmast 15 9,278 2015-10-29, 03:45 AM
Last Post: ajmast
  Cant restart record service using System plugin on 3.4.8 shaunpatrick77 3 2,750 2015-05-19, 02:20 PM
Last Post: imilne

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode