{"id":468,"date":"2019-09-25T20:18:22","date_gmt":"2019-09-25T20:18:22","guid":{"rendered":"http:\/\/www.n4n.us\/wordpress\/?p=468"},"modified":"2019-10-14T13:16:42","modified_gmt":"2019-10-14T13:16:42","slug":"rtl_433-mhz","status":"publish","type":"post","link":"https:\/\/www.n4n.us\/wordpress\/?p=468","title":{"rendered":"rtl_433 mhz"},"content":{"rendered":"\n<p>One of the most difficult problems I&#8217;ve attempted to resolve in the last few years, is how to capture and record (into mysql database) data received from 433mhz sensors..<\/p>\n\n\n\n<p>rtl_433 -M utc -F json -G<\/p>\n\n\n\n<p style=\"font-size:10px\">{&#8220;time&#8221; : &#8220;2019-09-25 19:11:54&#8221;, &#8220;model&#8221; : &#8220;Acurite tower sensor&#8221;, &#8220;id&#8221; : 2766, &#8220;sensor_id&#8221; : 2766, &#8220;channel&#8221; : &#8220;A&#8221;, &#8220;temperature_C&#8221; : 22.700, &#8220;humidity&#8221; : 44, &#8220;battery_low&#8221; : 0}<\/p>\n\n\n\n<p style=\"font-size:10px\">{&#8220;time&#8221; : &#8220;2019-09-25 19:12:01&#8221;, &#8220;model&#8221; : &#8220;Acurite Lightning 6045M&#8221;, &#8220;id&#8221; : 253, &#8220;channel&#8221; : &#8220;A&#8221;, &#8220;temperature_F&#8221; : 72.100, &#8220;humidity&#8221; : 41, &#8220;strike_count&#8221; : 26, &#8220;storm_dist&#8221; : 27, &#8220;active&#8221; : 1, &#8220;rfi&#8221; : 0, &#8220;ussb1&#8221; : 0, &#8220;battery&#8221; : &#8220;OK&#8221;, &#8220;exception&#8221; : 0, &#8220;raw_msg&#8221; : &#8220;c0fd6fa9d12d9a1b88&#8221;}<\/p>\n\n\n\n<p style=\"font-size:10px\">{&#8220;time&#8221; : &#8220;2019-09-25 19:12:04&#8221;, &#8220;model&#8221; : &#8220;Smoke detector GS 558&#8221;, &#8220;id&#8221; : 8078, &#8220;unit&#8221; : 14, &#8220;learn&#8221; : 0, &#8220;code&#8221; : &#8220;63f1ce&#8221;}<\/p>\n\n\n\n<p>Trying to parse and collect the data using LiveCode has proven to be difficult. First problem with rtl receiver, is it isn&#8217;t seen as a com port, or other readable device. It is seen as its own terminal device. I&#8217;ve tried piping, didn&#8217;t work. Basically everything I&#8217;ve tried, hasn&#8217;t worked.<\/p>\n\n\n\n<p>The best advice I have received to is send data out to flat file, then read the file. Which basically mean lots of file activity and parsing.  Unsure if I am willing to do that for what should be a simple task. That would cause a great deal of read\/write activity on the SD drives and possibly wear out the drive faster.<\/p>\n\n\n\n<p>Heard of a new program that outputs the data to files specific to the device id, trying to find it.  Will keep everyone informed.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the most difficult problems I&#8217;ve attempted to resolve in the last few years, is how to capture and record (into mysql database) data received from 433mhz sensors.. rtl_433 -M utc -F json -G {&#8220;time&#8221; : &#8220;2019-09-25 19:11:54&#8221;, &#8220;model&#8221; : &#8220;Acurite tower sensor&#8221;, &#8220;id&#8221; : 2766, &#8220;sensor_id&#8221; : 2766, &#8220;channel&#8221; : &#8220;A&#8221;, &#8220;temperature_C&#8221; : &hellip; <a href=\"https:\/\/www.n4n.us\/wordpress\/?p=468\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;rtl_433 mhz&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,32],"tags":[],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-livecode","category-programming"],"_links":{"self":[{"href":"https:\/\/www.n4n.us\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.n4n.us\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.n4n.us\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.n4n.us\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.n4n.us\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=468"}],"version-history":[{"count":2,"href":"https:\/\/www.n4n.us\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/468\/revisions"}],"predecessor-version":[{"id":476,"href":"https:\/\/www.n4n.us\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/468\/revisions\/476"}],"wp:attachment":[{"href":"https:\/\/www.n4n.us\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.n4n.us\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.n4n.us\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}