{"action":"created","issue":{"url":"https://api.github.com/repos/pimatic/pimatic-homeduino/issues/64","repository_url":"https://api.github.com/repos/pimatic/pimatic-homeduino","labels_url":"https://api.github.com/repos/pimatic/pimatic-homeduino/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/pimatic/pimatic-homeduino/issues/64/comments","events_url":"https://api.github.com/repos/pimatic/pimatic-homeduino/issues/64/events","html_url":"https://github.com/pimatic/pimatic-homeduino/issues/64","id":162435776,"number":64,"title":"china type bbq thermometer","user":{"login":"Flop2006","id":10615929,"avatar_url":"https://avatars.githubusercontent.com/u/10615929?v=3","gravatar_id":"","url":"https://api.github.com/users/Flop2006","html_url":"https://github.com/Flop2006","followers_url":"https://api.github.com/users/Flop2006/followers","following_url":"https://api.github.com/users/Flop2006/following{/other_user}","gists_url":"https://api.github.com/users/Flop2006/gists{/gist_id}","starred_url":"https://api.github.com/users/Flop2006/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flop2006/subscriptions","organizations_url":"https://api.github.com/users/Flop2006/orgs","repos_url":"https://api.github.com/users/Flop2006/repos","events_url":"https://api.github.com/users/Flop2006/events{/privacy}","received_events_url":"https://api.github.com/users/Flop2006/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-27T12:01:19Z","updated_at":"2016-09-15T13:05:02Z","closed_at":"2016-09-15T13:05:02Z","body":"Following protocol does work for this bbq thermometer:\r\nhttp://www.ebay.de/itm/262116800749\r\nMaybe someone can merge it in the master.\r\n\r\n```\r\nmodule.exports = function(helper) {\r\n  var protocolInfo, pulsesToBinaryMapping;\r\n  pulsesToBinaryMapping = {\r\n    '01': '0',\r\n    '02': '1',\r\n    '03': ''\r\n  };\r\n  return protocolInfo = {\r\n    name: 'weather17',\r\n    type: 'weather',\r\n    values: {\r\n      temperature: {\r\n        type: \"number\"\r\n      },\r\n      id: {\r\n        type: \"number\"\r\n      },\r\n      channel: {\r\n        type: \"number\"\r\n      },\r\n    },\r\n    brands: [\"BBQ Thermometer\"],\r\n    pulseLengths: [548, 1008, 1996, 3936],\r\n    pulseCount: 66,\r\n    decodePulses: function(pulses) {\r\n     /*\r\n      Pulse like:\r\n      |020202010101|0101|01010101010101020101010102010201|0201010102010202|03|\r\n      | 1 1 1 0 0 0| 0 0| 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0| 1 0 0 0 1 0 1 1|  |\r\n      |ID          | CH |            Temperature         |?               |  |\r\n      |56          |  1 |            266(26.6)           |?               |  |\r\n    */\r\n      var binary, result;\r\n      binary = helper.map(pulses, pulsesToBinaryMapping);\r\n      return result = {\r\n        id: helper.binaryToNumber(binary, 0, 5),\r\n        temperature: helper.binaryToSignedNumber(binary, 8, 23) / 10,\r\n        channel: helper.binaryToNumber(binary, 6, 7) + 1,\r\n      };\r\n    }\r\n  };\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/pimatic/pimatic-homeduino/issues/comments/247322223","html_url":"https://github.com/pimatic/pimatic-homeduino/issues/64#issuecomment-247322223","issue_url":"https://api.github.com/repos/pimatic/pimatic-homeduino/issues/64","id":247322223,"user":{"login":"Flop2006","id":10615929,"avatar_url":"https://avatars.githubusercontent.com/u/10615929?v=3","gravatar_id":"","url":"https://api.github.com/users/Flop2006","html_url":"https://github.com/Flop2006","followers_url":"https://api.github.com/users/Flop2006/followers","following_url":"https://api.github.com/users/Flop2006/following{/other_user}","gists_url":"https://api.github.com/users/Flop2006/gists{/gist_id}","starred_url":"https://api.github.com/users/Flop2006/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flop2006/subscriptions","organizations_url":"https://api.github.com/users/Flop2006/orgs","repos_url":"https://api.github.com/users/Flop2006/repos","events_url":"https://api.github.com/users/Flop2006/events{/privacy}","received_events_url":"https://api.github.com/users/Flop2006/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T13:05:02Z","updated_at":"2016-09-15T13:05:02Z","body":"Released with pimatic-homeduino@0.9.10"}}
{"actor":{"display_login":"Flop2006"}}