|
SageTV v9 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 9 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 9 and newer. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
sagex api
Installed the sagex API plugin (image attached)
The documentation says: Quote:
Quote:
I can see in the log file that sagex api gets loaded but says failed: Quote:
Please let me know what I am doing incorrectly. |
#2
|
||||
|
||||
Is your server really hxxp:://localhost/sagex/api or should it be hxxp:://localhost:8080/sagex/api (ie default sagetv web server port is 8080)
__________________
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 |
#3
|
|||
|
|||
oops...
1. installed sagex-api instead of sagex-services... 2. url is: localhost:8080/sagex/api not localhost/sagex/api after installing sagex-services and restarting works. |
#4
|
|||
|
|||
From the sagex doc:
http://download.sage.tv/api/sage/api...g.String, int) Quote:
So the format would be: Code:
http://hostname:8080/sagex/api?c=TransmitCommandUsingInfraredTuningPlugin&1=TuningPlugin&2=TuningPluginPort&3=RemoteName&4=CommandName |
#5
|
|||
|
|||
tried:
http://10.0.0.25:8080/sagex/api/?c=G...putBeingViewed while watching a source that uses OpenDCT with my BM3000-HDMI and it returns empty: Quote:
A call to: returns: Quote:
I have no idea how to identify the parameters for the tuner being used to send a call to the tuner to change channel... See attached image for source I am trying to change the channel for... Thanks in advance. |
#6
|
|||
|
|||
Ran this command:
Code:
http://10.0.0.25:8080/sagex/api/?c=GetActiveCaptureDevices Code:
Result size="3"> <Item> <![CDATA[ DCT-HDHomeRun Prime Tuner 131104FC-0 on 127.0.0.1:9000 ]]> </Item> <Item> <![CDATA[ STB-2 on 127.0.0.1:9000 ]]> </Item> <Item> <![CDATA[ STB-1 on 127.0.0.1:9000 ]]> </Item> </Result> Code:
http://10.0.0.25:8080/sagex/api/?c=GetInfraredTuningPlugin&1=%22STB-2%20on%20127.0.0.1:9000%22 this: Code:
http://10.0.0.25:8080/sagex/api/?c=GetInfraredTuningPluginPortNumber&1=%22STB-2%20on%20127.0.0.1:9000%22 Code:
<Result/> Last edited by sflamm; 02-20-2017 at 01:45 PM. |
#7
|
|||
|
|||
this:
Code:
http://10.0.0.25:8080/sagex/api/?c=GetInfraredTunerRemoteName&1="STB-2%20on%20127.0.0.1:9000" Quote:
|
#8
|
||||
|
||||
I don't know much about this stuff... but it appears that you are passing a CaptureDevice when you need a CaptureDeviceInput.
Try calling GetCaptureDeviceInputs to with a capture device to get the list of inputs...and then call your GetInfraredTunerRemoteName with one of those values. btw, you don't need %22 (quote) and you don't need leading and trailing spaces (%20) since chrome is just adding that for readability.
__________________
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 |
#9
|
|||
|
|||
Thanks that worked!
I've created a working powershell script that can tune the USB-UIRT channels remotely: Code:
Param([string]$TunerNumber, [string]$ChannelNumber) $ChannelNumberArray = $ChannelNumber.ToCharArray() $TuningCommand = "http://10.0.0.25:8080/sagex/api/?c=TransmitCommandUsingInfraredTuningPlugin" $TuningPlugin = "&1=USB-UIRT Transceiver" $TuningPluginPort = "&2=0" $BaseRemoteName = "PaceRNG150" $RemoteName = "&3=" + $BaseRemoteName + "-" + $TunerNumber $RepeatFactor = "&5=2" $Username = "sage" $Password = "frey" $Headers = @{ Authorization = "Basic {0}" -f [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $Username,$Password))) } $Output = "output.txt" foreach ($digit in $ChannelNumberArray) { #Write-Output ******** $CommandName = "&4=$digit" $Uri = $TuningCommand + $TuningPlugin + $TuningPluginPort + $RemoteName + $CommandName + $RepeatFactor Write-Output uri:$Uri Invoke-RestMethod -Uri $Uri -Headers $Headers -Outfile $Output |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sagex help needed | Skirge01 | SageTV v7 Customizations | 4 | 04-16-2016 07:46 PM |
sagex-api Plugin MISSING: sagex-api-FAILED http://ubuntone.com/5NNCHGlywxvXBgRw8B3nMr | antplugger | SageTV v7 Customizations | 10 | 06-10-2014 01:34 AM |
sagex-api - how can I tell if it works? | gveres | SageTV v7 Customizations | 2 | 01-27-2012 10:56 PM |