Page 1 of 1

RFX Power usage

Posted: Mon Aug 30, 2010 9:47 pm
by mister_e007
Hello,

I configurerd a rfxcom power module (3 fase) with Domotiga 0.1.184.
The modules are working fine but i only get the cummulative totals of the power usage.
I only get a value on field "value1".

On the power tab i get nothing on "usage" and "usage/hour" only on "Power"

Did i misconfigure or . . .

After a while i also get an error message saying "to many files open in rrd" and the program stops.

Can anyone help me ?

thankz in advance.

Re: RFX Power usage

Posted: Tue Aug 31, 2010 4:46 pm
by RDNZL
3 phase modules are not supported yet, simply because only 1 gas, power and water meter are implemented (I only have one table in db).

The idea is to build support to store all device value in a table, and refer to them, so all devices can store it's values regardless of how many you have.

When you configure 3 rfxcom pwr devices, you get an error in your log thats it's not supported.

Code: Select all

IF rResult.Count > 1 THEN Main.WriteDebugLog(("[Energy] More then one '") & sMeter & ("' device found, not supported!"))
The rrd error is unrelated and new, what did you set the rrdtool poll time to?
Can you post more info, and the exact error message (and/or part of logfile)

you can also mail them to me via contact button on domotiga.nl

Regards,
Ron

Re: RFX Power usage

Posted: Tue Aug 31, 2010 6:53 pm
by mister_e007
Thankz Ron,

The problems with rdd seems to be apear when the autorefresh is turned on.
My devices are sending (for testing) every 30 seconds.

I wil tomorrow receive my plugwise devices. After that i'll see if i can create a domotiga module witch can
hold al the energy modules. Gambas is new for me but the original code is a good start. So i dont know if
this is realistic. I'll see.

thankz,

Re: RFX Power usage

Posted: Thu Sep 16, 2010 8:02 am
by mister_e007
I still have the problem with the error on rrd,

I use the latetest version of Domotiga, but the problem was also present in earlyer versions.
After a while of working Domotiga i get the error:

"This Application has raised an unexpected error and must abort.
[42] System error. Too many open files.
Serverstats.UpdateRRDs.88"


I appeard on the windows "Climate"
The tab Refresh and Overview where selected.

Re: RFX Power usage

Posted: Thu Sep 16, 2010 8:33 am
by RDNZL
Hi Mister...

because of the facts it's a system error I need more info on the things around DomotiGa itself.

Which Linux Distro and version are you using?
32 or 64 Bits OS? Uptodate?

Which Gambas version are you running?
I suggest upgrading to the latest revision via svn.

Which version of rrdtool are you running? (rrdtool -h)

Run DomotiGa for a while (perhaps around the time it gets into trouble), then find it's process ID
$ ps -aux|grep gb, find number in front of DomotiGa process and do:
$ lsof |grep <PID>

Code: Select all

ron       1300  0.3  1.4  42000 14448 ?        S    Sep15   3:09 /usr/local/bin/gbx2 -g -f /home/ron/domotiga/DomotiGa --
$ lsof |grep 1300
Mail output pls.

Also from:
Some more stats, give output of (via e-mail):
$ cat /proc/sys/fs/file-max
$ cat /proc/sys/fs/file-nr
(mail both outputs before starting DomotiGa, and after running it for a substantial time)

Can you make a backup of your database, and sent the file via private e-mail?
(You can do this via DomotiGa Menu Tools -> Database Admin -> Backup)
This way I can check if it has to do with amount of devices and/or certain settings.