Page 1 of 1

Plug-ins for Amahi Energy Saver. No support questions here!!

Posted: Tue Sep 06, 2011 10:54 pm
by jayrock
Sometimes you may wish to prevent Amahi Energy Saver from suspending the HDA while some other action is ongoing. From version 0.8.12 onwards this is possible via simple scripts. I have prepared two example scripts and I hope that these are inspriration for other community members to ingrate their favourite apps!

This thread collects all scripts that have been developed. To keep this one clean, please open a new thread if you have any support question.

Regards,

jayrock

Sabnzbd

Posted: Tue Sep 06, 2011 11:05 pm
by jayrock
This script tells AES to keep the HDA powered on as long as there are Sabnzbd downloads ongoing.

To install, please open a root terminal on your hda and type:

Code: Select all

curl -o /usr/share/aes-lock/sabnzbd-lock.rb http://dl.dropbox.com/u/11034559/aes/aes-lock-scripts/sabnzbd-lock.rb
After that you have to set the Sabnzbd API key. This key is found in general page of the sabnzbd config. Open /usr/share/aes-lock/sabnzbd-lock.rb with your favourite editor and change the key in line 9 to your acutal key.

That's it.

Greyhole

Posted: Tue Sep 06, 2011 11:08 pm
by jayrock
This script tells AES to keep the HDA powered on as long as Greyhole is working on some task.

NOTE: Due to the developer it doesn't break anything if the HDA suspends while Greyhole is working. Unfinished tasks will be continued the next time regular Greyhole fsck runs. However, like myself, some people may find it nicer to have Greyhole finish any pending work prior to suspend.

To install, please open a root terminal on your hda and type:

Code: Select all

curl -o /usr/share/aes-lock/greyhole-lock.rb http://dl.dropbox.com/u/11034559/aes/aes-lock-scripts/greyhole-lock.rb
That's it.

MythTV

Posted: Tue Sep 20, 2011 1:47 pm
by jayrock
This script tells AES to keep the HDA powered on as long as MythTV is recording something.

To install, please open a root terminal on your hda and type:

Code: Select all

curl -o /usr/share/aes-lock/greyhole-lock.rb http://dl.dropbox.com/u/11034559/aes/aes-lock-scripts/mythtv-lock.rb

Re: Plug-ins for Amahi Energy Saver. No support questions he

Posted: Sat Oct 01, 2011 8:44 am
by jayrock
This script prevents the HDA from suspending if a HandBrake job is going on. Actually the script checks how much CPU is used by HandBrake. If it's more that 25%, the HDA does not suspend.

The script can be easily adapted to check for other processes. If you create any new script based on this (or any other script), please share it here.


To install, please open a root terminal on your hda and type:

Code: Select all

curl -o /usr/share/aes-lock/HandBrake.sh http://dl.dropbox.com/u/11034559/aes/aes-lock-scripts/HandBrake.sh chmod +x /usr/share/aes-lock/HandBrake.sh