|
SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
External Script Plugin?
I have a python script left over from MythTV that changes the channel on my DCT2xxx Motorola receiver over the serial port. Is there any plugin for LINUX Sage TV that can just call an external script?
All I need the plugin to do is take a script like: /usr/local/bin/changechannel.py ### to change the channel. No fancy IR codes, no IR blasting, just call a script. I think this would be easy to maintain and let other users use a wider variety of channel changing apparatus without the need to support every device under the sun. Support a script, not 100 devices. |
#22
|
||||
|
||||
I don't think it would be hard to do this... but there are some considerations that I've listed earlier in the forum, and it's around how to configure it. basically, you'd only be able to have 1 exeternal tuner loaded, so if you needed to use it for 2 devices, you'd be screwed. This is because the script name would be hard-coded in the plugin. If you moved the scriptname to a configuration, then all external tuner instances would read the same script, and as a result, they'd all call the same script.
As a side thought, which complicates things a little, I thought about creating an external tuner plugin that supported a single configuration that could be used by multiple tuners. The sample configuration would look like this.... Code:
# Remote Name, Command %s lirc1,/usr/local/bin/changelircchannel dish1 1 %s lirc2,/usr/local/bin/changelircchannel dish1 2 %s custom,/usr/local/bin/changechannel.py %s Also, there is no reason why the same code couldn't generate both a shared object and dll depending on the system on which it is built. I didn't go with this route since my modifications to the LIRCTuner.so worked in my case
__________________
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 Last edited by stuckless; 06-12-2008 at 06:40 PM. |
#23
|
|||
|
|||
[shameless blog reference] http://tvwhere.wordpress.com/2008/06...ting-in-linux/ [/shameless blog reference]
The author of the plugin is working to make a general release. Right now the plugin in its current form still requires lirc, but it doesn't require lirc to actually do anything other than return a list of remote names. After that, the remote name is passed as a variable to the script at which point you can benignly ignore it and change channels however you prefer. B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#24
|
|||
|
|||
Quote:
|
#25
|
|||
|
|||
Has anyone gotten the USB-UIRT to work in Ubuntu 8.04 with this plugin? I haven't had any luck, but I'm certainly no Linux expert. The USB-UIRT is found during boot:
Aug 15 05:53:31 ubuntu-sagetv kernel: [ 56.246298] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected Aug 15 05:53:31 ubuntu-sagetv kernel: [ 56.246313] drivers/usb/serial/ftdi_sio.c: Detected FT232BM Aug 15 05:53:31 ubuntu-sagetv kernel: [ 56.246663] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0 Aug 15 05:53:31 ubuntu-sagetv kernel: [ 56.246698] usbcore: registered new interface driver ftdi_sio Aug 15 05:53:31 ubuntu-sagetv kernel: [ 56.246703] drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver But as soon as I try to configure the tuner, the following error is generated and SageTV shuts down. Aug 15 05:54:36 ubuntu-sagetv lircd-0.8.3pre1[6162]: accepted new client on /dev/lircd Aug 15 05:54:37 ubuntu-sagetv lircd-0.8.3pre1[6162]: uirt2_raw: checksum error Aug 15 05:54:37 ubuntu-sagetv lircd-0.8.3pre1[6162]: uirt2_raw: UIRT version 0905 ok Aug 15 05:54:47 ubuntu-sagetv lircd-0.8.3pre1[6162]: removed client From my research on the subject, the driver (kernel 2.6.24) for the USB-UIRT is causing the error. I've tried some of the solutions, but none have worked. Has anybody figured this out successfully. Or should I stop fooling around and order an iguanaIR? Does the iguanaIR work "out-of-box"? John |
#26
|
|||
|
|||
NO IGUANA! I was so bummed when I could get past 2 devices and they weren't responsive at all for support.. I use a CommandIR II and it is great. Twice the price but no hassle at all.
B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#27
|
|||
|
|||
Quote:
So it's Sage -> LIRC tuner plugin -> lircd -> igdaemon -> usb blaster -> STB You can download rpm or dpkg packages from their web site if you don't want to roll your own, so it's relatively easy to get the right software installed. Make sure you use the most recent versions of igdaemon and lirc (with igdaemon support added). There were some bugs in the older versions. I have been using the USB iguanaIR successfully, but as bcjenkins mentioned, he had some serious issues getting it to work, so if you don't mind the extra money it might be worth it to look at the CommandIR II. --John |
#28
|
||||
|
||||
Quote:
What is the current status of USB-UIRT support? I'm thinking about building a new Linux based Sage server to replace my aging Windows server.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#29
|
||||
|
||||
Quote:
__________________
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 |
#30
|
|||
|
|||
Quote:
It's been a while since I wrote the original USB-UIRT plugin (13+ years!) so bear with me... Jon |
#31
|
||||
|
||||
Quote:
https://github.com/google/sagetv/issues/202
__________________
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 |
#32
|
|||
|
|||
This would be outstanding! I have two USB-UIRT's and the only drawback to moving to unRaid/Linux from Windows was the great support for them under Windows. I have only been able to get the primary transmitter in one USB-UIRT to work under LIRC and it was not trivial. Being able to utilize a single USB-UIRT with multiple transmitters via the port on the back is sorely missed.
|
#33
|
||||
|
||||
Quote:
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#34
|
||||
|
||||
Quote:
thanks
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson |
#35
|
||||
|
||||
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 |
#36
|
||||
|
||||
Quote:
Do you have any good links which would help explain it's setup to a novice?
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson Last edited by tvmaster2; 11-24-2016 at 01:07 AM. |
#37
|
||||
|
||||
Might actually be in the SageTV Manual. In essence, when you are adding a source to sage, it will ask you if you will be tuning and external box. Then it will ask you what you are using. You select the USB-UIRT, and then it will give yo the abilility to learn each of the numbers from the remote. When learning, hold the remote about 2 inches from the front of the USB-UIRT, and hold down the appropriate number button until sage says it's done learning that one, then go o to the next.
__________________
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 |
#38
|
||||
|
||||
Quote:
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson |
#39
|
|||
|
|||
IR control for Ubuntu Linux
I also have a SageTV machine running on a Dell 745 since 2007 (yes, it has run continuously for going on a decade... still running WinXP... been doing the "ain't broke, don't fix it" but it is making me nervous). Just installed SageTV 9 on my Linux (Ubuntu) server and so far, so good! I have HDHomerun tuners for local stuff, but three DISH tuners. Running LM Gestion Keymap and USB-UIRT with no problems all that time.
I agree with Fuzzy... a multi-blaster IR control system for Linux as easy and reliable as what is available on Windows would be great. Please post any files, solutions and hints that you come up with! Jeff |
#40
|
|||
|
|||
Quote:
What Dish receivers are you using? There is a way to tune some Dish receivers directly over the network. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|