{"action":"created","issue":{"url":"https://api.github.com/repos/merbanan/rtl_433/issues/705","repository_url":"https://api.github.com/repos/merbanan/rtl_433","labels_url":"https://api.github.com/repos/merbanan/rtl_433/issues/705/labels{/name}","comments_url":"https://api.github.com/repos/merbanan/rtl_433/issues/705/comments","events_url":"https://api.github.com/repos/merbanan/rtl_433/issues/705/events","html_url":"https://github.com/merbanan/rtl_433/pull/705","id":314780939,"number":705,"title":"got data_make working with the 6045m","user":{"login":"mlfreeman2","id":5781383,"avatar_url":"https://avatars2.githubusercontent.com/u/5781383?v=4","gravatar_id":"","url":"https://api.github.com/users/mlfreeman2","html_url":"https://github.com/mlfreeman2","followers_url":"https://api.github.com/users/mlfreeman2/followers","following_url":"https://api.github.com/users/mlfreeman2/following{/other_user}","gists_url":"https://api.github.com/users/mlfreeman2/gists{/gist_id}","starred_url":"https://api.github.com/users/mlfreeman2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlfreeman2/subscriptions","organizations_url":"https://api.github.com/users/mlfreeman2/orgs","repos_url":"https://api.github.com/users/mlfreeman2/repos","events_url":"https://api.github.com/users/mlfreeman2/events{/privacy}","received_events_url":"https://api.github.com/users/mlfreeman2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-04-16T19:09:17Z","updated_at":"2018-04-21T18:16:59Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/merbanan/rtl_433/pulls/705","html_url":"https://github.com/merbanan/rtl_433/pull/705","diff_url":"https://github.com/merbanan/rtl_433/pull/705.diff","patch_url":"https://github.com/merbanan/rtl_433/pull/705.patch"},"body":"I decided to try to get data_make working.\r\nI didn't change the decoding process at all. \r\n\r\nThe original plain text message is available with debugging turned on.\r\n\r\nIf i have the time I'll try to figure out why the last strike distance differs from my Acurite HD Display and mess with the decoding in another PR.\r\n\r\nHere's a sample of what `-F json` outputs now.\r\n`{\"time\" : \"2018-04-16 19:00:01\", \"model\" : \"Acurite Lightning 6045M\", \"sensor_id\" : 28271, \"channel\" : \"B\", \"temperature_F\" : 64.200, \"humidity\" : 39, \"strike_count\" : 69, \"strike_dist\" : 7}`"},"comment":{"url":"https://api.github.com/repos/merbanan/rtl_433/issues/comments/383317844","html_url":"https://github.com/merbanan/rtl_433/pull/705#issuecomment-383317844","issue_url":"https://api.github.com/repos/merbanan/rtl_433/issues/705","id":383317844,"user":{"login":"mlfreeman2","id":5781383,"avatar_url":"https://avatars2.githubusercontent.com/u/5781383?v=4","gravatar_id":"","url":"https://api.github.com/users/mlfreeman2","html_url":"https://github.com/mlfreeman2","followers_url":"https://api.github.com/users/mlfreeman2/followers","following_url":"https://api.github.com/users/mlfreeman2/following{/other_user}","gists_url":"https://api.github.com/users/mlfreeman2/gists{/gist_id}","starred_url":"https://api.github.com/users/mlfreeman2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlfreeman2/subscriptions","organizations_url":"https://api.github.com/users/mlfreeman2/orgs","repos_url":"https://api.github.com/users/mlfreeman2/repos","events_url":"https://api.github.com/users/mlfreeman2/events{/privacy}","received_events_url":"https://api.github.com/users/mlfreeman2/received_events","type":"User","site_admin":false},"created_at":"2018-04-21T18:16:58Z","updated_at":"2018-04-21T18:16:58Z","author_association":"CONTRIBUTOR","body":"I do have an Acurite HD console, which appears to be the only official interpreter of the 6045m’s output that I’ve seen on acurite.com\n\nAs I mentioned earlier, during my last round of thunderstorms, my Acurite HD console was displaying 5 miles as the “distance” report from the lightning sensor but rtl_433 was picking up the “distance” field as 7 (units unknown).\nThis was before I started doing anything.\n\nI *thought* it might be 7 KM but that doesn’t convert into 5 miles - closer to 4. \nThere’d have to be a floating point value being transmitted and some aggressive rounding going on in the console after conversion to make that possibly work I figured.\n(According to Google, 7.24220893 km is 4.5001 miles, which could be rounded up to 5 by the Acurite console).\n\nAlso, the sensor data sheet may say it’s an “estimate to the leading edge of the storm” but the Acurite HD console distinctly calls it the “last strike distance” so that’s why I named it what I did.\n\n\n\n\nOn Apr 21, 2018, at 11:09 AM, rct <notifications@github.com> wrote:\n\nI need to make some changes. I'll try to get them done this weekend. IF you want to merge this, go ahead. What needs to be addressed:\n\nMy understanding of what constitutes the sensor ID has changed. I want to get this fixed as close as possible to the JSON change because it will affect how the sensor is identified and how data is stored. People will need to do some sort of mapping/renaming to get the data from before and after to match if they are doing any historical storage.\nThe battery flag is wrong\nAll of the flag/status bits are now lost, so they aren't available without turning on debug and having to separately correlate.\nStrike Distance is wrong name and value. First according to the sensor datasheet, that is the distance to what the sensor estimates as the leading edge of the storm. As far as what units that is in, I don't know yet. I don't have an Acurite console. I don't have enough data from people with Acurite consoles to come up with a mapping. The few data points users have related didn't seem to have an obvious pattern.\nOther notes:\n\nStrike count, is just the number of strike events the sensor has counted. 7 bit counter with wraparound. It is non-volatite. @merbanan <https://github.com/merbanan> I don't think there is a unit put put there.\n—\nYou are receiving this because you authored the thread.\nReply to this email directly, view it on GitHub <https://github.com/merbanan/rtl_433/pull/705#issuecomment-383303955>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFg3h5bMCS4Nj_LfwGOS5RPOhi9Y8hL4ks5tq0upgaJpZM4TXF8N>.\n\n\n"}}
{"actor":{"display_login":"mlfreeman2"}}