magellannh / rtl-wx Goto Github PK
View Code? Open in Web Editor NEWRTL-Wx logs data from 433Mhz wireless sensors using an RTL-SDR dongle. The Wiki has some screenshots of the results
License: GNU General Public License v2.0
RTL-Wx logs data from 433Mhz wireless sensors using an RTL-SDR dongle. The Wiki has some screenshots of the results
License: GNU General Public License v2.0
Keep getting this compile error:
gcc -O3 -Wall -Wextra -Wno-unused -Wsign-compare -g3 -fvisibility=hidden -o rtl-wx obj/rtl-wx.o obj/TagProc.o obj/DataStore.o obj/ConfProc.o obj/Scheduler.o obj/Util.o obj/rtl-433fm-demod.o obj/rtl-433fm-decode.o obj/getopt.o -Wl,-Bstatic -lconvenience_static -lrtlsdr -Wl,-Bdynamic -lpthread -lusb-1.0 -lm -L. -Llibrtlsdr/build/src
/usr/bin/ld: cannot find -lconvenience_static
collect2: ld returned 1 exit status
Makefile:69: recipe for target 'rtl-wx' failed
Any idea how this can be fixed?
Thanks
Hello magellannh,
I wanted to be able to capture the signal sent by my Owl energy meter using RTL-SDR for processing on my PC. After doing some research it seems like the Owl energy meter uses the Oregon scientific protocol. After some more research I found your project and it did exactly what I wanted. After testing the software I found a problem and I hope that you would be able to tell me how to fix this.
I tested rtl-wx in server mode, but it did not pick up any data transmitted by my unit. I then ran rtl-wx in standalone mode and I saw error messages printed to the console (OWLCM119 Error). The calculated values seem to be out of range.
I located the piece of code in rtl-433fm-decode.c where a check is performed to ensure that the current and total_current values are in range.
I also added some code at that point to dump the msg and bb buffers to the console in an attemt to see what is going on:
unsigned int current = get_owl_current(msg);
double total_current = get_owl_total_current(msg);
if ((current > 0) && (total_current > 0) && (current < 1000) && (total_current < 10000)) {
if (owl_msg_ok_callback != NULL) {
owl_msg_ok_callback(msg, 13, (float) current, total_current);
return 1;
} else
//fprintf(stderr, "Power: %d (watts) Total: %7.4f (KWH)\n", current, total_current);
fprintf(stderr, " Energy Sensor OWLCM119 Channel %d Current: %d (watts) Total: %7.4f (KWH)\n", msg[0] >> 4, current, total_current);
} else {
fprintf(stderr, "Message: ");
for (i = 0; i < BITBUF_COLS; i++) fprintf(stderr, "%02x, ", msg[i]);
fprintf(stderr, "\n");
fprintf(stderr, " Raw: ");
for (i = 0; i < BITBUF_COLS; i++) fprintf(stderr, "%02x,", bb[0][i]);
fprintf(stderr, "\n\n");
if (owl_msg_error_callback != NULL) owl_msg_error_callback(msg, 13, (float) current, total_current);
}
This output was produced:
Message: 19, 84, 01, a0, 50, c9, 00, 90, 04, 4e, b0, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00,
Raw: 00,00,00,58,91,20,85,0a,03,90,09,00,22,7d,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
At that time my meter displayed 0.483 KW.
Here is another example:
Message: 19, 84, 01, a0, 60, c0, 00, 00, 03, 3c, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00,
Raw: 00,00,00,58,91,20,85,06,03,00,00,00,cc,30,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
This time the meter displayed 0.515KW.
I'm having a hard time trying to figure out how to process the buffer to get the consumed kilowatts. I have researched this a bit, but I could not find any way yet to successfully produce a value close to 0.483KW or 0.515KW.
I have the following meter: http://theowl.co.za/catalogsearch/result/index/?mode=grid&q=SE16 (I think it uses the CM119 sensor).
Do you perhaps know how to make sense of the msg buffer or raw buffer (bb) data?
Hello,
I made my own THN132N copy with an arduino and a ds18b20
As RTL-433 last release can reconize Oregon THN132N, is this possible to include it on RTL-WX ?
I try to do it my self but i have to say that i'm really not a programmer...
Hello
built from sources for Raspberry Pi
with protocol rubicson
/* init protocols somewhat ok */
register_protocol(demod, &rubicson, samp_rate);
i got a error :
gcc -O3 -c -o obj/rtl-433fm-demod.o rtl-433fm-demod.c -I. -I/usr/include/libusb-1.0 -Ilibrtlsdr/include
rtl-433fm-demod.c:63:25: fatal error: convenience.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
Makefile:58: recipe for target 'obj/rtl-433fm-demod.o' failed
make: *** [obj/rtl-433fm-demod.o] Error 1
maybe missing file : convenience.h ?
thanks for any help
Hi,running
./rtl-wx -s
in bash, here what I have on stdout, a bit messy with the EOL :
Ready to gather weather sensor data
<<Hit 'h' for help, any key for status, ESC to quit>> Found 1 device(s): 0: Realtek, RTL2838UHIDIR, SN: 00000001 Using device 0: Generic RTL2832U OEM Found Rafael Micro R820T tuner Tuner gain set to automatic. Tuner error set to 56 ppm. Tuned to 433925000 Hz. Oversampling input by: 9x. Oversampling output by: 1x. Buffer size: 16384kB 7.59ms Exact sample rate is: 1080000.025749 Hz Sampling at 1080000 S/s. Output at 120000 Hz. Registering protocol[01] Oregon Scientific Weather Sensor
Hello
I got a Z31743A-tx temp sensor from Auriol (Lidl brand)
Batilan Integrate it to RTL-WX (https://github.com/Batilan/rtl-wx/tree/auriol-Z31743a-TX)
Please can you put it on the last version of RTL-WX ?
Executing "wget https://github.com/magellannh/rtl-wx/archive/v0.1.0.tar.gz" resulted in a 404 error.
Dave
rtl_wx looks very interesting. I have LaCrosse sensors. There were two requests to add LaCrosse sensor support to rtl-433. The protocol has been decoded a couple of times. rtl-433 -a gives a useful dump of the simple OOK. However all the bits are inverted.
See
Any help appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.