![]() |
|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Is there an innocuous way to test a sage/sagex URL?
I have written an IP driver for SageTV for my Control4 Home Automation system that uses the same URL calls as used by the SageTV Web Remote Control. So
Code:
http://sage:frey@192.168.1.99:7070/sage/SageCommand?context=001d6a4cf499&command=Play But there are a lot of fields to be entered by the user, username, password, Server IP and Extender MAC address, so it is very possible to make a user. So I want a way to test the URL. Is there a good command to issue that is innocuous in that it won't affect playback? Right now I am using the Home command, but that throws you back to the Main Menu screen.
__________________
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 |
#2
|
||||
|
||||
Quote:
http://download.sage.tv/api/sage/api...ServerAddress() It's a pretty simple call that just returns the IP address of the server, so I use that when I need to test a URL.
__________________
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
|
|||
|
|||
Thanks, Sean that appears to work.
One further question that you would be best to answer - is there any way to remotely get an AndroidTV device to activate the SageTV app? With an extender you can telnet in and send a "killall waitpower" command - is there anything analogous for AndroidTV? I am guessing not as this would be kind of a security risk.
__________________
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 |
#4
|
||||
|
||||
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 |
#5
|
|||
|
|||
While stuckless is correct that you need to program the mini-client with the server address for terms of automation you can use android adb to connect to an AndroidTV device and start an app with the following command (I think):
adb shell am start -n com.package.name/com.package.name.ActivityName you will need to know/figure out the package name and update accordingly. |
#6
|
|||
|
|||
I don't know much about Android but don't you have to root your Android device to install adb?
__________________
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 |
#7
|
||||
|
||||
Quote:
You can then start an app, but, you can't control it... just start it.
__________________
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 |
#8
|
|||
|
|||
Ok cool. Looking into this a bit more - according to a Reddit thread you may have to connect via USB and enable port 5555.
Quote:
__________________
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 |
#9
|
||||
|
||||
Quote:
To be honest, while this process works, it is not trivial. Although once you have it working, once, it should be ok.
__________________
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 |
#10
|
|||
|
|||
Quote:
Does this still look like the process to follow? https://www.howtogeek.com/125769/how...ridge-utility/ Brings me back to my original DVR hacking days - hacking a Series1 TiVo to allow it to be used in Canada back in about 2002. That required a bit of work and a hacked-together ethernet connector for the TiVo called a TiVonet (later Turbonet). I think some of the recorded TV files that I still have in SageTV were recorded on one of those TiVos and then transferred to my PC.
__________________
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 |
#11
|
|||
|
|||
I played around with adb on my MiBox but it seems like more of a pain than anything else. You have to turn it on by connecting with a USB cable and enabling port 5555 for adb but it appears to me that you have to keep USB debugging enabled, even if you want to use adb over the LAN. That means that you can't use a USB-ethernet adapter. It also seems that it may reset all of this after a reboot of the device.
__________________
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 |
#12
|
||||
|
||||
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 |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Looking to test the Sage waters | gacevich | SageTV Software | 57 | 07-02-2015 04:36 AM |
sagex-api Plugin MISSING: sagex-api-FAILED http://ubuntone.com/5NNCHGlywxvXBgRw8B3nMr | antplugger | SageTV v7 Customizations | 10 | 06-10-2014 01:34 AM |
Tivo user looking to test out Sage | wolverines | General Discussion | 16 | 12-29-2008 05:11 PM |
Test Sage through GraphEdit | UFGrayMatter | SageTV Software | 0 | 02-14-2008 10:42 PM |
Sage - Related Beta Test Apps available | Xleon | General Discussion | 5 | 02-08-2006 04:44 PM |