SageTV Community  

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

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-09-2008, 12:07 PM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
Arrow Utility: SageExtCtrl (Sage Extender Power Control)

This command line utility will connect to your SageTV STX-HD100 or STP-HD200 Media Extender via TCP/IP and power 'ON', power 'OFF', or 'REBOOT' the extender.


------------------------------------------------
SageTV Extender Controller
------------------------------------------------

sageextctrl.exe <address> <function>

<address> is the IP address or hostname
to access the extender.

<function> is the action you wish to
perform. The available
functions are:
- "on"
- "off"
- "reboot"

Example: sageextctrl.exe 192.168.1.105 on

------------------------------------------------



More Information is located on the DOWNLOADS page

Last edited by shadeblue.com; 04-06-2009 at 11:15 PM.
Reply With Quote
  #2  
Old 09-10-2008, 01:51 PM
Brent Brent is offline
SageTVaholic
 
Join Date: May 2006
Location: KC, Missouri
Posts: 3,695
How would you use this program? I'm not understanding its purpose although its been a long day so it might just be that I'm tired
Reply With Quote
  #3  
Old 09-10-2008, 03:22 PM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Quote:
Originally Posted by Brent View Post
How would you use this program? I'm not understanding its purpose
The extender goes in standby after inactivity, so this is one way to wake it up... Of course if you are in the same room and can simply use the remote that doesn't help you much.
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #4  
Old 09-10-2008, 03:36 PM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
Quote:
Originally Posted by Brent View Post
How would you use this program? I'm not understanding its purpose although its been a long day so it might just be that I'm tired
Hi Brent,

I just created it as a generic utility so that if a user needs this type of functionality, they could make use of it. It is probably not of much use for the average user.

Since the standby mode on the extender does not power down the unit, I'm using this tool to power down the extender. If the extender is powered down, then my LCD TV will shut itself off after a few minutes. So, in my case I am using it to provide the ability to auto shut down the extender and consequently the TV after some period of inactivity. So now, if I fall asleep while watching TV, my LCD TV is not running all night

You could using Nielm's dynamic menus also include a "Reboot Extender" menu item on some advanced technical user page if you wanted.
Reply With Quote
  #5  
Old 09-11-2008, 10:41 AM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
this is a great little project. This also benfits anyone that controls the via home automation software that doesnt work after the extender looses connection. CQC is like that. After I reboot my pc I need to reboot the extender but have no way to.
Reply With Quote
  #6  
Old 09-11-2008, 11:54 AM
Brent Brent is offline
SageTVaholic
 
Join Date: May 2006
Location: KC, Missouri
Posts: 3,695
OK that makes sense. I just didn't understand how it worked and how people would be using it. Looks like a good idea.
Reply With Quote
  #7  
Old 09-11-2008, 12:24 PM
sic0048 sic0048 is offline
Sage Icon
 
Join Date: Nov 2007
Posts: 1,400
Yeah, I will certainly make good use of this program. My HD extender is actually located in my central wiring closet and is distributed via a matrix switcher to the TVs around the house.

If I had to reboot my server for some reason, I would have to go down to the closet and manually turn the extender off and then back on. By using this program, I'll simply have a new button on my wireless touchscreen that will allow me to reset the extender.

EDIT - For that matter, I should probably just put the app in the startup folder so that it is automatically run every time the computer is booted. This way I don't even need to manually run the application, it will be done for me.
__________________
i7-6700 server with about 10tb of space currently
SageTV v9 (64bit)
Ceton InfiniTV ETH 6 cable card tuner (Spectrum cable)
OpenDCT
HD-300 HD Extenders (hooked to my whole-house A/V system for synched playback on multiple TVs - great during a Superbowl party)
Amazon Firestick 4k and Nvidia Shield using the MiniClient
Using CQC to control it all

Last edited by sic0048; 09-11-2008 at 12:29 PM.
Reply With Quote
  #8  
Old 09-12-2008, 01:17 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
Nice! Thanks for the addition!
Reply With Quote
  #9  
Old 09-12-2008, 07:30 PM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
batch works great... startup folder i think runs on login not startup i think.

wonder if i need to make it a service


Quote:
Originally Posted by sic0048 View Post
Yeah, I will certainly make good use of this program. My HD extender is actually located in my central wiring closet and is distributed via a matrix switcher to the TVs around the house.

If I had to reboot my server for some reason, I would have to go down to the closet and manually turn the extender off and then back on. By using this program, I'll simply have a new button on my wireless touchscreen that will allow me to reset the extender.

EDIT - For that matter, I should probably just put the app in the startup folder so that it is automatically run every time the computer is booted. This way I don't even need to manually run the application, it will be done for me.
Reply With Quote
  #10  
Old 09-12-2008, 09:50 PM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
Quote:
Originally Posted by personalt View Post
batch works great... startup folder i think runs on login not startup i think.

wonder if i need to make it a service
Yes, in order for it to be able to run automatically at system startup (if a user account is not logged on) you will need to find a way to run it as a service.

However, an alternate method, the one I use on my Sage server is to use TweakUI (http://www.microsoft.com/windowsxp/D...powertoys.mspx) and just setup a user account to auto logon at system startup. This way I can just add startup items to the startup folder.
Reply With Quote
  #11  
Old 09-16-2008, 05:35 AM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
What about if you just add the batch file to a scheduled task on startup.

I havent fully tested it but it seems to work fine for me.
Reply With Quote
  #12  
Old 09-30-2008, 02:38 AM
SnyperBob SnyperBob is offline
Sage User
 
Join Date: Apr 2008
Location: Chicagoland
Posts: 61
I will be using this with my home automation software. I'll have it power up the extender when I walk into the room and power it down at the end of the day.

Thank you for this. I'll be trying it out sometime in the next couple weeks

Edit: Can this be run on any machine on the network? Or does it need to run on the SageTV server? Just want to make sure
Reply With Quote
  #13  
Old 10-07-2008, 07:45 AM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
Quote:
Originally Posted by SnyperBob View Post
I will be using this with my home automation software. I'll have it power up the extender when I walk into the room and power it down at the end of the day.

Thank you for this. I'll be trying it out sometime in the next couple weeks

Edit: Can this be run on any machine on the network? Or does it need to run on the SageTV server? Just want to make sure
Hi SnyperBob,

Sorry for the delayed reply. This program can be run from any (windows) computer that is network accessible to the SageTV server. Under the hood it is simply performing a TELNET connection over TCP/IP port 23.
Reply With Quote
  #14  
Old 12-04-2008, 07:36 PM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
I wonder if this will work on the new STPHD200 extenders? I guess it depends on the telnet access and commands required on this embedded OS.

If anybody gets a new STPHD200 extender and would be willing to try this program out, that information may be useful and helpful for other users.

Thank You,
SB
__________________
Server Hardware: Intel Core 2 Quad Q6700 2.66GHz CPU, 4GB DDR2 RAM, NVIDIA nForce 780i SLI Motherboard, GeForce 8600 GT, Seagate Barracuda 7200.11 2.5TB
Operating System: Windows XP Professional
HTPC/DVR Software: SageTV 7
Capture Devices: 2 @ Hauppauge HD-PVR (1212), Hauppauge WinTV-HVR-1600 ATSC/QAM, HD Homerun
Media Extenders: 2 @ Sage HD100 & 1 @ Sage HD200
Signals/Providers: AT&T UVerse, OTA ATSC
Set-Top-Box: 2 @ Motorola Box VIP 1200
Reply With Quote
  #15  
Old 04-06-2009, 11:20 PM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
NEW RELEASE - Version 1.0.1

Release 1.0.1 (2009-04-07)
- added support for STP-HD200 Media Extender

Download Here
__________________
Server Hardware: Intel Core 2 Quad Q6700 2.66GHz CPU, 4GB DDR2 RAM, NVIDIA nForce 780i SLI Motherboard, GeForce 8600 GT, Seagate Barracuda 7200.11 2.5TB
Operating System: Windows XP Professional
HTPC/DVR Software: SageTV 7
Capture Devices: 2 @ Hauppauge HD-PVR (1212), Hauppauge WinTV-HVR-1600 ATSC/QAM, HD Homerun
Media Extenders: 2 @ Sage HD100 & 1 @ Sage HD200
Signals/Providers: AT&T UVerse, OTA ATSC
Set-Top-Box: 2 @ Motorola Box VIP 1200
Reply With Quote
  #16  
Old 01-28-2010, 09:35 PM
RocKKer RocKKer is offline
Sage Advanced User
 
Join Date: Dec 2005
Posts: 196
For those of us on Linux I just posted a Linux solution to control hd200's on the SageTV Linux support section.

Thanks Shadeblue.com for the inspiration!
__________________
SageTV Server v9.2.2, Ubuntu Server 18.04.4 x64, Java 1.8.0_252, Xeon E5-2690, 32GB, 6X6TB WD Red - Software Raid 6, 2X HDHR3 (OTA), 3X HD-200
Reply With Quote
  #17  
Old 02-17-2010, 10:06 PM
jgscott987 jgscott987 is offline
Sage User
 
Join Date: Jan 2010
Location: North Carolina
Posts: 57
Just a thought if anyone is still maintaining this program... The Reboot command will not turn an HD200 on if it is off when the command is issued. I think it would make sense for it to, since your expectation would be for a box to be on after you issue a reboot command.

Thanks!

EDIT:

A potential solution would be to issue a 'reboot' command followed by an 'on' command, using a batch file for example. If the extender was off, it would ignore the 'reboot' command, but would respond to the 'on' command. If it were already on, it would obey the 'reboot' command but ignore the 'on' command.

EDIT #2:
I tried the solution above, but it wasn't completely successful. A better solution is to send an 'off' command followed by an 'on' command.

Last edited by jgscott987; 02-19-2010 at 07:25 AM.
Reply With Quote
  #18  
Old 02-24-2010, 09:59 AM
sic0048 sic0048 is offline
Sage Icon
 
Join Date: Nov 2007
Posts: 1,400
I have installed this program and have it set to execute when the computer is rebooted. This will allow my HD extenders to automatically reconnect after the server is rebooted.

The process works fine, but the application is executed too quickly during the reboot process. This causes the extenders to reboot and attempt to reconnect to the Sage server. The problem is that 95% of the time, the Sage service has not finished starting on the computer by the time the extenders have rebooted and search for the server. So they do not find the server and do not automatically reconnect.

Is there a way to induce a pause into the equation? Either some way of delaying the execution of my scheduled task (scheduled to run at start up), or adding a delay into the program itself - perhaps 30-45 seconds?

I'd love to hear everyone's suggestions.

Thanks,
__________________
i7-6700 server with about 10tb of space currently
SageTV v9 (64bit)
Ceton InfiniTV ETH 6 cable card tuner (Spectrum cable)
OpenDCT
HD-300 HD Extenders (hooked to my whole-house A/V system for synched playback on multiple TVs - great during a Superbowl party)
Amazon Firestick 4k and Nvidia Shield using the MiniClient
Using CQC to control it all
Reply With Quote
  #19  
Old 02-24-2010, 10:22 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
there are a few ways to put in the pause. One way would be to add a 'ping pause' to the batch file that is calling the program.
Code:
ping -n 1 -w 5000 1.1.1.1 > nul
this will wait 5000msec (change the wait timeout to whatever time you need), and then continue.

Another is to launch your program from a windows scheduled task. The task can be started at various times, one of the options being at startup. There is also a delay task option, so you can effectively make it run x seconds after startup.
__________________
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
  #20  
Old 02-24-2010, 03:06 PM
sic0048 sic0048 is offline
Sage Icon
 
Join Date: Nov 2007
Posts: 1,400
Quote:
Originally Posted by Fuzzy View Post
there are a few ways to put in the pause. One way would be to add a 'ping pause' to the batch file that is calling the program.
Code:
ping -n 1 -w 5000 1.1.1.1 > nul
this will wait 5000msec (change the wait timeout to whatever time you need), and then continue.

Another is to launch your program from a windows scheduled task. The task can be started at various times, one of the options being at startup. There is also a delay task option, so you can effectively make it run x seconds after startup.
Thanks for the suggestions. I should be able to get one of those to work. I'll dig into the scheduled task first, but certainly can modify my batch file if I need to. I just wasn't sure of the command syntax to use. Your example helped greatly.
__________________
i7-6700 server with about 10tb of space currently
SageTV v9 (64bit)
Ceton InfiniTV ETH 6 cable card tuner (Spectrum cable)
OpenDCT
HD-300 HD Extenders (hooked to my whole-house A/V system for synched playback on multiple TVs - great during a Superbowl party)
Amazon Firestick 4k and Nvidia Shield using the MiniClient
Using CQC to control it all
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
My Sage TV 6.3 Problems and Fixes (Long) tcsubwoofer SageTV Software 12 05-08-2008 07:35 PM
HD Extender transport stream problems iammike SageTV Media Extender 17 12-31-2007 09:44 AM
Do I need to buy the MVP media extender from Sage? dvd_maniac SageTV Media Extender 6 04-26-2007 08:18 PM
Sage Extender vs. MVP vs. Linksys MCE miles383 SageTV Media Extender 1 01-05-2006 01:48 PM
Tuner Control in Sage v4 LazyGun SageTV Software 4 11-08-2005 09:52 PM


All times are GMT -6. The time now is 01:04 PM.


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