Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

RFXtrx

Questions and comments specific to a particular plugin should go here.
Post Reply
Pallantir
Posts: 41
Joined: Mon May 14, 2012 6:41 pm

Re: RFXtrx

Post by Pallantir »

Is it possible to filter out certain ID's? It's really not that important to know that my neighbour has 18,3 C in his living room! ;) I see his Oregon Scientific in my log for EventGhost. Or is that just something I have to live with?
mickelin
Experienced User
Posts: 85
Joined: Sun Jan 04, 2009 5:54 pm

Re: RFXtrx

Post by mickelin »

Sure, the id is part of the event string, so if you check the box lower left you will only get the ones you have dragged over to the right and assigned to a macro. You can use the EG Dynamic Webserver to show "your" readings on a webpage.

By the way, 18,3 in the living room? What is he, a polar bear? Brr
Pallantir
Posts: 41
Joined: Mon May 14, 2012 6:41 pm

Re: RFXtrx

Post by Pallantir »

Thanks! Actually 18 C isn't too uncommon amongst younger people in Norway. If you knew the price of power here you'd understand... ;) But it turned out that it wasn't his living room. When I saw in the log that it went down to 12 C last night I understood that it had to be an outdoors thermometer for a weaher station in the area. So that's nice, now I won't have to buy my own for that! ;)

But I still would like to have a webpage with my temperatures, and that leads to a question: I have now set up the EG Websever. Was that the one you meant? I was told in large letters that the Dynamic Webserver was obsolete. I actually tried both, but the Dynamic one didn't show up in the action list for plugins. But since I suck in webdesign, are there any ready made pages to find anywhere, so I can just put in the correct sensor as the trigger?
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post by krambriw »

My recommendation is to search this forum for web sockets. There are several discussions and samples in various threads describing this technology. With web sockets you can have EG to push updates of individual elements on your web page without any need to refresh the complete page.


BestR Walter
Last edited by krambriw on Sun Jun 17, 2012 10:55 am, edited 1 time in total.
mickelin
Experienced User
Posts: 85
Joined: Sun Jan 04, 2009 5:54 pm

Re: RFXtrx

Post by mickelin »

Strange, you would think with all that oil and cold weather you guys would have a nice and cozy living room!Guess you have to keep your "lusekofta" on! :P

Yes, I meant the Web Server plugin, sorry.

Here's what I do:

I have one macro for each of my sensors. The just contain a Python Script looking like this (of course slightly different for each sensor; variable names and such)

import time
eg.event.payload_copy = eg.event.payload
my_data = eg.event.payload_copy.split(' ')

td = my_data[2] #temperature
hd = my_data[6] #humidity
sd = my_data[11] #signal
bd = my_data[13] #battery

timeStamp = str(
time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
)
eg.globals.A6_time = timeStamp
eg.globals.A6_temp = td

As you can see, the script extracts the sensor values from the payload and stores them in global variables. This example is for an Oregon sensor, depending on your sensor you may have to adjust the index values in my_data (just count the number of blank spaces in your log string).

I'm no great web designer either, my web page code just looks like this:

<HTML><HEAD><TITLE>Temperatures</TITLE>
<META HTTP-EQUIV="refresh" content="60">
<body bgcolor=black>
<p style="font-family:arial;font-size:200%;color:white">
A6 Temp: {{eg.globals.A6_time}} {{eg.globals.A6_temp}} <br />
Q3 Temp: {{eg.globals.Q3_time}} {{eg.globals.Q3_temp}} <br />
Outdoor Temp: {{eg.globals.Outside_time}} {{eg.globals.Outside_temp}} <br />
Indoor Temp: {{eg.globals.Inside_time}} {{eg.globals.Inside_temp}} <br />
Pool Temp: {{eg.globals.Pool_time}} {{eg.globals.Pool_temp}} <br /></p>
</body>
</HTML>

Basically just displaying the values in white on a black page and refreshing every minute.

As an aside, the A6 and Q3 are sensors in our Audis. Come wintertime, these values will trigger turning the engine and car heaters on and off.

Hopefully this will get you started. Good luck!

Thanks to Walter for the great plugin! I will try the WebSocket approach when I get some free time.
Pallantir
Posts: 41
Joined: Mon May 14, 2012 6:41 pm

Re: RFXtrx

Post by Pallantir »

Walter, thanks! I will look into that when I get the time, it sounds promising.

Mickelin, thanks! That would probably be the easiest way to get this working for now. I'll see if I can get the thing working for now with your script. I've only done LUA before, but it looks pretty logical.
Pallantir
Posts: 41
Joined: Mon May 14, 2012 6:41 pm

Re: RFXtrx

Post by Pallantir »

Wasn't too difficult, I only had to strip out a bit that I didn't need. :) I now have my sensors on the webserver. But there's one thing I just can't understand: No matter what I name the root file (index.html, index.htm, eventghost.html and so on) I just can't get directly to it. I really want to be able to just write "temperature" in my browser (I have added Temperature as an A host in the server's DNS, so it points to the IP of the VM that runs EventGhost) and get there. For now I have to write temperature/index.html. I know that's outside of the scope of thirs thread, but I'm already a bit off topic... ;) Can somebody please tell me how I do that, then I won't bother the thread with more off topic stuff! Promise. Almost... :lol:


Edit: Never mind that! Suddenly it started working with index.html. Maybe because I restarted EventGhost for another reason? Oh, btw, I wish there was an strike-through option here, that's better than making the wrong text small.
Pallantir
Posts: 41
Joined: Mon May 14, 2012 6:41 pm

Re: RFXtrx

Post by Pallantir »

Me again... ;) One question: Is this plugin not able to receive NEXA codes? I can turn on and off my power plugs from the PC without any problems, but when I try to use the corresponding mini remote that came with the NEXA switches EventGhost is not seeing the signals from the remote. From what the RFXCom home page says it should be able to receive NEXA too. This is the remote and plugs I'm talking about (they are from Sunmatic, but are sold as NEXA):

Image
b_weijenberg
Posts: 27
Joined: Sun Jun 05, 2011 2:27 pm

Re: RFXtrx

Post by b_weijenberg »

This seems to be an ARC type (address code wheels)
Did you test with RFXmngr with the ARC protocol enabled?

The RFXtrx433 hardware version needs to be 1.0 to receive the NEXA AC (learning mode) remotes. Hardware version is displayed in the Get Status response in RFXmngr.
Contact RFXCOM support if you want to have your RFXtrx version changed from 0.0 to 1.0.
Pallantir
Posts: 41
Joined: Mon May 14, 2012 6:41 pm

Re: RFXtrx

Post by Pallantir »

Thanks! I have no idea what just happened now... I tried the RFX manager, and it worked. And when I started up EventGhost I all of a sudden i see the signal there too. I think there's a ghost in the system in addition to EventGhost! Or maybe a gremlin... ;) Anyway, I'm back to happy camper mode! :mrgreen:

Edit: Didn't last long... As soon as I reactivated the other protocols I lost ARC. I guess that's something I have to ask the support team about. :oops:

Edit2: Found it! Disabling Lacrosse (whatever that is) fixed it. I don't think I have any Lacrosse since I don't know what it is, so I think I'm good.
bodiroga
Posts: 4
Joined: Thu Mar 22, 2012 8:07 pm

Re: RFXtrx

Post by bodiroga »

Hi guys!

I'm interested in buying the RFXtrx transceiver with a OWL electric meter and a couple of Oregon Scientific temperature sensors, but before purchasing them, b_weijenberg and Pallantir, if you don't mind, I would like to make to you a couple of questions ;-)

Every how many seconds do the OWL meter and the temperature sensors send information to the transceiver? 5-10-15-30-60 seconds? Have you got any stability problem with Eventghost because of this continuous information? Everything works fine?

Many thanks to both for your help, to krambriw for the awesome job he makes with his plugins and to all the community for all the information and help you provide.

Best regards,

Aitor
Pallantir
Posts: 41
Joined: Mon May 14, 2012 6:41 pm

Re: RFXtrx

Post by Pallantir »

I have no idea about the OWL, but the temp sensors are coming in every 15 seconds or so. No problems there. :)
b_weijenberg
Posts: 27
Joined: Sun Jun 05, 2011 2:27 pm

Re: RFXtrx

Post by b_weijenberg »

Oregon sensors transmit packets about every minute or 2 minutes depending on the the sensor type.
The OWL transmits every minute the total and instant usage but when the power fluctuates and the instant usage has a change it will transmit also.
jaytee
Posts: 8
Joined: Sun Jun 24, 2012 9:52 am

Re: RFXtrx

Post by jaytee »

Does this plugin support messages received from RFXMeter units?

As you can see in the log dump below I can receive my neighbour's wind meter without problems but I cannot see my RFXmeter. What I believe is that '0a71003c20d00005ff7a50' is my RFXmeter, can you recognize the unit type from the message? I keep getting there "Message is incomplete" and "Decodig of message failed".

In RFXmngr software I have no problems reading the RFXmeter.

Regards
/jaytee


11:54:53 RFXtrx.Type: STR918, WGR918 id: 23040 ' direction: W average speed: 1 m/s gust: 2 m/s signal: 6 battery: 100%'
11:54:53 ('Debug Info: ', 16, 34, '1056033a5a000114000c00140000000069')
11:55:12 Decoding of message failed: ['0a', '71', '00', '3c', '20', 'd0', '00', '05', 'ff', '7a', '50']
11:55:12 ('Debug Info: ', 10, 22, '0a71003c20d00005ff7a50')
11:55:21 Message is incomplete: 0 2 00
11:55:21 Message is incomplete: 0 2 00
11:55:21 Message is incomplete: 0 2 00
11:55:50 RFXtrx.Type: STR918, WGR918 id: 23040 ' direction: WNW average speed: 2 m/s gust: 1 m/s signal: 6 battery: 100%'
11:55:50 ('Debug Info: ', 16, 34, '1056033f5a000126001a00100000000069')
11:56:03 RFXtrx.Type: STR918, WGR918 id: 23040 ' direction: W average speed: 2 m/s gust: 1 m/s signal: 6 battery: 100%'
11:56:03 ('Debug Info: ', 16, 34, '105603405a000117001400100000000069')
11:56:17 ('Debug Info: ', 16, 34, '105603415a000104001400100000000069')
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post by krambriw »

Disabling Lacrosse (whatever that is) fixed it
Do you see this also when you try with rfmngr or is it when you try with EG?
Post Reply