|
SageTV for unRAID/Docker Discussion related to SageTV for unRAID/Docker. Questions, issues, problems, suggestions, etc. relating to SageTV for unRAID/Docker should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
So, I also have been working on IP tuning for the DISH VIP 211/211k/222 utilizing the upnpchannelchanger script from one of the MythTV folks. I created a gentuner script that works with upnpchannelchanger and a receivers.txt file (I'll probably put that receiver to IP mapping in the script to simplify from yet another file to make this work). How could I go about using it as part of a repeatable and persistent part of the container? I could use the LIRC to copy the gentuner file over the default one and refer to the upnpnchannelchanger in the sagetv directory and forget about the rest. I haven't incorporated upnpchannelchanger into my script since it is someone else's work. Just thinking about how other IP tuning folks might integrate into gentuner as well (there may not be many, but still useful). My gentuner script is called gentuner.DISH.
|
#22
|
|||
|
|||
I'm in training for a bit tonight. I'll post them when I get a minute.
|
#23
|
||||
|
||||
Quote:
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#24
|
|||
|
|||
Quote:
Code:
/etc/lirc/hardware.conf #Chosen Remote Control REMOTE="USB-UIRT-REMOTE" REMOTE_MODULES="" REMOTE_DRIVER="usb_uirt_raw" REMOTE_DEVICE="/dev/ttyUSB0" REMOTE_SOCKET="" # Perhaps the following setting could move the lircd.conf file to the sagetv/server/lirc/ directory - I have not tested. REMOTE_LIRCD_CONF="lircd.conf" REMOTE_LIRCD_ARGS="-d /dev/ttyUSB0" #Chosen IR Transmitter TRANSMITTER="USB-UIRT-TRANSMITTER" TRANSMITTER_MODULES="" TRANSMITTER_DRIVER="usb_uirt_raw" TRANSMITTER_DEVICE="/dev/ttyUSB0" TRANSMITTER_SOCKET="" TRANSMITTER_LIRCD_CONF="lircd.conf" #This was important to get it to work with gentuner or you could edit the script to include the socket to use, but it fails without mention of the device to irsend. TRANSMITTER_LIRCD_ARGS="-d /var/run/lirc/lircd1" #Disable kernel support. #Typically, lirc will disable in-kernel support for ir devices in order to #handle them internally. Set to false to prevent lirc from disabling this #in-kernel support. #DISABLE_KERNEL_SUPPORT="true" #Enable lircd START_LIRCD="true" #LIRCD_ARGS="-d /var/run/lirc/lircd1" #Don't start lircmd even if there seems to be a good config file #START_LIRCMD="false" #Try to load appropriate kernel modules LOAD_MODULES="false" # Default configuration files for your hardware if any LIRCMD_CONF="" #Forcing noninteractive reconfiguration #If lirc is to be reconfigured by an external application #that doesn't have a debconf frontend available, the noninteractive #frontend can be invoked and set to parse REMOTE and TRANSMITTER #It will then populate all other variables without any user input #If you would like to configure lirc via standard methods, be sure #to leave this set to "false" FORCE_NONINTERACTIVE_RECONFIGURATION="false" START_LIRCMD="" and /etc/lirc/lircd.conf #this configuration has been automatically generated via #the Ubuntu LIRC package maintainer scripts. # #It includes the default configuration for the remote and/or #transmitter that you have selected during package installation. # #Feel free to add any custom remotes to the configuration #via additional include directives or below the existing #Ubuntu include directives from your selected remote and/or #transmitter. include "/opt/sagetv/server/lirc/custom-remote.conf" And then this is the gentuner script I am using based off of gentuner.LIRC: #!/bin/bash # # gentuner.LIRC # GenericTunerPlugin to LIRC Connector # # See gentuner.README for details on gentuner # # This script proxies commands from the Generic Tuner Plugin # to LIRC. If the remote name defined in the lircd.conf file # ends in "-N" (where N is 1, 2, 3 or 4), it will also # use SET_TRANSMITTERS to restrict which emitters LIRC uses. # Your LIRC hardware must support this feature. # CMD=$1 REMOTE=$2 KEY=$3 CHANNEL=$3 DELAY=.1 LOCKFILE=/tmp/lirclock if [ "$CMD" = "REMOTES" ]; then /usr/bin/irsend LIST "" "" 2>&1 | cut -d" " -f2 elif [ "$CMD" = "KEYS" ]; then /usr/bin/irsend LIST "$REMOTE" "" 2>&1 | cut -d" " -f3 elif [ "$CMD" = "SEND" ]; then while [ -f $LOCKFILE ] do #echo "Waiting for lock" sleep $DELAY done touch $LOCKFILE POST=${REMOTE:(-2)} TRANSMITTER_NUM=${REMOTE:(-1)} # if [[ ${POST/-[1-9]/OK} = "OK" ]]; then # /usr/bin/irsend SET_TRANSMITTERS $TRANSMITTER_NUM # sleep $DELAY # else # /usr/bin/irsend SET_TRANSMITTERS 1 2 3 4 # sleep $DELAY # fi /usr/bin/irsend SEND_ONCE $REMOTE $KEY sleep $DELAY rm $LOCKFILE elif [ "$CMD" = "TUNE" ]; then echo "NO" elif [ "$CMD" = "CAN_TUNE" ]; then echo "NO" else exit 1 fi |
#25
|
|||
|
|||
Quote:
|
#26
|
||||
|
||||
Sean, the fixes look good so far, but noticed an oversight. The file copy in the script is correct, now going to /etc/lirc/, but the dos2unix commands are still pointing to the files in /etc/lirc.d, so they are just erroring out (as expected).
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#27
|
||||
|
||||
Well, in order to help identify if the problem was usb-uirt or lirc related, I switched directions to getting the hd-pvr's blaster working in lirc, and am getting the same error with irsend. turns out, lircd is not running completely. checked into the start script '/etc/init.d/lirc' and it looks like it uses modprobe to build a list of modules in the kernel. modprobe doesn't appear to be there in the docker container, which sort of makes sense since it cannot really add modules to the hosts' kernel. Not sure the best way to go yet, but I'm going to look and see if the modprobe steps are genuinely required in that script.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#28
|
|||
|
|||
Quote:
|
#29
|
||||
|
||||
no idea - it turned off modules loading in hardware.conf, since they appear to be loading as per dmesg, and it appears lirc is running - but irsend still fails out being unable to open the socket.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#30
|
||||
|
||||
OKAY.. so a series of dumb mistakes as i flailed about crazily.
when i was restarting the docker after making changes, i kept forgetting to run dos2unix (need that fixed in the container's script), so the hardware.conf file was not loading properly. once I did that, it looks like your usb-uirt config loads up properly, and I'm not getting gentuner to respond properly. Now I just need to drop in my actual lirc.conf file and see if it'll blast.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#31
|
|||
|
|||
Quote:
|
#32
|
||||
|
||||
Okay, so it looks like it's up and working so far. I've never used gentuner, so I'm not sure what expectations there are, but blasting works to change channels.
gentuner REMOTES does display the remotes in the lircd.conf file, and this can be selected in sage (Change Tuning Devide) gentuner KEYS [REMOTE] does display the list of keys in the lircd.conf for the chosen [REMOTE], but these are NOT shown in Sage (Test Infrared Code). Changing stations in sage DOES send the number keys, so it seems it's working, just not really understanding why gentuner KEYS doesn't work to populate the items in sage - this would greatly assist in diagnostics if keys could be sent from in sage.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#33
|
|||
|
|||
Quote:
There are other issues I discovered, such as the LIRC driver doesn't activate/access the 56k receiver according to the USB-UIRT forums and won't capture codes (say from a DISH remote) that works in the 56k range. I had to use a file that already existed. Capturing on a windows box with lmhelper and converting is an option, but I struggled to make that work. It was much easier if some had done the heavy lifting. |
#34
|
||||
|
||||
from the terminal, gentuner seems to do everything it should (returning list of REMOTES, returning list of KEYS). Sage just isn't getting anything from the KEYS command, so it can't test. No issues reporting in gentuner.log - everything there seems as expected. Sage still sends the numerical SEND commands on channel changes, so it IS working, just not completely.
EDIT: I see what you mean. It appears to be a UI bug where it won't reload the list of commands, but if you completely back out of the remote options and go back in, the list is there and you can test fire commands. In any case, it looks like the general blasting capability is there with the USB-UIRT in the docker, as long as a few files are added to the mix and then customized. I will try to write up what is needed later, so hopefully this will help out the few who are holding back from unRAID due to this.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room Last edited by Fuzzy; 10-13-2016 at 02:43 AM. |
#35
|
|||
|
|||
Quote:
|
#36
|
||||
|
||||
Sorry about that... I'll fix that tonight and I'll push out a new update.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#37
|
||||
|
||||
Ok... Pushed out another image update... hopefully the dos2unix stuff is fixed now
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#38
|
|||
|
|||
Quote:
I have changed to UPNP tuning for my DISH receivers. It seems to be great for this small set of receivers. |
#39
|
||||
|
||||
Help!
So, my internet is down (hurray for mobile hotspots) I found out something unfortunate about the docker, it won't start without an internet connection. Code:
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh... *** Running /etc/my_init.d/10-adduser... *** Running /etc/my_init.d/20-upgrade-sagetv... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed SageTV Home: /opt/sagetv/server Backing up Wiz.bin, Sage.properties and Sage.jar before upgrade 'Wiz.bin' -> 'backups/20161031_165835/Wiz.bin' 'Sage.properties' -> 'backups/20161031_165835/Sage.properties' 'Sage.jar' -> 'backups/20161031_165835/Sage.jar' Installing/Upgrading SageTV to --2016-10-31 16:58:35-- https://bintray.com/artifact/download/opensagetv/sagetv/sagetv//sagetv-server__amd64.tar.gz Resolving bintray.com (bintray.com)... 10.0.0.1, 10.0.0.1 Connecting to bintray.com (bintray.com)|10.0.0.1|:443... failed: Network is unreachable. Connecting to bintray.com (bintray.com)|10.0.0.1|:443... failed: Network is unreachable. gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now Failed to download Server!!! URL: https://bintray.com/artifact/download/opensagetv/sagetv/sagetv//sagetv-server__amd64.tar.gz *** /etc/my_init.d/20-upgrade-sagetv failed with status 2 *** Killing all processes... |
#40
|
||||
|
||||
Quote:
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Docker Image for unRaid | ChaOConnor | SageTV Linux | 73 | 05-28-2017 11:57 AM |
SageTV Docker/unRAID now has a sub-forum | stuckless | SageTV for unRAID/Docker | 0 | 10-10-2016 07:20 AM |
Interactive Docker Container for building SageTV (Linux) | stuckless | SageTV Github Development | 4 | 09-04-2016 03:14 PM |
Docker container | coppit | SageTV Github Development | 20 | 09-06-2015 06:26 PM |
NASs? Docker? | ThePaladinTech | SageTV Github Development | 10 | 08-16-2015 02:34 PM |