{"action":"created","comment":{"url":"https://api.github.com/repos/merbanan/rtl_433/pulls/comments/69813260","id":69813260,"diff_hunk":"@@ -1,48 +1,116 @@\n-/* Steelmate TPMS FSK protocol\n- *\n- * Copyright © 2016 Benjamin Larsson\n- *\n- * This program is free software; you can redistribute it and/or modify\n- * it under the terms of the GNU General Public License as published by\n- * the Free Software Foundation; either version 2 of the License, or\n- * (at your option) any later version.\n- */\n-\n-#include \"rtl_433.h\"\n-#include \"pulse_demod.h\"\n-#include \"util.h\"\n-\n-\n-static int steelmate_callback(bitbuffer_t *bitbuffer) {\n-\tchar time_str[LOCAL_TIME_BUFLEN];\n-\n-\tlocal_time_str(0, time_str);\n-\tif (debug_output >= 1) {\n-\t\tfprintf(stdout, \"Steelmate TPMS decoder\\n\");\n-\t\tbitbuffer_print(bitbuffer);\n-\t}\n-\n-\treturn 0;\n-}\n-\n-static char *output_fields[] = {\n-\t\"time\",\n-\t\"model\",\n-\t\"id\",\n-\t\"flags\",\n-\t\"pressure\",\n-\t\"temperature_C\",\n-\t\"depth\",\n-\tNULL\n-};\n-\n-r_device steelmate = {\n-\t.name\t\t\t= \"Steelmate TPMS\",\n-\t.modulation\t\t= FSK_PULSE_MANCHESTER_ZEROBIT,\n-\t.short_limit\t= 12*4,\n-\t.long_limit     = 0,\n-\t.reset_limit    = 27*4,\n-\t.json_callback\t= &steelmate_callback,\n-\t.disabled\t\t= 0,\n-\t.fields\t\t\t= output_fields,\n-};\n+/* Steelmate TPMS FSK protocol\r\n+ * Data packet is inverted Manchester encoded. It's also reversed MSB/LSB.\r\n+ *\r\n+ * Copyright © 2016 Benjamin Larsson\r\n+ * Copyright © 2016 John Jore\r\n+ *\r\n+ * This program is free software; you can redistribute it and/or modify\r\n+ * it under the terms of the GNU General Public License as published by\r\n+ * the Free Software Foundation; either version 2 of the License, or\r\n+ * (at your option) any later version.\r\n+ */\r\n+\r","path":"src/devices/steelmate.c","position":60,"original_position":60,"commit_id":"dc21dccb4fa80dc5c2ffddd5fab578e2f2779fe5","original_commit_id":"dc21dccb4fa80dc5c2ffddd5fab578e2f2779fe5","user":{"login":"johnjore","id":12951842,"avatar_url":"https://avatars.githubusercontent.com/u/12951842?v=3","gravatar_id":"","url":"https://api.github.com/users/johnjore","html_url":"https://github.com/johnjore","followers_url":"https://api.github.com/users/johnjore/followers","following_url":"https://api.github.com/users/johnjore/following{/other_user}","gists_url":"https://api.github.com/users/johnjore/gists{/gist_id}","starred_url":"https://api.github.com/users/johnjore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnjore/subscriptions","organizations_url":"https://api.github.com/users/johnjore/orgs","repos_url":"https://api.github.com/users/johnjore/repos","events_url":"https://api.github.com/users/johnjore/events{/privacy}","received_events_url":"https://api.github.com/users/johnjore/received_events","type":"User","site_admin":false},"body":"Can do that. I had it documented as the values were extracted, but can add a blob at the top as well.","created_at":"2016-07-06T21:17:43Z","updated_at":"2016-07-06T21:17:43Z","html_url":"https://github.com/merbanan/rtl_433/pull/395#discussion_r69813260","pull_request_url":"https://api.github.com/repos/merbanan/rtl_433/pulls/395","_links":{"self":{"href":"https://api.github.com/repos/merbanan/rtl_433/pulls/comments/69813260"},"html":{"href":"https://github.com/merbanan/rtl_433/pull/395#discussion_r69813260"},"pull_request":{"href":"https://api.github.com/repos/merbanan/rtl_433/pulls/395"}}},"pull_request":{"url":"https://api.github.com/repos/merbanan/rtl_433/pulls/395","id":76466976,"html_url":"https://github.com/merbanan/rtl_433/pull/395","diff_url":"https://github.com/merbanan/rtl_433/pull/395.diff","patch_url":"https://github.com/merbanan/rtl_433/pull/395.patch","issue_url":"https://api.github.com/repos/merbanan/rtl_433/issues/395","number":395,"state":"open","locked":false,"title":"Added Steelmate TPMS support","user":{"login":"johnjore","id":12951842,"avatar_url":"https://avatars.githubusercontent.com/u/12951842?v=3","gravatar_id":"","url":"https://api.github.com/users/johnjore","html_url":"https://github.com/johnjore","followers_url":"https://api.github.com/users/johnjore/followers","following_url":"https://api.github.com/users/johnjore/following{/other_user}","gists_url":"https://api.github.com/users/johnjore/gists{/gist_id}","starred_url":"https://api.github.com/users/johnjore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnjore/subscriptions","organizations_url":"https://api.github.com/users/johnjore/orgs","repos_url":"https://api.github.com/users/johnjore/repos","events_url":"https://api.github.com/users/johnjore/events{/privacy}","received_events_url":"https://api.github.com/users/johnjore/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-06T17:05:56Z","updated_at":"2016-07-06T21:17:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b14411132928e96cdbea7d580eeb8fac6c6d293d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/merbanan/rtl_433/pulls/395/commits","review_comments_url":"https://api.github.com/repos/merbanan/rtl_433/pulls/395/comments","review_comment_url":"https://api.github.com/repos/merbanan/rtl_433/pulls/comments{/number}","comments_url":"https://api.github.com/repos/merbanan/rtl_433/issues/395/comments","statuses_url":"https://api.github.com/repos/merbanan/rtl_433/statuses/dc21dccb4fa80dc5c2ffddd5fab578e2f2779fe5","head":{"label":"johnjore:master","ref":"master","sha":"dc21dccb4fa80dc5c2ffddd5fab578e2f2779fe5","user":{"login":"johnjore","id":12951842,"avatar_url":"https://avatars.githubusercontent.com/u/12951842?v=3","gravatar_id":"","url":"https://api.github.com/users/johnjore","html_url":"https://github.com/johnjore","followers_url":"https://api.github.com/users/johnjore/followers","following_url":"https://api.github.com/users/johnjore/following{/other_user}","gists_url":"https://api.github.com/users/johnjore/gists{/gist_id}","starred_url":"https://api.github.com/users/johnjore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnjore/subscriptions","organizations_url":"https://api.github.com/users/johnjore/orgs","repos_url":"https://api.github.com/users/johnjore/repos","events_url":"https://api.github.com/users/johnjore/events{/privacy}","received_events_url":"https://api.github.com/users/johnjore/received_events","type":"User","site_admin":false},"repo":{"id":61900582,"name":"rtl_433","full_name":"johnjore/rtl_433","owner":{"login":"johnjore","id":12951842,"avatar_url":"https://avatars.githubusercontent.com/u/12951842?v=3","gravatar_id":"","url":"https://api.github.com/users/johnjore","html_url":"https://github.com/johnjore","followers_url":"https://api.github.com/users/johnjore/followers","following_url":"https://api.github.com/users/johnjore/following{/other_user}","gists_url":"https://api.github.com/users/johnjore/gists{/gist_id}","starred_url":"https://api.github.com/users/johnjore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnjore/subscriptions","organizations_url":"https://api.github.com/users/johnjore/orgs","repos_url":"https://api.github.com/users/johnjore/repos","events_url":"https://api.github.com/users/johnjore/events{/privacy}","received_events_url":"https://api.github.com/users/johnjore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johnjore/rtl_433","description":"Application using librtlsdr to decode the temperature from a wireless temperature sensor (433.92MHz)","fork":true,"url":"https://api.github.com/repos/johnjore/rtl_433","forks_url":"https://api.github.com/repos/johnjore/rtl_433/forks","keys_url":"https://api.github.com/repos/johnjore/rtl_433/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnjore/rtl_433/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnjore/rtl_433/teams","hooks_url":"https://api.github.com/repos/johnjore/rtl_433/hooks","issue_events_url":"https://api.github.com/repos/johnjore/rtl_433/issues/events{/number}","events_url":"https://api.github.com/repos/johnjore/rtl_433/events","assignees_url":"https://api.github.com/repos/johnjore/rtl_433/assignees{/user}","branches_url":"https://api.github.com/repos/johnjore/rtl_433/branches{/branch}","tags_url":"https://api.github.com/repos/johnjore/rtl_433/tags","blobs_url":"https://api.github.com/repos/johnjore/rtl_433/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnjore/rtl_433/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnjore/rtl_433/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnjore/rtl_433/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnjore/rtl_433/statuses/{sha}","languages_url":"https://api.github.com/repos/johnjore/rtl_433/languages","stargazers_url":"https://api.github.com/repos/johnjore/rtl_433/stargazers","contributors_url":"https://api.github.com/repos/johnjore/rtl_433/contributors","subscribers_url":"https://api.github.com/repos/johnjore/rtl_433/subscribers","subscription_url":"https://api.github.com/repos/johnjore/rtl_433/subscription","commits_url":"https://api.github.com/repos/johnjore/rtl_433/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnjore/rtl_433/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnjore/rtl_433/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnjore/rtl_433/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnjore/rtl_433/contents/{+path}","compare_url":"https://api.github.com/repos/johnjore/rtl_433/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnjore/rtl_433/merges","archive_url":"https://api.github.com/repos/johnjore/rtl_433/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnjore/rtl_433/downloads","issues_url":"https://api.github.com/repos/johnjore/rtl_433/issues{/number}","pulls_url":"https://api.github.com/repos/johnjore/rtl_433/pulls{/number}","milestones_url":"https://api.github.com/repos/johnjore/rtl_433/milestones{/number}","notifications_url":"https://api.github.com/repos/johnjore/rtl_433/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnjore/rtl_433/labels{/name}","releases_url":"https://api.github.com/repos/johnjore/rtl_433/releases{/id}","deployments_url":"https://api.github.com/repos/johnjore/rtl_433/deployments","created_at":"2016-06-24T17:20:43Z","updated_at":"2016-06-24T17:20:44Z","pushed_at":"2016-07-06T17:04:40Z","git_url":"git://github.com/johnjore/rtl_433.git","ssh_url":"git@github.com:johnjore/rtl_433.git","clone_url":"https://github.com/johnjore/rtl_433.git","svn_url":"https://github.com/johnjore/rtl_433","homepage":null,"size":1445,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"merbanan:master","ref":"master","sha":"fa3a5996b440ecd99aadb531c436284f5ddc8c62","user":{"login":"merbanan","id":124883,"avatar_url":"https://avatars.githubusercontent.com/u/124883?v=3","gravatar_id":"","url":"https://api.github.com/users/merbanan","html_url":"https://github.com/merbanan","followers_url":"https://api.github.com/users/merbanan/followers","following_url":"https://api.github.com/users/merbanan/following{/other_user}","gists_url":"https://api.github.com/users/merbanan/gists{/gist_id}","starred_url":"https://api.github.com/users/merbanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merbanan/subscriptions","organizations_url":"https://api.github.com/users/merbanan/orgs","repos_url":"https://api.github.com/users/merbanan/repos","events_url":"https://api.github.com/users/merbanan/events{/privacy}","received_events_url":"https://api.github.com/users/merbanan/received_events","type":"User","site_admin":false},"repo":{"id":7705639,"name":"rtl_433","full_name":"merbanan/rtl_433","owner":{"login":"merbanan","id":124883,"avatar_url":"https://avatars.githubusercontent.com/u/124883?v=3","gravatar_id":"","url":"https://api.github.com/users/merbanan","html_url":"https://github.com/merbanan","followers_url":"https://api.github.com/users/merbanan/followers","following_url":"https://api.github.com/users/merbanan/following{/other_user}","gists_url":"https://api.github.com/users/merbanan/gists{/gist_id}","starred_url":"https://api.github.com/users/merbanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merbanan/subscriptions","organizations_url":"https://api.github.com/users/merbanan/orgs","repos_url":"https://api.github.com/users/merbanan/repos","events_url":"https://api.github.com/users/merbanan/events{/privacy}","received_events_url":"https://api.github.com/users/merbanan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/merbanan/rtl_433","description":"Application using librtlsdr to decode the temperature from a wireless temperature sensor (433.92MHz)","fork":false,"url":"https://api.github.com/repos/merbanan/rtl_433","forks_url":"https://api.github.com/repos/merbanan/rtl_433/forks","keys_url":"https://api.github.com/repos/merbanan/rtl_433/keys{/key_id}","collaborators_url":"https://api.github.com/repos/merbanan/rtl_433/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/merbanan/rtl_433/teams","hooks_url":"https://api.github.com/repos/merbanan/rtl_433/hooks","issue_events_url":"https://api.github.com/repos/merbanan/rtl_433/issues/events{/number}","events_url":"https://api.github.com/repos/merbanan/rtl_433/events","assignees_url":"https://api.github.com/repos/merbanan/rtl_433/assignees{/user}","branches_url":"https://api.github.com/repos/merbanan/rtl_433/branches{/branch}","tags_url":"https://api.github.com/repos/merbanan/rtl_433/tags","blobs_url":"https://api.github.com/repos/merbanan/rtl_433/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/merbanan/rtl_433/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/merbanan/rtl_433/git/refs{/sha}","trees_url":"https://api.github.com/repos/merbanan/rtl_433/git/trees{/sha}","statuses_url":"https://api.github.com/repos/merbanan/rtl_433/statuses/{sha}","languages_url":"https://api.github.com/repos/merbanan/rtl_433/languages","stargazers_url":"https://api.github.com/repos/merbanan/rtl_433/stargazers","contributors_url":"https://api.github.com/repos/merbanan/rtl_433/contributors","subscribers_url":"https://api.github.com/repos/merbanan/rtl_433/subscribers","subscription_url":"https://api.github.com/repos/merbanan/rtl_433/subscription","commits_url":"https://api.github.com/repos/merbanan/rtl_433/commits{/sha}","git_commits_url":"https://api.github.com/repos/merbanan/rtl_433/git/commits{/sha}","comments_url":"https://api.github.com/repos/merbanan/rtl_433/comments{/number}","issue_comment_url":"https://api.github.com/repos/merbanan/rtl_433/issues/comments{/number}","contents_url":"https://api.github.com/repos/merbanan/rtl_433/contents/{+path}","compare_url":"https://api.github.com/repos/merbanan/rtl_433/compare/{base}...{head}","merges_url":"https://api.github.com/repos/merbanan/rtl_433/merges","archive_url":"https://api.github.com/repos/merbanan/rtl_433/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/merbanan/rtl_433/downloads","issues_url":"https://api.github.com/repos/merbanan/rtl_433/issues{/number}","pulls_url":"https://api.github.com/repos/merbanan/rtl_433/pulls{/number}","milestones_url":"https://api.github.com/repos/merbanan/rtl_433/milestones{/number}","notifications_url":"https://api.github.com/repos/merbanan/rtl_433/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/merbanan/rtl_433/labels{/name}","releases_url":"https://api.github.com/repos/merbanan/rtl_433/releases{/id}","deployments_url":"https://api.github.com/repos/merbanan/rtl_433/deployments","created_at":"2013-01-19T16:40:34Z","updated_at":"2016-07-06T20:49:59Z","pushed_at":"2016-07-06T17:05:56Z","git_url":"git://github.com/merbanan/rtl_433.git","ssh_url":"git@github.com:merbanan/rtl_433.git","clone_url":"https://github.com/merbanan/rtl_433.git","svn_url":"https://github.com/merbanan/rtl_433","homepage":null,"size":2029,"stargazers_count":349,"watchers_count":349,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":160,"mirror_url":null,"open_issues_count":56,"forks":160,"open_issues":56,"watchers":349,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/merbanan/rtl_433/pulls/395"},"html":{"href":"https://github.com/merbanan/rtl_433/pull/395"},"issue":{"href":"https://api.github.com/repos/merbanan/rtl_433/issues/395"},"comments":{"href":"https://api.github.com/repos/merbanan/rtl_433/issues/395/comments"},"review_comments":{"href":"https://api.github.com/repos/merbanan/rtl_433/pulls/395/comments"},"review_comment":{"href":"https://api.github.com/repos/merbanan/rtl_433/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/merbanan/rtl_433/pulls/395/commits"},"statuses":{"href":"https://api.github.com/repos/merbanan/rtl_433/statuses/dc21dccb4fa80dc5c2ffddd5fab578e2f2779fe5"}}}}
{"actor":{"display_login":"johnjore"}}