Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to configure interface device name #50

Open
sronsiek opened this issue Sep 9, 2021 · 1 comment
Open

Unable to configure interface device name #50

sronsiek opened this issue Sep 9, 2021 · 1 comment

Comments

@sronsiek
Copy link

sronsiek commented Sep 9, 2021

Hi - just trying out this great looking plugin on dm8000 for use with emby.

My dm is setup for use on a vlan, and while eth0 is the physical device, it's IP is set up on vlan device eth0.2

root@dm8: # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:09:34:1C:88:D7  
          inet6 addr: fe80::209:34ff:fe1c:88d7/64 Scope:Link
          ...

eth0.2    Link encap:Ethernet  HWaddr 00:09:34:1C:88:D7  
          inet addr:192.168.43.8  Bcast:192.168.43.255  Mask:255.255.255.0
         ...

This is not inspected by HRTunerProxy, resulting in the plugin not finding the boxes IP because the inspected interface names are hard-coded:

plugin/__init__.py

 def getIfInfo():
  for port in ('eth0', 'eth1', 'wlan0', 'wlan1', 'wlan2', 'wlan3', 'ra0'):
    ifinfo = getIfConfig(port)
    if 'addr' in ifinfo:
      return ifinfo
  return None

def getIP():
  IP = '0.0.0.0'
  ifinfo = getIfInfo()
  if ifinfo:
    IP = ifinfo['addr']
  return '%s' % IP

I have not found a means of configuring additional interface - can this be done?

Is is possible to install the src package and modify the code on the dm8 for dynamic re-compile?

@Huevos
Copy link
Contributor

Huevos commented Sep 9, 2021

Is is possible to install the src package and modify the code on the dm8 for dynamic re-compile?

Just ftp the updated *.py file to your receiver and reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants