Page 1 of 2

rfxcom pwr module, adding a sensor

Posted: Mon Nov 24, 2008 4:38 pm
by francisb
Hi, wauw great peace of software, realy booming.

But now starts the testing and i found a problem, when i try to add another sensor thats on my rfxcom pwr module i get this error message. (see attachement) Is this a bug or am i doing something wrong?

And after that its closes the domotiga program.
When i start it again and i go to energy, ill get another error (see attachement)
Then the program shutdown again.

groeten,

Francis

rfxcom pwr module, adding a sensor

Posted: Mon Nov 24, 2008 4:55 pm
by Snelvuur
no attachments here (yet?)

// Erik (binkey.nl)

rfxcom pwr module, adding a sensor

Posted: Mon Nov 24, 2008 5:03 pm
by RDNZL
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by francisb</i>
<br />Hi, wauw great peace of software, realy booming.

But now starts the testing and i found a problem, when i try to add another sensor thats on my rfxcom pwr module i get this error message. (see attachement) Is this a bug or am i doing something wrong?

And after that its closes the domotiga program.
When i start it again and i go to energy, ill get another error (see attachement)
Then the program shutdown again.

groeten,

Francis
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">It could be that I only support 1 sensor, or not yours, I still don't know the difference between RFXPwr and RFXMeter of my head, and I'm sure that I need to add more error checking... [:o)]
You can add a screenshot by uploading and copy and pasting the url.

Ron.

rfxcom pwr module, adding a sensor

Posted: Mon Nov 24, 2008 6:20 pm
by b_weijenberg
Ron,

The RFXMeter is an RF transmitter with slots for up to 3 RFXPwr or RFXPulse modules.
The RFXPwr is the power metering module using the Current Transformer to measure the power.
The RFXPulse is a pulse metering module using a reflective-optical sensor, photo-sensor or dry-contact.

The RFXPower is an older version comparable with the RFXMeter and an RFXPwr module. This device is measuring in steps of 10Watt while the RFXPwr module measures in steps of 1Watt.

There must be a divide factor in the software for each sensor to calculate the used units (kWh, m3, liters etc)

Bert

rfxcom pwr module, adding a sensor

Posted: Mon Nov 24, 2008 8:46 pm
by francisb
strange i have two attachements attached to the previous post.
Here is another try.

rfxcom pwr module, adding a sensor

Posted: Mon Nov 24, 2008 8:49 pm
by Noel
no attached attachements seen here :-)

<h6>Anyone interested in time travel meet me here last Thursday!!

Download todays latest spoken weather by the WiFi bot (in Dutch) here (MP3).</h6>

rfxcom pwr module, adding a sensor

Posted: Mon Nov 24, 2008 8:56 pm
by francisb
[:(!] what am i doing wrong? oke using Vista instead of Ubuntu.

Image

Image

rfxcom pwr module, adding a sensor

Posted: Mon Nov 24, 2008 9:01 pm
by RDNZL
You have not done anything wrong, it's either an incomplete device entry in the database, or the fact that there are 2 sensors of type rfxpower and my query doesn't catch it correctly.

I will try to see where exactly it goes wrong, and come up with some patching.

Ron.

rfxcom pwr module, adding a sensor

Posted: Wed Nov 26, 2008 10:04 pm
by RDNZL
I have seen a problem with the lastseen field of a new device, it's not filled after creation, so will generate an error in several parts of the program (wanted Float got Null instead)

In Main.DisplaySensors() look form line:

Code: Select all

          ' last seen time
 sText = Replace$(Str$(Format(rDevice!lastseen, "yyyy-mm-dd hh:nn:ss")), Format(Date(), "yyyy-mm-dd") & " ", "")
and change it to:

Code: Select all

 IF rDevice!lastseen THEN sText = Replace$(Str$(Format(rDevice!lastseen, "yyyy-mm-dd hh:nn:ss")), Format(Date(), "yyyy-mm-dd") & " ", "")
If you still get errors e-mail me your devices table:

Code: Select all

mysqldump -u root -p domotiga devices >devices.sql
Regards,
Ron.

rfxcom pwr module, adding a sensor

Posted: Tue Dec 02, 2008 10:37 pm
by francisb
He Ron,

Did you had the change to solve this problem with the logs i send you?

Regards,

Francis

rfxcom pwr module, adding a sensor

Posted: Tue Dec 02, 2008 10:43 pm
by RDNZL
Hi Francis,

Well im currently busy adding RFXPulse modules, so I can distinguish between power, water and gas sensors.

Let you know soon.
Ron.

rfxcom pwr module, adding a sensor

Posted: Tue Dec 02, 2008 10:45 pm
by francisb
great thanks for the fast reply.

rfxcom pwr module, adding a sensor

Posted: Sun Dec 21, 2008 5:28 pm
by francisb
HE Ron

Anyluck with adding rfxcom sensors?

rfxcom pwr module, adding a sensor

Posted: Tue Dec 30, 2008 11:33 pm
by RDNZL
Hi Francis,

I have also added support for logging the usage of RFXPulse gas and water modules now.

Please update your install with svn, and run mysql -u root -p <upgrade2.sql to update your database.

Let me know if it works ok, and if readings are correct.

Make sure devicetype/module of your entered device is type RFXPulse Gas and enable RRDTool graphing for it with Value2 datasource name m3 and type GAUGE.

Regard,
Ron.

rfxcom pwr module, adding a sensor

Posted: Tue Dec 30, 2008 11:44 pm
by Digit
Hi Ron,

Keep in mind that RFXPulse modules can be used for anything that can be counted; not just power, gas and water.