|
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
|
|||
|
|||
Does anyone know what the handle identifies in the call to MacroTune? I thought that it might be an index to which "Remote" is being called, but whether I use remote 1 or remote 2 by changing the remote device, the handle is always 1. I personally would expect it to be a pointer to the remote. Are there any other varients of MacroTune that might not be in this header?
|
#22
|
|||
|
|||
I am using jpwegas' plugin and the execution from SageTV sends CAN_TUNE $REMOTE and the plugin should return OK as a response.
B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#23
|
|||
|
|||
Quote:
There seems to be no real documentation on how Sage does this, only empirical observations. Here is an explanation that I got from jpwegas, paraphrased from a couple of e-mails: devHandle is supposed to be a way for the plugin to keep track of which "device" was opened, but it's basically useless for our purposes. In my experience, Sage calls OpenDevice just once (always passing in 0 for ComPort), and the value that OpenDevice returns (an int) is later passed as devHandle by Sage to some of the other functions. However, since OpenDevice is only called once per plugin as far as I can tell, devHandle is not useful.The scary thing with that method would be if sage is multi-threaded (which it might be since it's in Java) and different threads were changing channels, for multiple recordings starting at the same time. That would result in a race, where the plugin might get two LoadRemotes, and then two MacroTunes, and thus do both MacroTunes on the latter of the two LoadRemotes received. I have no idea if this could happen, but being an old real-time guy, I notice races and they always scare me. However, jpwegas says he's never seen this, and I've been running it for a few weeks and I haven't seen it either. I tried writing a new tuner plugin - actually an upgrade of the stuckless plugin - but I couldn't get it to work, and after getting frustrated I tried jpwegas' and it works great. I think he'll be publishing it soon. BTW, the behavior that I saw with LoadRemotes seemed to be slightly different than what jpwegas describes, but his plugin work and mine doesn't, so take that for what its worth. |
#24
|
|||
|
|||
Good info on the plugin.
FWIW - I am setting up all remotes as macrotune remotes so that I am able to fire off a list of commands at once. By parsing the channel number to individual digits I can prepend and append commands needed to escape a screen saver, "press enter" to speed up the timeout, etc. PS - The tuning code is on Google code for those brave enough to download and compile. http://code.google.com/p/customsaget...ricTunerPlugin B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#25
|
|||
|
|||
Does this tool work w v9? I can run it on 7.x installations, but the tuner does not appear as an option on v9. I used the procedure outlined in the installation instructions ...
|
#26
|
||||
|
||||
The ExternalTunerPlugin is replaced with the GenericTunerPlugin, and the code/documentation is here.
https://github.com/stuckless/GenericTunerPlugin In the Releases Tab there is a download for it. https://github.com/stuckless/Generic...lugin/releases Also, if you are running Docker/SageTV this is already included in the image (along with comskip and a few other things)
__________________
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 |
#27
|
|||
|
|||
This utility seems to be an embedded tuner, rather than an external launcher, as the other plugin was. Does something like this no longer exist?
|
#28
|
||||
|
||||
Quote:
Is that not what you are looking for? The ExternalTunerPlugin did something different?
__________________
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 |
#29
|
|||
|
|||
I was asking about the functionality of the earlier incarnation; the External Command Tuner. I copied the 'ExtTunerPlugin.so' file to the Sage directory but the External Command Tuner does not appear as an option when I tried to set up the video source. The prior plugin required a remotes .cfg file that really required only two arguments: one for a script and another for the channel number.
Is the problem that the ExtTunerPlugin.so file does not work on 64-bit systems? I still have it working on 32-bit v7 ... |
#30
|
|||
|
|||
Still stuck
Well, I've read through every thread with the terms " ExternalTunerPlugin", "GenericTunerPlugin", and "ExtTunerPlugin.so" and I've not seen a solution to getting the plugin to appear in the list for v9. I guess I actually should have posted this in the OpenSource subforum, since it refers to a v9-specific problem, but I (foolishly) thought the plugin would be unaffected by the release version.
Unfortunately, I was not able to find anyone who mentioned being able to successfully run this plugin with a 64-bit, v9 system. A few people tried and were only able to declare success by rolling back to a 32-bit version of Ubuntu (or whichever distribution they used). I am already at this point, in that I have a v7, 32-bit setup with the External Tuner, but to move forward and be free of the single-license restriction I would like to get this working with v9. There must be something simple I am overlooking or, more accurately, am not aware. The other .so files in the tuner plugin directory (DirecTV Serial, Firewire, and IRBlaster[?]) appear as choices in the source setup menu, but the ExtTunerPlugin.so does not. |
#31
|
||||
|
||||
SageTV v9 is 64bit, so, any tuner plugins will need to be 64bit.
But again, GenericTunerPlugin is doing what you need, from what I can tell. It's called "Generic" because it will simply run a script and handle the commands. Let's say you have a script, 'changechannel' that accepts the the channel number 1234, you'd call it from the command line like... # changechannel 1234 To use this with gentuner, you'd install the gentuner tuner, then create your tuning script that call this. You'd likely start with gentuner.IPSTB and copy it to just "gentuner", then around line 34 of that script, you'd replace the wget call with "changechannel $CHANNEL" and you are done. https://github.com/stuckless/Generic...uner.IPSTB#L34 The install part of the README talks specifically about where the gentuner scrip needs to go... Because "gentuner" is a script, you can test all of this from the command line as well, before you attempt to get sagetv to work (in the README as well). And, if you have issues creating your script, I'm sure people can help with that as well. At this point, I'm guessing you've spent more time trying to figure out how to NOT use this, rather just test it out
__________________
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 |
#32
|
|||
|
|||
Quote:
Quote:
The problem is not with my script; it's pretty simple and straightforward, I just cannot get the plugin integrated into Sage as an option ... |
#33
|
||||
|
||||
Sorry, I posted to a link to the "releases" of gentuner where I thought it was hosted, but that is just the source..
On linux... you can isntall gentuner (64bit) like this... Code:
cd /opt/sagetv/server wget -O gentuner.tgz https://bintray.com/artifact/download/opensagetv/sagetv-plugins/GenericTunerPluginLinux/gentuner-1.0.1.tgz tar -zxvf gentuner.tgz rm -f gentuner.tgz BTW, gentuner is installed by default in the Docker image... and I think it should be included in the standard sagetv release, since, it's the only external tuning option available, on linux.
__________________
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 |
#34
|
|||
|
|||
I got a "permission denied" error on the wget download ...
|
#35
|
|||
|
|||
Do you have permission to write files in the directory you're running the wget?
__________________
Home Network: https://karylstein.com/technology.html |
#36
|
|||
|
|||
Thanks. Re-ran it with 'sudo'. That did not cross my mind. I thought it was a "read" permissions error on the download attempt ...
|
#37
|
|||
|
|||
That's kind of my go-to move with Linux - "If it first it does not succeed, try it again with sudo". Probably not a good security practice but it seems to solve a lot of problems.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Any interest in a plugin to support/control the Sony XL1B firewire DVD changer? | TerryMathews | SageTV Customizations | 74 | 07-21-2011 02:24 PM |
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin | deria | SageTV Customizations | 447 | 12-11-2010 07:38 PM |
VMC's MyNetFlix Plugin in SageTV - WOOHOO! | osburnfamily | SageTV Customizations | 8 | 06-17-2008 11:54 PM |
STV Import: Weather Monitor | deria | SageTV Customizations | 35 | 08-23-2006 08:15 PM |
External tuner plugin and subchannel | jchiso | Hardware Support | 0 | 11-30-2005 10:35 PM |