{"id":117,"date":"2020-01-04T07:16:20","date_gmt":"2020-01-04T15:16:20","guid":{"rendered":"https:\/\/andylittle.us\/?page_id=117"},"modified":"2020-01-04T07:16:20","modified_gmt":"2020-01-04T15:16:20","slug":"rtl_433-mqtt-kafka-elastic-kibana","status":"publish","type":"page","link":"https:\/\/andylittle.us\/?page_id=117","title":{"rendered":"rtl_433 mqtt kafka elastic kibana"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">rtl_433 install<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>root@orangepi0-1:~# apt update\nroot@orangepi0-1:~# apt upgrade\nroot@orangepi0-1:~# apt install libtool libusb-1.0-0-dev librtlsdr-dev rtl-sdr build-essential autoconf cmake pkg-config git screen rtl-433\nroot@orangepi0-1:~# git clone git@github.com:merbanan\/rtl_433.git\nroot@orangepi0-1:~# cd rtl_433\/\nroot@orangepi0-1:~# build\nroot@orangepi0-1:~# cd build\/\nroot@orangepi0-1:~# cmake ..\nroot@orangepi0-1:~# make\nroot@orangepi0-1:~# make install<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Start sending mqtt messages in screen<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>root@orangepi0-1:~# screen -t \"rtl_433 mqtt\"\nroot@orangepi0-1:~# rtl_433 -F \"mqtt:\/\/192.168.1.212:1883,user=x,pass=xxx\"\nrtl_433 version 19.08-8-g3d36258 branch master at 201909091215 inputs file rtl_tcp RTL-SDR\nUse -h for usage help and see https:\/\/triq.org\/ for documentation.\nTrying conf file at \"rtl_433.conf\"...\nTrying conf file at \"\/root\/.config\/rtl_433\/rtl_433.conf\"...\nTrying conf file at \"\/usr\/local\/etc\/rtl_433\/rtl_433.conf\"...\nTrying conf file at \"\/etc\/rtl_433\/rtl_433.conf\"...\nPublishing MQTT data to 192.168.1.212 port 1883\nPublishing device info to MQTT topic \"rtl_433\/orangepi0-1\/devices[\/type][\/model][\/subtype][\/channel][\/id]\".\nPublishing events info to MQTT topic \"rtl_433\/orangepi0-1\/events\".\nPublishing states info to MQTT topic \"rtl_433\/orangepi0-1\/states\".\n\n        Consider using \"-M newmodel\" to transition to new model keys. This will become the default someday.\n        A table of changes and discussion is at https:\/\/github.com\/merbanan\/rtl_433\/pull\/986.\n\nRegistered 106 out of 136 device decoding protocols [ 1-4 8 11-12 15-17 19-21 23 25-26 29-36 38-60 63 67-71 73-100 102-103 108-116 119 121 124-128 131-136 ]\nDetached kernel driver\nFound Rafael Micro R820T tuner\nExact sample rate is: 250000.000414 Hz\n[R82XX] PLL not locked!\nSample rate set to 250000 S\/s.\nTuner gain set to Auto.\nTuned to 433.920MHz.\nAllocating 15 zero-copy buffers\nMQTT Connected...\nMQTT Connection established.<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Test Connection, subscribe to topic <\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>root@raspberrypi3-2:~# mosquitto_sub -h 192.168.1.xxx -u xxxx -P  xxxx -v -t rtl_433\/#\nrtl_433\/orangepi0-1\/events {\"time\":\"2020-01-04 07:12:35\",\"model\":\"Acurite Lightning 6045M\",\"id\":15431,\"channel\":\"A\",\"battery\":\"LOW\",\"temperature_F\":45.3,\"humidity\":99,\"strike_count\":127,\"storm_dist\":24,\"active\":1,\"rfi\":0,\"ussb1\":0,\"exception\":0,\"raw_msg\":\"fc47af63cf21ff185c\"}\nrtl_433\/orangepi0-1\/devices\/Acurite_Lightning_6045M\/A\/15431\/time 2020-01-04 07:12:35\nrtl_433\/orangepi0-1\/devices\/Acurite_Lightning_6045M\/A\/15431\/id 15431\nrtl_433\/orangepi0-1\/devices\/Acurite_Lightning_6045M\/A\/15431\/channel A\nrtl_433\/orangepi0-1\/devices\/Acurite_Lightning_6045M\/A\/15431\/battery LOW\nrtl_433\/orangepi0-1\/devices\/Acurite_Lightning_6045M\/A\/15431\/temperature_F 45.299999\nrtl_433\/orangepi0-1\/devices\/Acurite_Lightning_6045M\/A\/15431\/humidity 99\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>rtl_433 install Start sending mqtt messages in screen Test Connection, subscribe to topic<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-117","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/andylittle.us\/index.php?rest_route=\/wp\/v2\/pages\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andylittle.us\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/andylittle.us\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/andylittle.us\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/andylittle.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=117"}],"version-history":[{"count":2,"href":"https:\/\/andylittle.us\/index.php?rest_route=\/wp\/v2\/pages\/117\/revisions"}],"predecessor-version":[{"id":119,"href":"https:\/\/andylittle.us\/index.php?rest_route=\/wp\/v2\/pages\/117\/revisions\/119"}],"wp:attachment":[{"href":"https:\/\/andylittle.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}