Page 1 of 2

xpl-rfxcom

Posted: Sat Nov 03, 2007 8:31 pm
by Kroonen
Hi

I;m using xpl-rfxcom for reading out some x10 and oregon sensors.

Nog i wanto to put it in a rrd database (oregon sensors) and rrd graph. With other sensors i have it works, ds18s20 with digitemp, see www.kroonen.eu

any help how to get it with linux working. Sample output shown. Does it work with xpl-rrd.

xpl-trig/sensor.basic: bnz-rfxcom.kroonen -> * - thgr228n.ee[temp]=10.8
xpl-trig/sensor.basic: bnz-rfxcom.kroonen -> * - thgr228n.ee[humidity]=94
xpl-trig/sensor.basic: bnz-rfxcom.kroonen -> * - thgr228n.ee[temp]=10.8
xpl-trig/sensor.basic: bnz-rfxcom.kroonen -> * - thgr228n.ee[humidity]=94
xpl-trig/sensor.basic: bnz-rfxcom.kroonen -> * - thgr228n.ee[temp]=10.8
xpl-trig/sensor.basic: bnz-rfxcom.kroonen -> * - thgr228n.ee[humidity]=94
xpl-trig/x10.basic: bnz-rfxcom.kroonen -> * - on k4
xpl-trig/x10.basic: bnz-rfxcom.kroonen -> * - off k4
xpl-trig/x10.basic: bnz-rfxcom.kroonen -> * - on k2
xpl-trig/x10.basic: bnz-rfxcom.kroonen -> * - off k2
xpl-trig/x10.basic: bnz-rfxcom.kroonen -> * - on k2
xpl-trig/x10.basic: bnz-rfxcom.kroonen -> * - dim k2
xpl-trig/x10.basic: bnz-rfxcom.kroonen -> * - dim k2
xpl-trig/x10.basic: bnz-rfxcom.kroonen -> * - dim k2
xpl-trig/sensor.basic: bnz-rfxcom.kroonen -> * - thgr228n.ee[temp]=10.8
xpl-trig/sensor.basic: bnz-rfxcom.kroonen -> * - thgr228n.ee[humidity]=94

xpl-rfxcom

Posted: Sat Nov 03, 2007 9:33 pm
by Snelvuur
xpl-rrd will create these graphs for temparature and such automaticly. i have that running too, didn't change anything for it and it went on creating. Try it, let me know if you have issues with xpl-rrd.

// Erik (binkey.nl)

xpl-rfxcom

Posted: Sat Nov 03, 2007 10:15 pm
by Kroonen
Erik,

Is start first, xpl-rfxcom /dev/ttyUSB2 &
that I start xpl-rrd /temp/rrd

than is see /termp/rrd/state.db
it's created but it doesn't grow, of date modified??

xpl-rfxcom

Posted: Sat Nov 03, 2007 10:28 pm
by Snelvuur
did you give it some time? i have the following:

-rw-r--r-- 1 xplperl xplperl 12288 2007-11-03 21:22 state.db
drwxr-xr-x 2 xplperl xplperl 4096 2007-09-02 12:38 thgr228n.5a
drwxr-xr-x 2 xplperl xplperl 4096 2007-09-02 12:38 thgr228n.8c
drwxr-xr-x 2 xplperl xplperl 4096 2007-09-02 12:38 thgr228n.b4
drwxr-xr-x 2 xplperl xplperl 4096 2007-09-02 12:38 thwr288a.8e

and my graphs are in /var/www/rrd (standard i believe) so make sure thats there..

// Erik (binkey.nl)

xpl-rfxcom

Posted: Sat Nov 03, 2007 11:53 pm
by Kroonen
Hi,

you did xpl-perl-setup?? there are users as i can see xplperl..

The data is stored in /var/lib/rrd??

xpl-rfxcom

Posted: Sun Nov 04, 2007 12:18 am
by Snelvuur
yes, data is in /var/lib/rrd and the webpages should come to /var/www/rrd, didn't change the default but thats possible too. I also ran the xpl-perl-setup, but it should not be much different from running yourself.

// Erik (binkey.nl)

xpl-rfxcom

Posted: Sun Nov 04, 2007 4:39 pm
by Kroonen
Well I found the problems. The script is made for debian users, and as fedora user, addgroup doesn't work, so the user accounts groups went wrong while creating. Als securit on dirs was not working ok. No the xplperl user is created, groups and security to these dirs is set.

so if you have problems reader the setup script (xpl-perl-setup)

xpl-rfxcom

Posted: Sun Nov 04, 2007 4:46 pm
by Snelvuur
ah, i'll report it to the author.

// Erik (binkey.nl)

xpl-rfxcom

Posted: Sun Nov 04, 2007 5:24 pm
by Kroonen
addgroup is groupadd, and --system he doesn't understand.

you know the author?? so features and bugs we can discuss here or?

xpl-rfxcom

Posted: Sun Nov 04, 2007 5:45 pm
by Snelvuur
on this forum, there is a person called "beanz" he wrote the xpl-perl part. i'll refer him to this thread so he can check.

// Erik (binkey.nl)

xpl-rfxcom

Posted: Tue Nov 06, 2007 8:36 pm
by Kroonen
Erik,

I have it working but sometims it looks like it hangs. The dat is not chaning sometimes for couple hours, sometims to get it back working i must reboot. Check op http://www.kroonen.eu/temp2

Maybe I have to change the channel of my oregon thgr228n?

xpl-rfxcom

Posted: Tue Nov 06, 2007 11:18 pm
by Snelvuur
reboot? you are using linux right? I use sv to keep my things running (see wiki.binkey.nl for info)

// Erik (binkey.nl)

xpl-rfxcom

Posted: Thu Nov 15, 2007 11:54 am
by Kroonen
Well it now works ok.

How do i get with a tool the latest value, for example from a sensor.

Graphs it is no problem, but i want it without rrdgraph.

any ideas?

xpl-rfxcom

Posted: Thu Nov 15, 2007 2:14 pm
by Snelvuur
Read http://www.domoticaforum.eu/topic.asp?TOPIC_ID=464 it has more information.

The best thing to do, is to install zenah. This can control your lights, although it might be tricky to install in the first place. But you can also create rules in zenah so that it will keep a record of the temperature alone, so it will speed up the graphs when creating it. The example shown in the above topic will work, but not really fast. If you check www.binkey.nl and then sensors, you can see that it takes some time before they all appear.

If you go for the zenah approach, let me know how it goes all. Feedback is welcome so i can send it to the author or fix it at the wiki.binkey.nl where i try to keep everything clear.

// Erik (binkey.nl)

xpl-rfxcom

Posted: Mon Nov 19, 2007 12:08 am
by Kroonen
Erik Binkey

I like the graphs of the sensors. Wat kind of tool are making the grpahs,, I only know rrdtool, en gnuplot??. Do you store the sensors in a mysql database?