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

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

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

Postby jayrock » Tue Sep 06, 2011 10:54 pm

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

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

Sabnzbd

Postby jayrock » Tue Sep 06, 2011 11:05 pm

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.
Last edited by jayrock on Thu Sep 08, 2011 10:12 pm, edited 3 times in total.

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

Greyhole

Postby jayrock » Tue Sep 06, 2011 11:08 pm

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.

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

MythTV

Postby jayrock » Tue Sep 20, 2011 1:47 pm

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

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

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

Postby jayrock » Sat Oct 01, 2011 8:44 am

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

Who is online

Users browsing this forum: No registered users and 43 guests