{"action":"created","comment":{"url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/comments/93949927","pull_request_review_id":14480920,"id":93949927,"diff_hunk":"@@ -0,0 +1,51 @@\n+<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n+<thing:thing-descriptions bindingId=\"fileregexparser\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n+\txmlns:thing=\"http://eclipse.org/smarthome/schemas/thing-description/v1.0.0\"\n+\txsi:schemaLocation=\"http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd\">\n+\n+\t<!-- Sample Thing Type -->\n+\t<thing-type id=\"filetoparse\">\n+\t\t<label>FileToParseThing</label>\n+\t\t<description>Watches a file and matches a regular expression to each new line. Channels are generated automatically for each matcher group </description>\n+\n+\t\t<channels>\n+\t\t\t<channel id=\"groupCount\" typeId=\"groupCount\" />\n+\t\t</channels>\n+\t\t<config-description>\n+\t\t\t<parameter name=\"fileName\" type=\"text\" required=\"true\">\n+\t\t\t\t<label>Filename</label>\n+\t\t\t\t<description>Filename including full path</description>\n+\t\t\t</parameter>\n+\t\t\t<parameter name=\"regEx\" type=\"text\" required=\"true\">\n+\t\t\t\t<label>RegEx</label>\n+\t\t\t\t<description>Regular expression to be applied to each line of the file</description>\n+\t\t\t</parameter>\n+\t        <parameter name=\"matchingGroupTypes\" type=\"text\" required=\"false\">\n+                <label>Matching Group Types</label>\n+                <description>Types of matching groups str or num, comma separated list. - number must match the number of the matching groups defined in the RegEx  e.g.: str,num,num,str</description>\n+            </parameter>\n+\t\t</config-description>\n+\t</thing-type>\n+\n+\t<!-- Sample Channel Type -->\n+\t<channel-type id=\"groupCount\">\n+\t\t<item-type>Number</item-type>\n+\t\t<label>groupCount</label>\n+\t\t<description>Number of matching groups</description>\n+\t\t<state readOnly=\"true\"></state>\n+\t</channel-type>\n+\t<channel-type id=\"matchingGroupStr\">\n+\t\t<item-type>String</item-type>\n+\t\t<label>matchingGroup String</label>\n+\t\t<description>Result of MatchingGroup, type String </description>\n+\t\t<state readOnly=\"true\"></state>\n+\t</channel-type>\n+    <channel-type id=\"matchingGroupNum\">\n+        <item-type>Number</item-type>\n+        <label>matchingGroup Number</label>\n+        <description>Result of MatchingGroup x, type Number</description>","path":"addons/binding/org.openhab.binding.fileregexparser/ESH-INF/thing/thing-types.xml","position":46,"original_position":46,"commit_id":"0b1d533ed2456fc24bfde23703e34ab872486961","original_commit_id":"5def9ee9d3783000b7dafb2173568198dce8fe8a","user":{"login":"meju25","id":19248204,"avatar_url":"https://avatars.githubusercontent.com/u/19248204?v=3","gravatar_id":"","url":"https://api.github.com/users/meju25","html_url":"https://github.com/meju25","followers_url":"https://api.github.com/users/meju25/followers","following_url":"https://api.github.com/users/meju25/following{/other_user}","gists_url":"https://api.github.com/users/meju25/gists{/gist_id}","starred_url":"https://api.github.com/users/meju25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meju25/subscriptions","organizations_url":"https://api.github.com/users/meju25/orgs","repos_url":"https://api.github.com/users/meju25/repos","events_url":"https://api.github.com/users/meju25/events{/privacy}","received_events_url":"https://api.github.com/users/meju25/received_events","type":"User","site_admin":false},"body":"x was borrowed from mathematics. If you refer to a unknow number. (you can define n groups and this is for each x of the n groups).\r\nBut as this seems to be unclear (and by the way is inconsistent with the \"matchingGroupStr\" I removed the x.","created_at":"2016-12-27T16:56:17Z","updated_at":"2016-12-27T16:56:17Z","html_url":"https://github.com/openhab/openhab2-addons/pull/1028#discussion_r93949927","pull_request_url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1028","_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/comments/93949927"},"html":{"href":"https://github.com/openhab/openhab2-addons/pull/1028#discussion_r93949927"},"pull_request":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1028"}}},"pull_request":{"url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1028","id":74089631,"html_url":"https://github.com/openhab/openhab2-addons/pull/1028","diff_url":"https://github.com/openhab/openhab2-addons/pull/1028.diff","patch_url":"https://github.com/openhab/openhab2-addons/pull/1028.patch","issue_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/1028","number":1028,"state":"open","locked":false,"title":"New Binding Fileregexparser","user":{"login":"meju25","id":19248204,"avatar_url":"https://avatars.githubusercontent.com/u/19248204?v=3","gravatar_id":"","url":"https://api.github.com/users/meju25","html_url":"https://github.com/meju25","followers_url":"https://api.github.com/users/meju25/followers","following_url":"https://api.github.com/users/meju25/following{/other_user}","gists_url":"https://api.github.com/users/meju25/gists{/gist_id}","starred_url":"https://api.github.com/users/meju25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meju25/subscriptions","organizations_url":"https://api.github.com/users/meju25/orgs","repos_url":"https://api.github.com/users/meju25/repos","events_url":"https://api.github.com/users/meju25/events{/privacy}","received_events_url":"https://api.github.com/users/meju25/received_events","type":"User","site_admin":false},"body":"I have added a new binding \"Fileregexparser\".\n\n\"The FileRegexParser binding provides thing to read new lines from a file, parse them with a given regular expression and provide channels for each matching group.\"\n","created_at":"2016-06-16T14:23:31Z","updated_at":"2016-12-27T16:56:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6d727ad704a107b0deeccbd149f3d1035db99b0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1028/commits","review_comments_url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1028/comments","review_comment_url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/1028/comments","statuses_url":"https://api.github.com/repos/openhab/openhab2-addons/statuses/0b1d533ed2456fc24bfde23703e34ab872486961","head":{"label":"meju25:FileRegexParser","ref":"FileRegexParser","sha":"0b1d533ed2456fc24bfde23703e34ab872486961","user":{"login":"meju25","id":19248204,"avatar_url":"https://avatars.githubusercontent.com/u/19248204?v=3","gravatar_id":"","url":"https://api.github.com/users/meju25","html_url":"https://github.com/meju25","followers_url":"https://api.github.com/users/meju25/followers","following_url":"https://api.github.com/users/meju25/following{/other_user}","gists_url":"https://api.github.com/users/meju25/gists{/gist_id}","starred_url":"https://api.github.com/users/meju25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meju25/subscriptions","organizations_url":"https://api.github.com/users/meju25/orgs","repos_url":"https://api.github.com/users/meju25/repos","events_url":"https://api.github.com/users/meju25/events{/privacy}","received_events_url":"https://api.github.com/users/meju25/received_events","type":"User","site_admin":false},"repo":{"id":59930934,"name":"openhab2-addons","full_name":"meju25/openhab2-addons","owner":{"login":"meju25","id":19248204,"avatar_url":"https://avatars.githubusercontent.com/u/19248204?v=3","gravatar_id":"","url":"https://api.github.com/users/meju25","html_url":"https://github.com/meju25","followers_url":"https://api.github.com/users/meju25/followers","following_url":"https://api.github.com/users/meju25/following{/other_user}","gists_url":"https://api.github.com/users/meju25/gists{/gist_id}","starred_url":"https://api.github.com/users/meju25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meju25/subscriptions","organizations_url":"https://api.github.com/users/meju25/orgs","repos_url":"https://api.github.com/users/meju25/repos","events_url":"https://api.github.com/users/meju25/events{/privacy}","received_events_url":"https://api.github.com/users/meju25/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meju25/openhab2-addons","description":"The next-generation open Home Automation Bus (openHAB)","fork":true,"url":"https://api.github.com/repos/meju25/openhab2-addons","forks_url":"https://api.github.com/repos/meju25/openhab2-addons/forks","keys_url":"https://api.github.com/repos/meju25/openhab2-addons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meju25/openhab2-addons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meju25/openhab2-addons/teams","hooks_url":"https://api.github.com/repos/meju25/openhab2-addons/hooks","issue_events_url":"https://api.github.com/repos/meju25/openhab2-addons/issues/events{/number}","events_url":"https://api.github.com/repos/meju25/openhab2-addons/events","assignees_url":"https://api.github.com/repos/meju25/openhab2-addons/assignees{/user}","branches_url":"https://api.github.com/repos/meju25/openhab2-addons/branches{/branch}","tags_url":"https://api.github.com/repos/meju25/openhab2-addons/tags","blobs_url":"https://api.github.com/repos/meju25/openhab2-addons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meju25/openhab2-addons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meju25/openhab2-addons/git/refs{/sha}","trees_url":"https://api.github.com/repos/meju25/openhab2-addons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meju25/openhab2-addons/statuses/{sha}","languages_url":"https://api.github.com/repos/meju25/openhab2-addons/languages","stargazers_url":"https://api.github.com/repos/meju25/openhab2-addons/stargazers","contributors_url":"https://api.github.com/repos/meju25/openhab2-addons/contributors","subscribers_url":"https://api.github.com/repos/meju25/openhab2-addons/subscribers","subscription_url":"https://api.github.com/repos/meju25/openhab2-addons/subscription","commits_url":"https://api.github.com/repos/meju25/openhab2-addons/commits{/sha}","git_commits_url":"https://api.github.com/repos/meju25/openhab2-addons/git/commits{/sha}","comments_url":"https://api.github.com/repos/meju25/openhab2-addons/comments{/number}","issue_comment_url":"https://api.github.com/repos/meju25/openhab2-addons/issues/comments{/number}","contents_url":"https://api.github.com/repos/meju25/openhab2-addons/contents/{+path}","compare_url":"https://api.github.com/repos/meju25/openhab2-addons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meju25/openhab2-addons/merges","archive_url":"https://api.github.com/repos/meju25/openhab2-addons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meju25/openhab2-addons/downloads","issues_url":"https://api.github.com/repos/meju25/openhab2-addons/issues{/number}","pulls_url":"https://api.github.com/repos/meju25/openhab2-addons/pulls{/number}","milestones_url":"https://api.github.com/repos/meju25/openhab2-addons/milestones{/number}","notifications_url":"https://api.github.com/repos/meju25/openhab2-addons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meju25/openhab2-addons/labels{/name}","releases_url":"https://api.github.com/repos/meju25/openhab2-addons/releases{/id}","deployments_url":"https://api.github.com/repos/meju25/openhab2-addons/deployments","created_at":"2016-05-29T07:09:33Z","updated_at":"2016-05-29T07:09:39Z","pushed_at":"2016-12-27T16:15:08Z","git_url":"git://github.com/meju25/openhab2-addons.git","ssh_url":"git@github.com:meju25/openhab2-addons.git","clone_url":"https://github.com/meju25/openhab2-addons.git","svn_url":"https://github.com/meju25/openhab2-addons","homepage":null,"size":187229,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"openhab:master","ref":"master","sha":"c5abe82e0420482bec4899a018f8d1b979178fc3","user":{"login":"openhab","id":1007353,"avatar_url":"https://avatars.githubusercontent.com/u/1007353?v=3","gravatar_id":"","url":"https://api.github.com/users/openhab","html_url":"https://github.com/openhab","followers_url":"https://api.github.com/users/openhab/followers","following_url":"https://api.github.com/users/openhab/following{/other_user}","gists_url":"https://api.github.com/users/openhab/gists{/gist_id}","starred_url":"https://api.github.com/users/openhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhab/subscriptions","organizations_url":"https://api.github.com/users/openhab/orgs","repos_url":"https://api.github.com/users/openhab/repos","events_url":"https://api.github.com/users/openhab/events{/privacy}","received_events_url":"https://api.github.com/users/openhab/received_events","type":"Organization","site_admin":false},"repo":{"id":19753195,"name":"openhab2-addons","full_name":"openhab/openhab2-addons","owner":{"login":"openhab","id":1007353,"avatar_url":"https://avatars.githubusercontent.com/u/1007353?v=3","gravatar_id":"","url":"https://api.github.com/users/openhab","html_url":"https://github.com/openhab","followers_url":"https://api.github.com/users/openhab/followers","following_url":"https://api.github.com/users/openhab/following{/other_user}","gists_url":"https://api.github.com/users/openhab/gists{/gist_id}","starred_url":"https://api.github.com/users/openhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhab/subscriptions","organizations_url":"https://api.github.com/users/openhab/orgs","repos_url":"https://api.github.com/users/openhab/repos","events_url":"https://api.github.com/users/openhab/events{/privacy}","received_events_url":"https://api.github.com/users/openhab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openhab/openhab2-addons","description":"The next-generation open Home Automation Bus (openHAB)","fork":false,"url":"https://api.github.com/repos/openhab/openhab2-addons","forks_url":"https://api.github.com/repos/openhab/openhab2-addons/forks","keys_url":"https://api.github.com/repos/openhab/openhab2-addons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openhab/openhab2-addons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openhab/openhab2-addons/teams","hooks_url":"https://api.github.com/repos/openhab/openhab2-addons/hooks","issue_events_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/events{/number}","events_url":"https://api.github.com/repos/openhab/openhab2-addons/events","assignees_url":"https://api.github.com/repos/openhab/openhab2-addons/assignees{/user}","branches_url":"https://api.github.com/repos/openhab/openhab2-addons/branches{/branch}","tags_url":"https://api.github.com/repos/openhab/openhab2-addons/tags","blobs_url":"https://api.github.com/repos/openhab/openhab2-addons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openhab/openhab2-addons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openhab/openhab2-addons/git/refs{/sha}","trees_url":"https://api.github.com/repos/openhab/openhab2-addons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openhab/openhab2-addons/statuses/{sha}","languages_url":"https://api.github.com/repos/openhab/openhab2-addons/languages","stargazers_url":"https://api.github.com/repos/openhab/openhab2-addons/stargazers","contributors_url":"https://api.github.com/repos/openhab/openhab2-addons/contributors","subscribers_url":"https://api.github.com/repos/openhab/openhab2-addons/subscribers","subscription_url":"https://api.github.com/repos/openhab/openhab2-addons/subscription","commits_url":"https://api.github.com/repos/openhab/openhab2-addons/commits{/sha}","git_commits_url":"https://api.github.com/repos/openhab/openhab2-addons/git/commits{/sha}","comments_url":"https://api.github.com/repos/openhab/openhab2-addons/comments{/number}","issue_comment_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/comments{/number}","contents_url":"https://api.github.com/repos/openhab/openhab2-addons/contents/{+path}","compare_url":"https://api.github.com/repos/openhab/openhab2-addons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openhab/openhab2-addons/merges","archive_url":"https://api.github.com/repos/openhab/openhab2-addons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openhab/openhab2-addons/downloads","issues_url":"https://api.github.com/repos/openhab/openhab2-addons/issues{/number}","pulls_url":"https://api.github.com/repos/openhab/openhab2-addons/pulls{/number}","milestones_url":"https://api.github.com/repos/openhab/openhab2-addons/milestones{/number}","notifications_url":"https://api.github.com/repos/openhab/openhab2-addons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openhab/openhab2-addons/labels{/name}","releases_url":"https://api.github.com/repos/openhab/openhab2-addons/releases{/id}","deployments_url":"https://api.github.com/repos/openhab/openhab2-addons/deployments","created_at":"2014-05-13T19:41:58Z","updated_at":"2016-12-27T08:06:42Z","pushed_at":"2016-12-27T16:15:10Z","git_url":"git://github.com/openhab/openhab2-addons.git","ssh_url":"git@github.com:openhab/openhab2-addons.git","clone_url":"https://github.com/openhab/openhab2-addons.git","svn_url":"https://github.com/openhab/openhab2-addons","homepage":null,"size":58491,"stargazers_count":460,"watchers_count":460,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":733,"mirror_url":null,"open_issues_count":181,"forks":733,"open_issues":181,"watchers":460,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1028"},"html":{"href":"https://github.com/openhab/openhab2-addons/pull/1028"},"issue":{"href":"https://api.github.com/repos/openhab/openhab2-addons/issues/1028"},"comments":{"href":"https://api.github.com/repos/openhab/openhab2-addons/issues/1028/comments"},"review_comments":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1028/comments"},"review_comment":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1028/commits"},"statuses":{"href":"https://api.github.com/repos/openhab/openhab2-addons/statuses/0b1d533ed2456fc24bfde23703e34ab872486961"}}}}
{"actor":{"display_login":"meju25"}}