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
  #21  
Old 10-18-2007, 12:33 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
Yes wget is a simple command line app, you just call it with your variables and it will hit whatever website you wish.


Yes you can just copy paste that into EventGhost. Really EventGhost is so easy to use once you get over the initial learning curve you won't need a bunch of documentation. It's pretty self explainitory or at least highly intuitive.

wget requires no installation just drop the exe wherever you like, as you can see I have a directory called automationapps that has a bunch of these little command line tools inside.

In eventghost all you are doing is run application, then in that config you list wget and it's path plus the variables you want it to use.

Then build the timer so it starts firing that off every few minutes from time x to time y. You'll probably need 2 timers, one from 9pm to 11:59pm and another from midnight to 2pm.

To use timers you will need to have the timer plugin running, it comes preinstalled but you must manually add it to startup. This just minimizes stuff running needlessly as many don't use the timer.
Reply With Quote
  #22  
Old 10-18-2007, 01:13 PM
stevech stevech is offline
Sage Icon
 
Join Date: Dec 2005
Posts: 1,643
Quote:
Originally Posted by Taddeusz View Post
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.
Whether the PC or MVP goes through switches matters not.

I don't follow your thinking. The parental controls I've seen in routers can, for example, support:

Block traffic to MAC address(es) xxx for this time period <<< MAC, not IP
Block traffic based on IP address xxx or IP address range for this time period. You could exempt parent PCs by giving them Static IPs outside this range
Block traffic based on data service, e.g., port numbers for games, MVP, etc

Last edited by stevech; 10-18-2007 at 01:15 PM.
Reply With Quote
  #23  
Old 10-18-2007, 01:32 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
My router has like jack for these filters...

I mean I would have to manually mess with it twice a day to get it to work. Not all routers have these advanced filters with scheduling.
Reply With Quote
  #24  
Old 10-18-2007, 01:44 PM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
Quote:
Originally Posted by stevech View Post
Whether the PC or MVP goes through switches matters not.

I don't follow your thinking. The parental controls I've seen in routers can, for example, support:
The reason it matters if the PC and MVP are directly hooked up to the router or via switches is, if I have the MVP > PC traffic going through just a switch, and the traffic does not ever touch the router, how cna the router's rules affect the MVP>PC traffic?

And, does the router even allow you to apply controls to the local LAN? I just tried a test on my DGL-4300, and I couldn't apply a control to the local LAN, the access control settings are for "The Access Control option allows you to control access in and out of your network. " and don't seem to be for access through the network.
__________________
- Jack
__________________________________________
Server: AMD Phenom 9750, 2GB RAM, 2 Hauppauge PVR500, 1 Firewired DCT6200, 1 HDHomerun tuning 2 QAM channels, Vizio 37" HDTV LCD, 1 USB-UIRT

Clients: 1 MediaMVP, 1 Placeshifter Client, & 1 SageTV Client.
Reply With Quote
  #25  
Old 10-18-2007, 01:52 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by stevech View Post
Whether the PC or MVP goes through switches matters not.

I don't follow your thinking. The parental controls I've seen in routers can, for example, support:

Block traffic to MAC address(es) xxx for this time period <<< MAC, not IP
Block traffic based on IP address xxx or IP address range for this time period. You could exempt parent PCs by giving them Static IPs outside this range
Block traffic based on data service, e.g., port numbers for games, MVP, etc
Ok, I'll put this as simply as possible. Traffic going to and from the internet can be readily blocked by the router. But for strictly internal traffic if you have several network switches the traffic won't necessarily be going through the router's switch. Network switches are intelligent enough that they will route the traffic directly to it's destination without needing to broadcast to the whole network like old style hubs do. So, say you have the following config with an MVP, server, separate switch, and home router:

MVP------Switch------Server
___________|
|
Router
|
Internet


As long as the MVP already has an IP address traffic between it and the Server will never be passed to the router as long as the switch has a good route table. None, nada. There is nothing the router can do to block this traffic because it is removed from the path of the traffic due to intelligent switching.
Reply With Quote
  #26  
Old 10-18-2007, 02:02 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
To verfiy Taddeusz, just get your stuff working as normal and unplug the router. It's not in the chain at all once DHCP has provided the MVP an address, those filters are usually to stop internet access not intranet access.


Surely someone with a $300 managed switch will chime in, thats not the rule it's the exception. Few here will have them.
Reply With Quote
  #27  
Old 10-18-2007, 02:08 PM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
Quote:
Originally Posted by CollinR View Post
Surely someone with a $300 managed switch will chime in, thats not the rule it's the exception. Few here will have them.
Conejo offered that up as the first response to the OP.
__________________
- Jack
__________________________________________
Server: AMD Phenom 9750, 2GB RAM, 2 Hauppauge PVR500, 1 Firewired DCT6200, 1 HDHomerun tuning 2 QAM channels, Vizio 37" HDTV LCD, 1 USB-UIRT

Clients: 1 MediaMVP, 1 Placeshifter Client, & 1 SageTV Client.
Reply With Quote
  #28  
Old 10-19-2007, 08:18 AM
navels navels is offline
Sage User
 
Join Date: Apr 2007
Posts: 39
Another option: don't restrict access, but turn on logging so you can see if they watch after hours. If so, then you can take the MVP away for some amount of time, or whatever punishment you feel is appropriate.

Lee
Reply With Quote
  #29  
Old 10-22-2007, 11:09 AM
BBCritical BBCritical is offline
Sage Aficionado
 
Join Date: Jun 2005
Posts: 308
Quote:
Originally Posted by CollinR View Post
Yes wget is a simple command line app, you just call it with your variables and it will hit whatever website you wish.


Yes you can just copy paste that into EventGhost. Really EventGhost is so easy to use once you get over the initial learning curve you won't need a bunch of documentation. It's pretty self explainitory or at least highly intuitive.

wget requires no installation just drop the exe wherever you like, as you can see I have a directory called automationapps that has a bunch of these little command line tools inside.

In eventghost all you are doing is run application, then in that config you list wget and it's path plus the variables you want it to use.

Then build the timer so it starts firing that off every few minutes from time x to time y. You'll probably need 2 timers, one from 9pm to 11:59pm and another from midnight to 2pm.

To use timers you will need to have the timer plugin running, it comes preinstalled but you must manually add it to startup. This just minimizes stuff running needlessly as many don't use the timer.
I have wget setup fine... created the action in eventghost fine....

I cant seem to get the timer to work.. I added the plugin and when I create the timer it doesnt seem to fire.. nor does the timer show up in the timer plugin configuration.. any ideas?
__________________
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
  #30  
Old 10-22-2007, 09:44 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
Take it to the EventGhost forums, the timer is somewhat confusing. What you may wind up doing is have the timer start at 9pm and fire once every 5 minutes for X number of cycles.

Between Bitmonster, Bartman and myself we'll get you going.


Pretty EG is a pretty cool app huh?
Reply With Quote
  #31  
Old 10-23-2007, 07:21 AM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
This should work for you, it should be put in your startup folder.

Code:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="908">
    <Action>
        Timer.TimerAction(u'MVP-Night-Limit', 0, 204, 300.0, u'LimitMVP-Night', True, True, 2, u'21:00:00')
    </Action>
</EventGhost>
Your Event will be Timer.LimitMVP-Night, it should go in a globally accessible folder. (cannot be disabled in EG)

Your Event Code should look like:

Code:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="908">
    <Macro Name="Limit MVP Night Use">
        <Event Name="Timer.LimitMVP-Night">
        </Event>
        <Action>
            System.Execute(u'C:\\AutomationApps\\GnuWin32\\bin\\wget.exe', u'http://USER:PASS@ADDRESS/sage/SageCommand?context=MVP-MACa&amp;command=Power', 3, False, 2, u'')
        </Action>
    </Macro>
</EventGhost>
Obviously you will need to add a seperate action for each MVP MAC you wish to limit.

What this ~should~ do is fire the event every 5 minutes starting at 9pm for 204 cycles ending at 2pm the following day.

After you add this code you will need to restart EventGhost, or manually execute the timer in the startup group. Otherwise the timer will not start until EG is restarted (process startup group).
Reply With Quote
  #32  
Old 10-23-2007, 11:02 AM
BBCritical BBCritical is offline
Sage Aficionado
 
Join Date: Jun 2005
Posts: 308
Quote:
Originally Posted by CollinR View Post
This should work for you, it should be put in your startup folder.

Code:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="908">
    <Action>
        Timer.TimerAction(u'MVP-Night-Limit', 0, 204, 300.0, u'LimitMVP-Night', True, True, 2, u'21:00:00')
    </Action>
</EventGhost>
Your Event will be Timer.LimitMVP-Night, it should go in a globally accessible folder. (cannot be disabled in EG)

Your Event Code should look like:

Code:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="908">
    <Macro Name="Limit MVP Night Use">
        <Event Name="Timer.LimitMVP-Night">
        </Event>
        <Action>
            System.Execute(u'C:\\AutomationApps\\GnuWin32\\bin\\wget.exe', u'http://USER:PASS@ADDRESS/sage/SageCommand?context=MVP-MACa&amp;command=Power', 3, False, 2, u'')
        </Action>
    </Macro>
</EventGhost>
Obviously you will need to add a seperate action for each MVP MAC you wish to limit.

What this ~should~ do is fire the event every 5 minutes starting at 9pm for 204 cycles ending at 2pm the following day.

After you add this code you will need to restart EventGhost, or manually execute the timer in the startup group. Otherwise the timer will not start until EG is restarted (process startup group).
Where do I put this code.... I have only seen were to setup things in the GUI...
__________________
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
  #33  
Old 10-23-2007, 11:10 AM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
Just copy paste it, when pasted it will display properly in the GUI.

You'll need to paste the timer in the startup group and the macro under it with the general macros.
Reply With Quote
  #34  
Old 10-23-2007, 12:31 PM
BBCritical BBCritical is offline
Sage Aficionado
 
Join Date: Jun 2005
Posts: 308
Okay.. well the eventghost timer gave me a headache so I scrapped it...

I was able to get it to work on the schedule I wanted by running the command line using wget..
Then I set up a windows scheduler task that runs at 9pm Sunday - Thursday and for 8 hours (you can do this in the advanced properties of the scheduler).. tested it with the webserver and it runs fine...

Ill see how good it is in production .. thanks for all of the help
__________________
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.