xpl-rfxcom

Forum regarding Linux Software and Home Automation Domotica.

xpl-rfxcom

Postby Kroonen » Sat Nov 03, 2007 7:31 pm

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
Kroonen
Member
Member
 
Posts: 302
Joined: October 2007
Location: Netherlands

xpl-rfxcom

Postby Snelvuur » Sat Nov 03, 2007 8:33 pm

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)
User avatar
Snelvuur
Forum Moderator
Forum Moderator
 
Posts: 3155
Joined: April 2007
Location: Netherlands

xpl-rfxcom

Postby Kroonen » Sat Nov 03, 2007 9:15 pm

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??
Kroonen
Member
Member
 
Posts: 302
Joined: October 2007
Location: Netherlands

xpl-rfxcom

Postby Snelvuur » Sat Nov 03, 2007 9:28 pm

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)
User avatar
Snelvuur
Forum Moderator
Forum Moderator
 
Posts: 3155
Joined: April 2007
Location: Netherlands

xpl-rfxcom

Postby Kroonen » Sat Nov 03, 2007 10:53 pm

Hi,

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

The data is stored in /var/lib/rrd??
Kroonen
Member
Member
 
Posts: 302
Joined: October 2007
Location: Netherlands

xpl-rfxcom

Postby Snelvuur » Sat Nov 03, 2007 11:18 pm

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)
User avatar
Snelvuur
Forum Moderator
Forum Moderator
 
Posts: 3155
Joined: April 2007
Location: Netherlands

xpl-rfxcom

Postby Kroonen » Sun Nov 04, 2007 3:39 pm

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)
Kroonen
Member
Member
 
Posts: 302
Joined: October 2007
Location: Netherlands

xpl-rfxcom

Postby Snelvuur » Sun Nov 04, 2007 3:46 pm

ah, i'll report it to the author.

// Erik (binkey.nl)
User avatar
Snelvuur
Forum Moderator
Forum Moderator
 
Posts: 3155
Joined: April 2007
Location: Netherlands

xpl-rfxcom

Postby Kroonen » Sun Nov 04, 2007 4:24 pm

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

you know the author?? so features and bugs we can discuss here or?
Kroonen
Member
Member
 
Posts: 302
Joined: October 2007
Location: Netherlands

xpl-rfxcom

Postby Snelvuur » Sun Nov 04, 2007 4:45 pm

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)
User avatar
Snelvuur
Forum Moderator
Forum Moderator
 
Posts: 3155
Joined: April 2007
Location: Netherlands

xpl-rfxcom

Postby Kroonen » Tue Nov 06, 2007 7:36 pm

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?
Kroonen
Member
Member
 
Posts: 302
Joined: October 2007
Location: Netherlands

xpl-rfxcom

Postby Snelvuur » Tue Nov 06, 2007 10:18 pm

reboot? you are using linux right? I use sv to keep my things running (see wiki.binkey.nl for info)

// Erik (binkey.nl)
User avatar
Snelvuur
Forum Moderator
Forum Moderator
 
Posts: 3155
Joined: April 2007
Location: Netherlands

xpl-rfxcom

Postby Kroonen » Thu Nov 15, 2007 10:54 am

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?
Kroonen
Member
Member
 
Posts: 302
Joined: October 2007
Location: Netherlands

xpl-rfxcom

Postby Snelvuur » Thu Nov 15, 2007 1:14 pm

Read 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)
User avatar
Snelvuur
Forum Moderator
Forum Moderator
 
Posts: 3155
Joined: April 2007
Location: Netherlands

xpl-rfxcom

Postby Kroonen » Sun Nov 18, 2007 11:08 pm

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?
Kroonen
Member
Member
 
Posts: 302
Joined: October 2007
Location: Netherlands

Next

Return to Linux Forum

Who is online

Users browsing this forum: No registered users and 1 guest