CLOSED: Amahi Energy Saver

bellamatt
Posts: 57
Joined: Wed Jan 05, 2011 5:38 am

Re: Amahi Energy Saver

Postby bellamatt » Sun Feb 27, 2011 12:23 am

I really like the idea of this app. I'm hesitant to try though - I assume that suspending the HDA also stops the DHCP server, which would mean that none of my devices could connect to the internet while the HDA is down. Since I have a VOIP phone, I'm guessing that if the HDA is suspended my phoneline will also be down. Any thoughts? I could make it work by using the router DHCP server but I think this will mess up all the shares I've set up.

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

Re: Amahi Energy Saver

Postby jayrock » Sun Feb 27, 2011 2:29 am

Hello bellamatt,

I don't think it will mess up your shares. I suggest to set up your network so set it uses the router's DHCP server. That shouldn't be a problem if you create a static DHCP lease for your HDA.

/jayrock

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

Internal calendar needed?

Postby jayrock » Sun Feb 27, 2011 10:15 am

Hello,

since the integration for the Amahi inbuilt calendar server works pretty well I was wondering if I should stop supporting the standalone calendar function (where the calendar events are set via CLI and handled by Amahi Energy Saver alone).

To be clear, these are the commands I would like tor remove:

Code: Select all

​./aes.rb --showcalendar​ ​./aes.rb --addcalendar​​
... and the "internal" option in

Code: Select all

​./aes.rb --calendar​

I never got any questions on the standalone calendar, therefore I *assume* it's not being used. If you want me to keep the standalone calendar function is, please shout!

/jayrock

stoehrli
Posts: 3
Joined: Thu Mar 03, 2011 2:07 am

Re: Amahi Energy Saver

Postby stoehrli » Thu Mar 03, 2011 2:09 am

Hi, I installed aes on fedora 14, but i get an error

[root@amahi aes]# ​./aes.rb --shownetworkhosts
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- net/ping/icmp (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./aes.rb:26

How can I fix this?

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

Re: Amahi Energy Saver

Postby jayrock » Thu Mar 03, 2011 2:50 am

Hi, I installed aes on fedora 14, but i get an error

[root@amahi aes]# ​./aes.rb --shownetworkhosts
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- net/ping/icmp (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./aes.rb:26

How can I fix this?
Hi stoehrli

seems like you are missing some files which should be in the installation package.

I assume you installed version 0.4.0.0 - please confirm.

Did you run the install script? - Please confirm

Please run these commands and fpaste the output:

Code: Select all

cd /usr/share/aes ls -l ls -l net ls -l net/ping
Best regards,
jayrock

stoehrli
Posts: 3
Joined: Thu Mar 03, 2011 2:07 am

Re: Amahi Energy Saver

Postby stoehrli » Thu Mar 03, 2011 3:34 am

I assume you installed version 0.4.0.0
- yes i did
Did you run the install script?
- yes - no errors
ls -l
[root@amahi aes]# ls -l
insgesamt 56
-rwxr-xr-x 1 root root 18973 3. Mär 10:03 aes.rb
-rw-r--r-- 1 root root 6964 3. Mär 10:03 calendar.rb
-rw-r--r-- 1 root root 3556 3. Mär 10:03 config.rb
-rw-r--r-- 1 root root 5077 3. Mär 10:03 energy-logger.rb
-rw-r--r-- 1 root root 4179 3. Mär 10:03 icalendar-parser.rb
-rw-r--r-- 1 root root 4883 3. Mär 10:03 monitoredhost.rb
ls -l net
no such file or folder

I manually did copy all files from the install driectory /lib/net/ping to /usr/share/aes/net/ping
and now when the service starts I have this message

./aes.rb:210:in `sleep': can't convert String into time interval (TypeError)
from ./aes.rb:210

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

Re: Amahi Energy Saver

Postby jayrock » Thu Mar 03, 2011 10:36 am

This new error is probably related to an issue that will be solved in the following version. Can you confirm your Fedora and Ruby versions and post your configuration:

Code: Select all

uname -r ruby --version cd /usr/share/aes cat aes-config
I still don't understand why the install didn't work in the first place. Did you install Fedora 14 from scratch or upgrade from F12?

Is this your first installation of Amahi Energy Saver, or did you have a previous version installed?

Thanks for your help,

jayrock

stoehrli
Posts: 3
Joined: Thu Mar 03, 2011 2:07 am

Re: Amahi Energy Saver

Postby stoehrli » Fri Mar 04, 2011 12:32 am

uname -r
2.6.35.11-83.fc14.x86_64
ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]
cat aes-config
---
CheckSqueezeboxes: false
PowerconsumptionOff: "4.5"
PowerconsumptionOn: "50"
UseCalendar: "off"
ShutdownType: mem
Interval: "180"
Did you install Fedora 14 from scratch or upgrade from F12?
Yes I installed Fedora 14 from scratch.
Is this your first installation of Amahi Energy Saver, or did you have a previous version installed?
I had Fedora 12 running aes 0.3.6 without problems.

IceFragmatic
Posts: 5
Joined: Fri Feb 11, 2011 9:40 pm

Re: Amahi Energy Saver

Postby IceFragmatic » Fri Mar 04, 2011 1:44 am

uname -r
2.6.35.11-83.fc14.x86_64
ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]
cat aes-config
---
CheckSqueezeboxes: false
PowerconsumptionOff: "4.5"
PowerconsumptionOn: "50"
UseCalendar: "off"
ShutdownType: mem
Interval: "180"
Did you install Fedora 14 from scratch or upgrade from F12?
Yes I installed Fedora 14 from scratch.
Is this your first installation of Amahi Energy Saver, or did you have a previous version installed?
I had Fedora 12 running aes 0.3.6 without problems.

I am having the same issues. Same setup. New F14 install Amahi 6beta - now on v6

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

Re: Amahi Energy Saver

Postby jayrock » Fri Mar 04, 2011 2:01 am

Hi guys,

ok, got it. Thanks for notifying me about the issue.

As a workaround, edit aes-config and remove the quotation marks in the line defining Interval:

Code: Select all

Interval: 180
The next version, which I will hopefully make available during weekend, will fix this problem.

Cheers,

jayrock

Who is online

Users browsing this forum: No registered users and 66 guests