SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Media Extender
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Media Extender Discussion related to any SageTV Media Extender used directly by SageTV. Questions, issues, problems, suggestions, etc. relating to a SageTV supported media extender should be posted here. Use the SageTV HD Theater - Media Player forum for issues related to using an HD Theater while not connected to a SageTV server.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-16-2007, 03:05 PM
BBCritical BBCritical is offline
Sage Aficionado
 
Join Date: Jun 2005
Posts: 308
Does anyone know how to schedule blocking an MVP from the server?

Since my kids dont know how to turn off of the television in there room after bedtime , and the wife is against me taking the tvs, does anyone know of a way to block access to the mvp from the server at a scheduled time during the week.. say from 9pm - 2pm? Thanks....
__________________
Server: Asus M3A; AMD Phenom quad core CPU; 3Gb RAM ; ATi x1600 PCIe Video Card
Tuners: 1 Adaptec PVR 3610, 2 PVR 500s; 1 HDHomerun; 2 HD PVR
Storage: 1.2 Tb

Clients: 2 HD Extenders
Reply With Quote
  #2  
Old 10-16-2007, 03:21 PM
Conejo Conejo is offline
Sage Expert
 
Join Date: May 2006
Location: California
Posts: 645
You could write a .cmd script that would change your firewall settings (preventing all MVPs from streaming), or to swap some SageTV client setting. Or implement a hardware multi-port switch that can block data on a MAC address basis via a schedule. My ZyXel does that.
Reply With Quote
  #3  
Old 10-16-2007, 04:23 PM
Crashless's Avatar
Crashless Crashless is offline
Sage Icon
 
Join Date: Oct 2003
Location: Los Angeles, CA
Posts: 1,224
I found this:

http://www.familysafemedia.com/tv_ti...cotch_bob.html

I haven't used one, but they seem like they'd do the trick.

There are also a couple of other options on that site if you don't like that specific one.
__________________
Give the Meekell STV a try!
Reply With Quote
  #4  
Old 10-16-2007, 05:35 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
If you have the web interface installed you can have EventGhost send the power off command to the MAC addresses of the desired MVPs every 5 minutes from 9pm to midnight and then again from midnight to 2pm weekdays.
Reply With Quote
  #5  
Old 10-16-2007, 08:49 PM
tipstir tipstir is offline
Sage Advanced User
 
Join Date: Jan 2006
Posts: 82
Quote:
Originally Posted by BBCritical View Post
Since my kids dont know how to turn off of the television in there room after bedtime , and the wife is against me taking the tvs, does anyone know of a way to block access to the mvp from the server at a scheduled time during the week.. say from 9pm - 2pm? Thanks....
This can be done in the router just like you do with a PC. On the MVP in question write down the MAC Address. In the router assign an IP address to this MVP using the MAC address. This would greate Static DHCP Table listing so the router will always assign this IP to this MAC address. Dlink has this feature some router don't.

In Filtering mode you setup a schedule for when the MVP can be access. So at 1am the router will block the IP address for the MAC address you want. It can also free-up the block for that IP address any given time. I had to do the same when the nephews came over and wanted to watch MVP until who knows what. I also did this for the laptop that was in the same room. They told me "uncle you don't have to do that!, I told them yes I it going down! At 1am also the TV will shutdown on a RF remote control timer" Hey when I mean lights out that me everything goes out!
Reply With Quote
  #6  
Old 10-17-2007, 04:30 AM
sainswor99's Avatar
sainswor99 sainswor99 is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 703
Quote:
Originally Posted by BBCritical View Post
Since my kids dont know how to turn off of the television in there room after bedtime , and the wife is against me taking the tvs, does anyone know of a way to block access to the mvp from the server at a scheduled time during the week.. say from 9pm - 2pm? Thanks....
Is the MVP the only method of getting TV signal in the room? If not, then what's the point? Sounds like you're looking for a technical solution to a parental issue.

Of course, if the MVP is the only method of getting TV, then the simplest solution is (as tipstir suggested) to buy a router which supports time-based filtering. You could also walk around and collect the MVP's every night.
Reply With Quote
  #7  
Old 10-17-2007, 06:44 AM
BBCritical BBCritical is offline
Sage Aficionado
 
Join Date: Jun 2005
Posts: 308
Quote:
Originally Posted by tipstir View Post
This can be done in the router just like you do with a PC. On the MVP in question write down the MAC Address. In the router assign an IP address to this MVP using the MAC address. This would greate Static DHCP Table listing so the router will always assign this IP to this MAC address. Dlink has this feature some router don't.

In Filtering mode you setup a schedule for when the MVP can be access. So at 1am the router will block the IP address for the MAC address you want. It can also free-up the block for that IP address any given time. I had to do the same when the nephews came over and wanted to watch MVP until who knows what. I also did this for the laptop that was in the same room. They told me "uncle you don't have to do that!, I told them yes I it going down! At 1am also the TV will shutdown on a RF remote control timer" Hey when I mean lights out that me everything goes out!
I have a D-Link GamerLounge DGL-4100... I know how to set up the schedule and the static ip to the mac address.. which filter do I use to assign this schedule to? It looks like I can schedule internet access by MAC address and I can only set network access to only deny all the time or not at all....

"D-Link has also included an Access Control feature; this allows you to set up many different parameters for limiting access to the Internet by different systems on your network. This is a great parental control feature. Once you enable this you can select the system you want to control and enable the features you want to apply to this system (Web Filter or Log Internet Access) you can also block specific ports and IP addresses. Using the MAC Address Filter you can allow or deny Internet access to any or all systems on your network. Using the Inbound Filter you can block specific external IP Addresses from attempting to access your network from the Internet. The Last Menu in the Advanced area is the Scheduling menu. In this menu you can set up times you would like certain firewall or access control features to be active, you can set this by day or by week."

Quote:
If you have the web interface installed you can have EventGhost send the power off command to the MAC addresses of the desired MVPs every 5 minutes from 9pm to midnight and then again from midnight to 2pm weekdays.
How would I tell the webserver to do this through eventghost?
__________________
Server: Asus M3A; AMD Phenom quad core CPU; 3Gb RAM ; ATi x1600 PCIe Video Card
Tuners: 1 Adaptec PVR 3610, 2 PVR 500s; 1 HDHomerun; 2 HD PVR
Storage: 1.2 Tb

Clients: 2 HD Extenders

Last edited by BBCritical; 10-17-2007 at 06:48 AM. Reason: Added another quote
Reply With Quote
  #8  
Old 10-17-2007, 08:33 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
The router option might not even work if the devices aren't directly connected to the router. As in my network I have 2 gigabit switches that all my devices/computers are connected to. The router is connect to one of the switches and merely provides internet access to the rest of the network. It does no switching of the rest of the network other than providing a conduit to the internet.
Reply With Quote
  #9  
Old 10-17-2007, 10:41 AM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
Quote:
Originally Posted by BBCritical View Post
How would I tell the webserver to do this through eventghost?
Using wget the command looks like:

Code:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="908">
    <Action>
        System.Execute(u'C:\\AutomationApps\\GnuWin32\\bin\\wget.exe', u'http://USERNAME:PASSWPRD@WEBSERVERADDY/sage/SageCommand?context=MVPMACADDRESS&amp;command=Power', 3, False, 2, u'')
    </Action>
</EventGhost>
That you can copy/paste into EventGhost assuming you have wget in
"C:\AutomationApps\GnuWin32\bin\" and you change the user/pass, websever address and MAC to your values.

Otherwise just change the path.

EventGhost will server more as the timer function then anything else.

The actual command to kick an MVP off the network from the SageTV web interface.

Code:
http://USERNAME:PASSWORD@WEBSERVER_ADDRESS/sage/SageCommand?context=MVP_MAC_ADDRESS&command=Power

How and when you use the command is up to you. When you issue it to a valid MVP client MAC that MVP will go to screen saver not actually power down.

I have used this to the point that I have an x10 RF remote controlling one of my MVP clients. It appears very stable once properly configured. Much moreso then my x10 based lighting controls.

I used this in combination with the Dynamic Customizable Menus so now I have a menu in Sage that allows you to manually kick MVPs off to free up tuners.

You can also send the commands with EventGhost across your network, so each Windows client can have a seperate config but you also have universal commands like my lighting controls and kicking MVPs off.

Last edited by CollinR; 10-17-2007 at 10:43 AM.
Reply With Quote
  #10  
Old 10-17-2007, 12:44 PM
briands briands is offline
Sage Icon
 
Join Date: Aug 2004
Location: Bloomington, IN
Posts: 1,093
Quote:
Originally Posted by Taddeusz View Post
The router option might not even work if the devices aren't directly connected to the router. As in my network I have 2 gigabit switches that all my devices/computers are connected to. The router is connect to one of the switches and merely provides internet access to the rest of the network. It does no switching of the rest of the network other than providing a conduit to the internet.
The router still assignes the IP addresses in this configuration.
Reply With Quote
  #11  
Old 10-17-2007, 12:49 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by CollinR View Post
I used this in combination with the Dynamic Customizable Menus so now I have a menu in Sage that allows you to manually kick MVPs off to free up tuners.
Cool use of my plugins, but here is an easier version that calls the java code directly! (menuitemlet, assumes my webserver JAR is installed, should work on clients, server and extenders)
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE sageMenu PUBLIC "-//NIELM//DTD SAGEMENU XML 1.4//EN" "http://www.sage-community.org/~nielm/nielm_modules/dynamic_menu/sagemenu_1_3.dtd">
<sageMenu version="1.4">
    <internalScreenMenuItem screen="Null Menu Action (does nothing)" title="Power Off MVP">
        <confirmPrompt>Are you sure you want to power off the MVP at MVP_LOCATION?</confirmPrompt>
        <evalExpression>net_sf_sageplugins_webserver_ExtenderCommandServlet_mvpPowerOff("MVP_MAC_OR_IP_ADDRESS")</evalExpression>
    </internalScreenMenuItem>
</sageMenu>
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #12  
Old 10-17-2007, 12:54 PM
BBCritical BBCritical is offline
Sage Aficionado
 
Join Date: Jun 2005
Posts: 308
Quote:
Originally Posted by nielm View Post
Cool use of my plugins, but here is an easier version that calls the java code directly! (menuitemlet, assumes my webserver JAR is installed, should work on clients, server and extenders)
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE sageMenu PUBLIC "-//NIELM//DTD SAGEMENU XML 1.4//EN" "http://www.sage-community.org/~nielm/nielm_modules/dynamic_menu/sagemenu_1_3.dtd">
<sageMenu version="1.4">
    <internalScreenMenuItem screen="Null Menu Action (does nothing)" title="Power Off MVP">
        <confirmPrompt>Are you sure you want to power off the MVP at MVP_LOCATION?</confirmPrompt>
        <evalExpression>net_sf_sageplugins_webserver_ExtenderCommandServlet_mvpPowerOff("MVP_MAC_OR_IP_ADDRESS")</evalExpression>
    </internalScreenMenuItem>
</sageMenu>
So I install EventGhost on my server and then create this custom menu item in SageMC and it will ask me if I want to power off the mvp? what if I want the MVP to stay off until a certain time?
__________________
Server: Asus M3A; AMD Phenom quad core CPU; 3Gb RAM ; ATi x1600 PCIe Video Card
Tuners: 1 Adaptec PVR 3610, 2 PVR 500s; 1 HDHomerun; 2 HD PVR
Storage: 1.2 Tb

Clients: 2 HD Extenders
Reply With Quote
  #13  
Old 10-17-2007, 12:54 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by briands View Post
The router still assignes the IP addresses in this configuration.
True, but if the MVP is already assigned an IP address and all the traffic is bypassing the router's switch there's nothing the router can do to prevent the MVP from communicating with the SageTV server.
Reply With Quote
  #14  
Old 10-17-2007, 01:35 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
Quote:
Originally Posted by BBCritical View Post
So I install EventGhost on my server and then create this custom menu item in SageMC and it will ask me if I want to power off the mvp? what if I want the MVP to stay off until a certain time?
Niel is just talking about adding it to a menu item.


To have EventGhost do this you will setup a timer that issues that command every few minutes betwn time X and time Y.

Then you create another menu item called "MVP Limit Night" or whatever, when that menu item is selected it will send a command to EventGhost to start the limit MVP access timer based macro. When the macro runs out the MVPs will pop back to life when the remote is attempted.

The menu code should look something like.


Code:
                <actionMenuItem title="Turn Off the Exterior Lights">
                    <actionList>
                        <extCommand window="normal" command="C:\Program Files\EventGhost\EventGhost.exe" arguments="-n 192.168.1.2:1024 PASSWORD ExteriorLightsOff" waitforexit="0"/>
                    </actionList>
                </actionMenuItem>
Just change the "ExteriorLightsOff" to NightLimitMVP


Now EventGhost will see that event come across the network and react in whichever way you choose. It should be to start the MVP kick timer macro.

Last edited by CollinR; 10-18-2007 at 12:46 PM.
Reply With Quote
  #15  
Old 10-17-2007, 02:14 PM
stevech stevech is offline
Sage Icon
 
Join Date: Dec 2005
Posts: 1,643
Quote:
Originally Posted by BBCritical View Post
Since my kids dont know how to turn off of the television in there room after bedtime , and the wife is against me taking the tvs, does anyone know of a way to block access to the mvp from the server at a scheduled time during the week.. say from 9pm - 2pm? Thanks....
many consumer wired and wireless routers allow parental control at the level of switch port # or IP address (DHCP can be an issue) or IP address range (all DHCPs) or some do it on a port number basis. To police when kids play games. But it would work for the MVP too.

Easy to configure. Password lock so kids can't undo it.
Reply With Quote
  #16  
Old 10-17-2007, 02:31 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by stevech View Post
many consumer wired and wireless routers allow parental control at the level of switch port # or IP address (DHCP can be an issue) or IP address range (all DHCPs) or some do it on a port number basis. To police when kids play games. But it would work for the MVP too.

Easy to configure. Password lock so kids can't undo it.
As I explained earlier that only works if all the devices are routed directly through the router's switch. If it's a wired device connected to another switch once they have an IP address the router has no way of stopping their traffic. In other words if they started watching TV before the cutoff and didn't shut the device off it still has the assigned IP.

I suppose this type of thing might work if the server were directly connected to the router. Then the traffic would have to route through it.

I'm of the opinion, though, that techinical limitations aren't really a good solution to this problem.
Reply With Quote
  #17  
Old 10-17-2007, 03:18 PM
tipstir tipstir is offline
Sage Advanced User
 
Join Date: Jan 2006
Posts: 82
Quote:
Originally Posted by BBCritical View Post
I have a D-Link GamerLounge DGL-4100... I know how to set up the schedule and the static ip to the mac address.. which filter do I use to assign this schedule to? It looks like I can schedule internet access by MAC address and I can only set network access to only deny all the time or not at all....

"D-Link has also included an Access Control feature; this allows you to set up many different parameters for limiting access to the Internet by different systems on your network. This is a great parental control feature. Once you enable this you can select the system you want to control and enable the features you want to apply to this system (Web Filter or Log Internet Access) you can also block specific ports and IP addresses. Using the MAC Address Filter you can allow or deny Internet access to any or all systems on your network. Using the Inbound Filter you can block specific external IP Addresses from attempting to access your network from the Internet. The Last Menu in the Advanced area is the Scheduling menu. In this menu you can set up times you would like certain firewall or access control features to be active, you can set this by day or by week."



How would I tell the webserver to do this through eventghost?
You router seems to be limted as I see here with the dlink dgl-4100 emulator

MAC Address
http://support.dlink.com/emulators/d...ss_Filter.html

Access Control
http://support.dlink.com/emulators/d...s_Control.html


You have the same thing but it's here
http://support.dlink.com/emulators/d...Schedules.html

You have to setup rules on these router. Prior routers just set up the MAC address and give it rules. You can do that same but it takes more effort.

With what I have I see this:

DIR-655 -
Schedules
http://www.support.dlink.com/emulato...Schedules.html
Reply With Quote
  #18  
Old 10-17-2007, 05:50 PM
sainswor99's Avatar
sainswor99 sainswor99 is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 703
Quote:
Originally Posted by Taddeusz View Post
I'm of the opinion, though, that techinical limitations aren't really a good solution to this problem.
I agree; any technical soultion you implement will have a weakness. The simplest thing to do would be to do what the OP originally wanted to do. Remove the TV. Not only does it solve the problem, it also sends the explicit message that this is a privilige that has been removed.
Reply With Quote
  #19  
Old 10-18-2007, 10:43 AM
briands briands is offline
Sage Icon
 
Join Date: Aug 2004
Location: Bloomington, IN
Posts: 1,093
Quote:
Originally Posted by Taddeusz View Post
True, but if the MVP is already assigned an IP address and all the traffic is bypassing the router's switch there's nothing the router can do to prevent the MVP from communicating with the SageTV server.
Then set the IP expiration every 5 mins or something.
Reply With Quote
  #20  
Old 10-18-2007, 12:25 PM
BBCritical BBCritical is offline
Sage Aficionado
 
Join Date: Jun 2005
Posts: 308
Quote:
Originally Posted by CollinR View Post
Using wget the command looks like:

Code:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="908">
    <Action>
        System.Execute(u'C:\\AutomationApps\\GnuWin32\\bin\\wget.exe', u'http://USERNAME:PASSWPRD@WEBSERVERADDY/sage/SageCommand?context=MVPMACADDRESS&amp;command=Power', 3, False, 2, u'')
    </Action>
</EventGhost>
That you can copy/paste into EventGhost assuming you have wget in
"C:\AutomationApps\GnuWin32\bin\" and you change the user/pass, websever address and MAC to your values.

Otherwise just change the path.

EventGhost will server more as the timer function then anything else.

The actual command to kick an MVP off the network from the SageTV web interface.

Code:
http://USERNAME:PASSWORD@WEBSERVER_ADDRESS/sage/SageCommand?context=MVP_MAC_ADDRESS&command=Power

How and when you use the command is up to you. When you issue it to a valid MVP client MAC that MVP will go to screen saver not actually power down.

I have used this to the point that I have an x10 RF remote controlling one of my MVP clients. It appears very stable once properly configured. Much moreso then my x10 based lighting controls.

I used this in combination with the Dynamic Customizable Menus so now I have a menu in Sage that allows you to manually kick MVPs off to free up tuners.

You can also send the commands with EventGhost across your network, so each Windows client can have a seperate config but you also have universal commands like my lighting controls and kicking MVPs off.
So I need wget and eventghost? do I copy the command to an eventghost macro? The documentation for event ghost is not so good
__________________
Server: Asus M3A; AMD Phenom quad core CPU; 3Gb RAM ; ATi x1600 PCIe Video Card
Tuners: 1 Adaptec PVR 3610, 2 PVR 500s; 1 HDHomerun; 2 HD PVR
Storage: 1.2 Tb

Clients: 2 HD Extenders
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
Media MVP setup cyberdan SageTV Media Extender 25 05-05-2007 05:10 PM
6.1.4: SageTV, Vista, & MVP work perfectly but only WITHOUT SageTV Service running! sjgore SageTV Beta Test Software 0 03-11-2007 11:25 AM
DHCP failures on MVP lotus SageTV Media Extender 21 10-29-2006 10:43 PM
Run MVP on secondary server? heffe2001 SageTV Media Extender 5 01-04-2006 08:19 PM


All times are GMT -6. The time now is 12:46 AM.


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