News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Power off MD at midnight? (timed events issue)

Started by nosebreaker, April 30, 2009, 05:00:00 PM

Previous topic - Next topic

nosebreaker

I'd like to have all media directors shut off at midnight if they are still powered on (except the core of course).  I got lights to shut off but for some reason the MD's don't shut down with the timed event.  I can power them off from an orbiter just fine.  Any thoughts?

hari

iirc they take a different command to power down than on/off..
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

seth

I think this would be a great feature. Have them power off, and then at a specific time in the morning, power back up.
How green would that be?

I am going to check into this tonight, and see if I can come up with something as well. Please post back any findings here, during you experimentation. I will as well.

Regards,

Seth
".....Because Once you've LinuxMCE'd....."
System stats located at my user page:

[url="http://wiki.linuxmce.org/index.php/User:Seth"]http://wiki.linuxmce.org/index.php/User:Seth[/url]

Dale_K

I am actually doing this and have been for a while.  I'll post my timed event setup when I get home tonight.

seth

I look forward to your setup. This is something I have not been able to implement yet. I would like to use it. It would greatly reduce the monthly electric bill, and also possibly reduce some heat in certain cases.

Perhaps over the weekend I will give it a try.

Regards,

Seth
".....Because Once you've LinuxMCE'd....."
System stats located at my user page:

[url="http://wiki.linuxmce.org/index.php/User:Seth"]http://wiki.linuxmce.org/index.php/User:Seth[/url]

bulek

Quote from: Dale_K on April 30, 2009, 07:46:34 PM
I am actually doing this and have been for a while.  I'll post my timed event setup when I get home tonight.

Please add content to Wiki and let us know about it....

Regards,

Bulek.
Thanks in advance,

regards,

Bulek.

donpaul

#6
You have to use the core general info plugin, and halt the device:


OR, if you use the suspend feature, then use the app server plugin to spawn the suspend script:


The use wake to turn it back on:

tschak909

Beautiful! :)

As an exercise, let's see if we can make a "Wizard" that you can select from the pulldown, to select MDs to turn on and off.

-Thom

Marie.O

And don't forget not to turn off if stuff is currently playing ...
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

donpaul

Quote from: tschak909 on May 04, 2009, 06:45:48 PM
Beautiful! :)

As an exercise, let's see if we can make a "Wizard" that you can select from the pulldown, to select MDs to turn on and off.

-Thom

Now that would be cool!

bulek

Quote from: posde on May 04, 2009, 06:49:58 PM
And don't forget not to turn off if stuff is currently playing ...
Hi,

just curious, how can I determine if MD is currently playing anything and act upon that (or not act).... ?

Thanks in advance,

regards,

Bulek.
Thanks in advance,

regards,

Bulek.

Marie.O

Quote from: bulek on May 07, 2009, 12:06:47 PM
just curious, how can I determine if MD is currently playing anything and act upon that (or not act).... ?

TCP Port 12000 on the MD contains timestamps with information about what is playing atm.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

tschak909

That's the time code port for the Xine Player, and does not work in all cases.

-Thom

bulek

Hi,

I was more thinking about doing this under event handler or scenarios. For instance, don't make speech announcement if I'm playing video....

Possible ?

Thanks in advance,

regards,

Bulek.
Thanks in advance,

regards,

Bulek.

donpaul

Quote from: bulek on May 07, 2009, 04:17:40 PM
Hi,

I was more thinking about doing this under event handler or scenarios. For instance, don't make speech announcement if I'm playing video....

Possible ?

Unfortunately, I don't think it is possible. There is no way to check if video is playing. Maybe that can be added, but the functionality isn't there right now.