SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v9 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-14-2017, 07:48 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Sagex question - turning on extenders

Can you use SageX to turn on an extender that is in standby mode?
__________________
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
Reply With Quote
  #2  
Old 09-14-2017, 11:02 AM
will will is offline
Sage Fanatic
 
Join Date: Jul 2009
Location: New York
Posts: 798
Yes you can, I don't know the exact command but I do it via the TiSageTV app which I believe uses SageX. You can read about the API at https://github.com/stuckless/sagetv-...sing-sagex-api

You can also turn on the extenders via telneting into them and issueing a command (I can look that one up for you when I get home if you want).
__________________
Will

OS: Windows 7
Hardware: Intel Core i7-920 with 12GB RAM & an Adaptec 5805 with a Chenbro 36-port SAS Expander
Case: Antec 1200 with 4 iStarUSA trayless hot-swap cages (20 drives max)
Drives: 8 Toshiba/Hitachi 2TB drives in a RAID 6 & 7 Toshiba 3TB drives in a RAID 6
Capture Cards: HDHomeRun Connect Quatro 4, Hauppauge 60 HD-PVR
Players: 5 HD300s, 2 HD200s
Reply With Quote
  #3  
Old 09-14-2017, 11:29 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I believe that TiSageTV uses SageTCPServer which was written by Fonceur.

If you could send that telnet info that would be useful as well.
__________________
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
Reply With Quote
  #4  
Old 09-14-2017, 11:56 AM
will will is offline
Sage Fanatic
 
Join Date: Jul 2009
Location: New York
Posts: 798
Telnet into the extender, default port 23. The login name is root and there is no password.

Here are the following commands I know of:

Power on the extender, if on, command does nothing
killall waitpower

Power off the extender
killall miniclient

Reboot the extender
reboot
__________________
Will

OS: Windows 7
Hardware: Intel Core i7-920 with 12GB RAM & an Adaptec 5805 with a Chenbro 36-port SAS Expander
Case: Antec 1200 with 4 iStarUSA trayless hot-swap cages (20 drives max)
Drives: 8 Toshiba/Hitachi 2TB drives in a RAID 6 & 7 Toshiba 3TB drives in a RAID 6
Capture Cards: HDHomeRun Connect Quatro 4, Hauppauge 60 HD-PVR
Players: 5 HD300s, 2 HD200s
Reply With Quote
  #5  
Old 09-14-2017, 12:05 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Thanks Will - do you know how to start the miniclient if it is in Standby mode but not currently on and connected to a server?

For bonus points - how about being able to connect to a different server than the one last used.
__________________
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
Reply With Quote
  #6  
Old 09-14-2017, 01:20 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by wayner View Post
Can you use SageX to turn on an extender that is in standby mode?
You might want to check out this post ...

https://forums.sagetv.com/forums/sho...9&postcount=10
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #7  
Old 09-15-2017, 03:40 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by wayner View Post
Thanks Will - do you know how to start the miniclient if it is in Standby mode but not currently on and connected to a server?
The telnet command already posted will do so. killall waitpower will wake it from standby.

Quote:
Originally Posted by wayner View Post
For bonus points - how about being able to connect to a different server than the one last used.
That's probably tougher - you'd need to find whatever file on the extender stores that info, change that file, then get the miniclient to restart.
__________________
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
Reply With Quote
  #8  
Old 09-15-2017, 07:11 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by Fuzzy View Post
That's probably tougher - you'd need to find whatever file on the extender stores that info, change that file, then get the miniclient to restart.
I have played around a bit with this but it appears that the files executed are different on an HD200 vs HD300. But I was never successful in figuring out exactly how to alter the files and get it working.

Thanks for the suggestions everyone.

I have found another method for HTTP control that works for those that have Harmony hub based remotes. If you install the Harmony API then you can use an HTTP POST command like "HTTP POST 192.168.1.50/hubs/kitchen/activities/sagetv" to start the Activity SageTV on your hub. You can also control specific devices as well as in "HTTP POST 192.168.1.50/hubs/kitchen/devices/sagehd300/commands/poweron". Using this method has the advantage of keeping your Harmony Hub aware of the state of your devices. You can also use MQTT rather than HTTP.

Note that this won't work with older Harmony remotes - it requires the remotes that come with a Hub that connects into your wifi network. But those can be had for around $100 (or less on eBay) for the model with a simple remote with no LCD 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
Reply With Quote
  #9  
Old 09-15-2017, 07:28 AM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Going from memory. Didn't Slugger write a Global Helpers package that was an extension of the SageAPI that did a lot of these?
If I recall, did extender power on/off, change channels, and several other things
Reply With Quote
  #10  
Old 09-15-2017, 07:30 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
You're right he did. I couldn't remember the name but it is Global Helpers. I asked at one time if they could be incorporated into the core API but I don't think that this ever happened.
__________________
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sagex-api Plugin MISSING: sagex-api-FAILED http://ubuntone.com/5NNCHGlywxvXBgRw8B3nMr antplugger SageTV v7 Customizations 10 06-10-2014 01:34 AM
question about extenders and plugins kkapp SageTV v7 Customizations 2 03-29-2011 03:41 PM
Question about SageMC and extenders pdxview SageMC Custom Interface 12 08-28-2008 09:58 AM


All times are GMT -6. The time now is 05:44 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.