xpl-rfxcom

Forum regarding Linux Software and Home Automation Domotica.
Kroonen
Member
Member
Posts: 302
Joined: Mon Oct 01, 2007 6:38 pm
Location: Netherlands

xpl-rfxcom

Post 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
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

xpl-rfxcom

Post 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)
Kroonen
Member
Member
Posts: 302
Joined: Mon Oct 01, 2007 6:38 pm
Location: Netherlands

xpl-rfxcom

Post 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??
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

xpl-rfxcom

Post 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)
Kroonen
Member
Member
Posts: 302
Joined: Mon Oct 01, 2007 6:38 pm
Location: Netherlands

xpl-rfxcom

Post by Kroonen »

Hi,

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

The data is stored in /var/lib/rrd??
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

xpl-rfxcom

Post 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)
Kroonen
Member
Member
Posts: 302
Joined: Mon Oct 01, 2007 6:38 pm
Location: Netherlands

xpl-rfxcom

Post 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)
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

xpl-rfxcom

Post by Snelvuur »

ah, i'll report it to the author.

// Erik (binkey.nl)
Kroonen
Member
Member
Posts: 302
Joined: Mon Oct 01, 2007 6:38 pm
Location: Netherlands

xpl-rfxcom

Post by Kroonen »

addgroup is groupadd, and --system he doesn't understand.

you know the author?? so features and bugs we can discuss here or?
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

xpl-rfxcom

Post 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)
Kroonen
Member
Member
Posts: 302
Joined: Mon Oct 01, 2007 6:38 pm
Location: Netherlands

xpl-rfxcom

Post 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?
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

xpl-rfxcom

Post 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)
Kroonen
Member
Member
Posts: 302
Joined: Mon Oct 01, 2007 6:38 pm
Location: Netherlands

xpl-rfxcom

Post 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?
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

xpl-rfxcom

Post 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)
Kroonen
Member
Member
Posts: 302
Joined: Mon Oct 01, 2007 6:38 pm
Location: Netherlands

xpl-rfxcom

Post 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?
Post Reply

Return to “Linux Forum”