{"action":"created","comment":{"url":"https://api.github.com/repos/openhab/openhab2/pulls/comments/41312144","id":41312144,"diff_hunk":"@@ -0,0 +1,166 @@\n+/**\n+ * Copyright (c) 2014-2015 openHAB UG (haftungsbeschraenkt) and others.\n+ *\n+ * All rights reserved. This program and the accompanying materials\n+ * are made available under the terms of the Eclipse Public License v1.0\n+ * which accompanies this distribution, and is available at\n+ * http://www.eclipse.org/legal/epl-v10.html\n+ */\n+package org.openhab.binding.dscalarm.internal.discovery;\n+\n+import java.util.Collections;\n+import java.util.HashMap;\n+import java.util.Map;\n+import java.util.Set;\n+import java.util.concurrent.ScheduledFuture;\n+import java.util.concurrent.TimeUnit;\n+\n+import org.eclipse.smarthome.config.discovery.AbstractDiscoveryService;\n+import org.eclipse.smarthome.config.discovery.DiscoveryResult;\n+import org.eclipse.smarthome.config.discovery.DiscoveryResultBuilder;\n+import org.eclipse.smarthome.core.thing.ThingTypeUID;\n+import org.eclipse.smarthome.core.thing.ThingUID;\n+import org.openhab.binding.dscalarm.DSCAlarmBindingConstants;\n+import org.openhab.binding.dscalarm.config.EnvisalinkBridgeConfiguration;\n+import org.openhab.binding.dscalarm.config.IT100BridgeConfiguration;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+/**\n+ * This class is responsible for discovering the EyezOn Envisalink 3/2DS Ethernet interface.\n+ * \n+ * @author Russell Stephens - Initial Contribution\n+ * \n+ */\n+public class DSCAlarmBridgeDiscovery extends AbstractDiscoveryService {\n+\tprivate final static Logger logger = LoggerFactory.getLogger(DSCAlarmBridgeDiscovery.class);\n+\n+\tprivate long refreshInterval = 600;\n+\tprivate ScheduledFuture<?> envisalinkBridgeDiscoveryJob;\n+\tprivate ScheduledFuture<?> it100BridgeDiscoveryJob;\n+\tprivate EnvisalinkBridgeDiscovery envisalinkBridgeDiscovery = new EnvisalinkBridgeDiscovery(this);\n+\tprivate IT100BridgeDiscovery it100BridgeDiscovery = new IT100BridgeDiscovery(this);\n+\n+\t/**\n+\t * Constructor.\n+\t */\n+\tpublic DSCAlarmBridgeDiscovery() {\n+\t\tsuper(DSCAlarmBindingConstants.SUPPORTED_BRIDGE_THING_TYPES_UIDS, 15, true);\n+\t}\n+\n+\t@Override\n+\tpublic Set<ThingTypeUID> getSupportedThingTypes() {\n+\t\treturn DSCAlarmBindingConstants.SUPPORTED_BRIDGE_THING_TYPES_UIDS;\n+\t}\n+\n+\t@Override\n+\tprotected void startScan() {\t\t\n+\t\tlogger.trace(\"Start DSC Alarm Bridge discovery.\");\n+\t\tscheduler.execute(envisalinkBridgeDiscoveryRunnable);\t\n+\t\tscheduler.execute(it100BridgeDiscoveryRunnable);\t\n+\t}\n+\n+    @Override\n+    protected void startBackgroundDiscovery() {\n+        logger.debug(\"Start DSC Alarm Bridge background discovery\");\n+        if (envisalinkBridgeDiscoveryJob == null || envisalinkBridgeDiscoveryJob.isCancelled()) {\n+        \tenvisalinkBridgeDiscoveryJob = scheduler.scheduleAtFixedRate(envisalinkBridgeDiscoveryRunnable, 0, refreshInterval, TimeUnit.SECONDS);\n+        }\n+        if (it100BridgeDiscoveryJob == null || it100BridgeDiscoveryJob.isCancelled()) {\n+        \tit100BridgeDiscoveryJob = scheduler.scheduleAtFixedRate(it100BridgeDiscoveryRunnable, 0, refreshInterval, TimeUnit.SECONDS);\n+        }\n+    }\n+\n+    @Override\n+    protected void stopBackgroundDiscovery() {\n+        logger.debug(\"Stop DSC Alarm Bridge background discovery\");\n+        if (envisalinkBridgeDiscoveryJob != null && !envisalinkBridgeDiscoveryJob.isCancelled()) {\n+        \tenvisalinkBridgeDiscoveryJob.cancel(true);\n+        \tenvisalinkBridgeDiscoveryJob = null;\n+        }\n+        \n+        if (it100BridgeDiscoveryJob != null && !it100BridgeDiscoveryJob.isCancelled()) {\n+        \tit100BridgeDiscoveryJob.cancel(true);\n+        \tit100BridgeDiscoveryJob = null;\n+        }\n+    }\n+    \n+\tprivate Runnable envisalinkBridgeDiscoveryRunnable = new Runnable() {\n+\t\t@Override\n+\t\tpublic void run() {\n+\t\t\tenvisalinkBridgeDiscovery.discoverBridge();\n+\t\t}\n+\t};\n+\n+\tprivate Runnable it100BridgeDiscoveryRunnable = new Runnable() {\n+\t\t@Override\n+\t\tpublic void run() {\n+\t\t\tit100BridgeDiscovery.discoverBridge();\n+\t\t}\n+\t};\n+\n+\t/**\n+\t * Method to add an Envisalink Bridge to the Smarthome Inbox.\n+\t * \n+\t * @param ipAddress\n+\t */\n+\tpublic void addEnvisalinkBridge(String ipAddress) {\n+\t\tlogger.debug(\"addBridge(): Adding new Envisalink Bridge on {} to Smarthome inbox\",ipAddress);\n+\t\t\n+\t\tString bridgeID = ipAddress.replace('.', '_');\n+\t\tMap<String, Object> properties = new HashMap<>(0);\n+\t\tproperties.put(EnvisalinkBridgeConfiguration.IP_ADDRESS, ipAddress);\n+\t\t\n+\t\ttry {\n+\t\t\tThingUID thingUID = new ThingUID(DSCAlarmBindingConstants.ENVISALINKBRIDGE_THING_TYPE, bridgeID);\n+\t\t\t\n+\t\t\tif (thingUID != null) {\n+\t\n+\t\t\t\tDiscoveryResult result = DiscoveryResultBuilder.create(thingUID).withProperties(properties) //.withProperty(EnvisalinkBridgeConfiguration.IP_ADDRESS, ipAddress)\n+\t\t\t\t\t\t.withLabel(\"EyezOn Envisalink Bridge - \" + ipAddress).build();\n+\t\t\t\tthingDiscovered(result);\n+\t\t\t\t\n+\t\t\t\tlogger.debug(\"addBridge(): '{}' was added to Smarthome inbox.\",result.getThingUID());\n+\t\t     }\n+\t\t}catch(Exception e) {\n+\t\t\tlogger.debug(\"addBridge(): Error: {}\",e);\n+\t\t}\n+\t}\n+\n+\t/**\n+\t * Method to add an IT-100 Bridge to the Smarthome Inbox.\n+\t * \n+\t * @param port\n+\t */\n+\tpublic void addIT100Bridge(String port) {\n+\t\tlogger.debug(\"addBridge(): Adding new IT-100 Bridge on {} to Smarthome inbox\",port);\n+\n+\t\tString bridgeID = \"\";\n+\t\tboolean containsChar = port.contains(\"/\");\n+\t\t\n+\t\tif(containsChar) {\n+\t\t\tString[] parts = port.split(\"/\");\n+\t\t\tbridgeID = parts[parts.length - 1].toUpperCase();\n+\t\t}else {\n+\t\t\tbridgeID = port.toUpperCase();\t\t\t\n+\t\t}\n+\t\t\n+\t\tMap<String, Object> properties = new HashMap<>(0);\n+\t\tproperties.put(IT100BridgeConfiguration.SERIAL_PORT, port);\n+\t\t\n+\t\ttry {\n+\t\t\tThingUID thingUID = new ThingUID(DSCAlarmBindingConstants.IT100BRIDGE_THING_TYPE, bridgeID);\n+\t\t\t\n+\t\t\tif (thingUID != null) {\n+\t\n+\t\t\t\tDiscoveryResult result = DiscoveryResultBuilder.create(thingUID).withProperties(properties)\n+\t\t\t\t\t\t.withLabel(\"DSC IT-100 Bridge - \" + port).build();\n+\t\t\t\tthingDiscovered(result);\n+\t\t\t\t\n+\t\t\t\tlogger.debug(\"addBridge(): '{}' was added to Smarthome inbox.\",result.getThingUID());","path":"addons/binding/org.openhab.binding.dscalarm/src/main/java/org/openhab/binding/dscalarm/internal/discovery/DSCAlarmBridgeDiscovery.java","position":160,"original_position":160,"commit_id":"c43f4b88cbaa7bb4150107ca217a68b1b2dac3c4","original_commit_id":"c43f4b88cbaa7bb4150107ca217a68b1b2dac3c4","user":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"body":"those things are logged by the framework already, so either remove it or reduce to TRACE.","created_at":"2015-10-06T19:43:35Z","updated_at":"2015-10-06T19:43:35Z","html_url":"https://github.com/openhab/openhab2/pull/324#discussion_r41312144","pull_request_url":"https://api.github.com/repos/openhab/openhab2/pulls/324","_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab2/pulls/comments/41312144"},"html":{"href":"https://github.com/openhab/openhab2/pull/324#discussion_r41312144"},"pull_request":{"href":"https://api.github.com/repos/openhab/openhab2/pulls/324"}}},"pull_request":{"url":"https://api.github.com/repos/openhab/openhab2/pulls/324","id":41582789,"html_url":"https://github.com/openhab/openhab2/pull/324","diff_url":"https://github.com/openhab/openhab2/pull/324.diff","patch_url":"https://github.com/openhab/openhab2/pull/324.patch","issue_url":"https://api.github.com/repos/openhab/openhab2/issues/324","number":324,"state":"open","locked":false,"title":"Initial contribution of the DSC Alarm Binding","user":{"login":"RSStephens","id":7375448,"avatar_url":"https://avatars.githubusercontent.com/u/7375448?v=3","gravatar_id":"","url":"https://api.github.com/users/RSStephens","html_url":"https://github.com/RSStephens","followers_url":"https://api.github.com/users/RSStephens/followers","following_url":"https://api.github.com/users/RSStephens/following{/other_user}","gists_url":"https://api.github.com/users/RSStephens/gists{/gist_id}","starred_url":"https://api.github.com/users/RSStephens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RSStephens/subscriptions","organizations_url":"https://api.github.com/users/RSStephens/orgs","repos_url":"https://api.github.com/users/RSStephens/repos","events_url":"https://api.github.com/users/RSStephens/events{/privacy}","received_events_url":"https://api.github.com/users/RSStephens/received_events","type":"User","site_admin":false},"body":"Initial contribution of the DSC Alarm Binding as per issue #99.\r\n\r\nSigned-off-by: Russell Stephens <rsstephens@gmail.com> (Github: @RSStephens)","created_at":"2015-08-04T15:28:36Z","updated_at":"2015-10-06T19:43:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a28d7810fdcaa20693538102df0e7710fd0c0329","assignee":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/openhab/openhab2/milestones/2","html_url":"https://github.com/openhab/openhab2/milestones/2.0.0%20beta1","labels_url":"https://api.github.com/repos/openhab/openhab2/milestones/2/labels","id":1144316,"number":2,"title":"2.0.0 beta1","description":"First beta release of openHAB 2","creator":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":21,"state":"open","created_at":"2015-06-02T07:25:29Z","updated_at":"2015-09-28T15:48:33Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/openhab/openhab2/pulls/324/commits","review_comments_url":"https://api.github.com/repos/openhab/openhab2/pulls/324/comments","review_comment_url":"https://api.github.com/repos/openhab/openhab2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openhab/openhab2/issues/324/comments","statuses_url":"https://api.github.com/repos/openhab/openhab2/statuses/c43f4b88cbaa7bb4150107ca217a68b1b2dac3c4","head":{"label":"RSStephens:DSCAlarm","ref":"DSCAlarm","sha":"c43f4b88cbaa7bb4150107ca217a68b1b2dac3c4","user":{"login":"RSStephens","id":7375448,"avatar_url":"https://avatars.githubusercontent.com/u/7375448?v=3","gravatar_id":"","url":"https://api.github.com/users/RSStephens","html_url":"https://github.com/RSStephens","followers_url":"https://api.github.com/users/RSStephens/followers","following_url":"https://api.github.com/users/RSStephens/following{/other_user}","gists_url":"https://api.github.com/users/RSStephens/gists{/gist_id}","starred_url":"https://api.github.com/users/RSStephens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RSStephens/subscriptions","organizations_url":"https://api.github.com/users/RSStephens/orgs","repos_url":"https://api.github.com/users/RSStephens/repos","events_url":"https://api.github.com/users/RSStephens/events{/privacy}","received_events_url":"https://api.github.com/users/RSStephens/received_events","type":"User","site_admin":false},"repo":{"id":40140465,"name":"openhab2","full_name":"RSStephens/openhab2","owner":{"login":"RSStephens","id":7375448,"avatar_url":"https://avatars.githubusercontent.com/u/7375448?v=3","gravatar_id":"","url":"https://api.github.com/users/RSStephens","html_url":"https://github.com/RSStephens","followers_url":"https://api.github.com/users/RSStephens/followers","following_url":"https://api.github.com/users/RSStephens/following{/other_user}","gists_url":"https://api.github.com/users/RSStephens/gists{/gist_id}","starred_url":"https://api.github.com/users/RSStephens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RSStephens/subscriptions","organizations_url":"https://api.github.com/users/RSStephens/orgs","repos_url":"https://api.github.com/users/RSStephens/repos","events_url":"https://api.github.com/users/RSStephens/events{/privacy}","received_events_url":"https://api.github.com/users/RSStephens/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RSStephens/openhab2","description":"The next-generation open Home Automation Bus (openHAB)","fork":true,"url":"https://api.github.com/repos/RSStephens/openhab2","forks_url":"https://api.github.com/repos/RSStephens/openhab2/forks","keys_url":"https://api.github.com/repos/RSStephens/openhab2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RSStephens/openhab2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RSStephens/openhab2/teams","hooks_url":"https://api.github.com/repos/RSStephens/openhab2/hooks","issue_events_url":"https://api.github.com/repos/RSStephens/openhab2/issues/events{/number}","events_url":"https://api.github.com/repos/RSStephens/openhab2/events","assignees_url":"https://api.github.com/repos/RSStephens/openhab2/assignees{/user}","branches_url":"https://api.github.com/repos/RSStephens/openhab2/branches{/branch}","tags_url":"https://api.github.com/repos/RSStephens/openhab2/tags","blobs_url":"https://api.github.com/repos/RSStephens/openhab2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RSStephens/openhab2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RSStephens/openhab2/git/refs{/sha}","trees_url":"https://api.github.com/repos/RSStephens/openhab2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RSStephens/openhab2/statuses/{sha}","languages_url":"https://api.github.com/repos/RSStephens/openhab2/languages","stargazers_url":"https://api.github.com/repos/RSStephens/openhab2/stargazers","contributors_url":"https://api.github.com/repos/RSStephens/openhab2/contributors","subscribers_url":"https://api.github.com/repos/RSStephens/openhab2/subscribers","subscription_url":"https://api.github.com/repos/RSStephens/openhab2/subscription","commits_url":"https://api.github.com/repos/RSStephens/openhab2/commits{/sha}","git_commits_url":"https://api.github.com/repos/RSStephens/openhab2/git/commits{/sha}","comments_url":"https://api.github.com/repos/RSStephens/openhab2/comments{/number}","issue_comment_url":"https://api.github.com/repos/RSStephens/openhab2/issues/comments{/number}","contents_url":"https://api.github.com/repos/RSStephens/openhab2/contents/{+path}","compare_url":"https://api.github.com/repos/RSStephens/openhab2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RSStephens/openhab2/merges","archive_url":"https://api.github.com/repos/RSStephens/openhab2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RSStephens/openhab2/downloads","issues_url":"https://api.github.com/repos/RSStephens/openhab2/issues{/number}","pulls_url":"https://api.github.com/repos/RSStephens/openhab2/pulls{/number}","milestones_url":"https://api.github.com/repos/RSStephens/openhab2/milestones{/number}","notifications_url":"https://api.github.com/repos/RSStephens/openhab2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RSStephens/openhab2/labels{/name}","releases_url":"https://api.github.com/repos/RSStephens/openhab2/releases{/id}","created_at":"2015-08-03T18:13:15Z","updated_at":"2015-08-03T18:13:18Z","pushed_at":"2015-10-06T17:52:53Z","git_url":"git://github.com/RSStephens/openhab2.git","ssh_url":"git@github.com:RSStephens/openhab2.git","clone_url":"https://github.com/RSStephens/openhab2.git","svn_url":"https://github.com/RSStephens/openhab2","homepage":null,"size":8792,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"25bf2fe33ac425462e065bbe6146a290d8a88bf6","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","full_name":"openhab/openhab2","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","description":"The next-generation open Home Automation Bus (openHAB)","fork":false,"url":"https://api.github.com/repos/openhab/openhab2","forks_url":"https://api.github.com/repos/openhab/openhab2/forks","keys_url":"https://api.github.com/repos/openhab/openhab2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openhab/openhab2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openhab/openhab2/teams","hooks_url":"https://api.github.com/repos/openhab/openhab2/hooks","issue_events_url":"https://api.github.com/repos/openhab/openhab2/issues/events{/number}","events_url":"https://api.github.com/repos/openhab/openhab2/events","assignees_url":"https://api.github.com/repos/openhab/openhab2/assignees{/user}","branches_url":"https://api.github.com/repos/openhab/openhab2/branches{/branch}","tags_url":"https://api.github.com/repos/openhab/openhab2/tags","blobs_url":"https://api.github.com/repos/openhab/openhab2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openhab/openhab2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openhab/openhab2/git/refs{/sha}","trees_url":"https://api.github.com/repos/openhab/openhab2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openhab/openhab2/statuses/{sha}","languages_url":"https://api.github.com/repos/openhab/openhab2/languages","stargazers_url":"https://api.github.com/repos/openhab/openhab2/stargazers","contributors_url":"https://api.github.com/repos/openhab/openhab2/contributors","subscribers_url":"https://api.github.com/repos/openhab/openhab2/subscribers","subscription_url":"https://api.github.com/repos/openhab/openhab2/subscription","commits_url":"https://api.github.com/repos/openhab/openhab2/commits{/sha}","git_commits_url":"https://api.github.com/repos/openhab/openhab2/git/commits{/sha}","comments_url":"https://api.github.com/repos/openhab/openhab2/comments{/number}","issue_comment_url":"https://api.github.com/repos/openhab/openhab2/issues/comments{/number}","contents_url":"https://api.github.com/repos/openhab/openhab2/contents/{+path}","compare_url":"https://api.github.com/repos/openhab/openhab2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openhab/openhab2/merges","archive_url":"https://api.github.com/repos/openhab/openhab2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openhab/openhab2/downloads","issues_url":"https://api.github.com/repos/openhab/openhab2/issues{/number}","pulls_url":"https://api.github.com/repos/openhab/openhab2/pulls{/number}","milestones_url":"https://api.github.com/repos/openhab/openhab2/milestones{/number}","notifications_url":"https://api.github.com/repos/openhab/openhab2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openhab/openhab2/labels{/name}","releases_url":"https://api.github.com/repos/openhab/openhab2/releases{/id}","created_at":"2014-05-13T19:41:58Z","updated_at":"2015-10-05T15:54:39Z","pushed_at":"2015-10-06T17:52:53Z","git_url":"git://github.com/openhab/openhab2.git","ssh_url":"git@github.com:openhab/openhab2.git","clone_url":"https://github.com/openhab/openhab2.git","svn_url":"https://github.com/openhab/openhab2","homepage":null,"size":174005,"stargazers_count":264,"watchers_count":264,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":419,"mirror_url":null,"open_issues_count":49,"forks":419,"open_issues":49,"watchers":264,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab2/pulls/324"},"html":{"href":"https://github.com/openhab/openhab2/pull/324"},"issue":{"href":"https://api.github.com/repos/openhab/openhab2/issues/324"},"comments":{"href":"https://api.github.com/repos/openhab/openhab2/issues/324/comments"},"review_comments":{"href":"https://api.github.com/repos/openhab/openhab2/pulls/324/comments"},"review_comment":{"href":"https://api.github.com/repos/openhab/openhab2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openhab/openhab2/pulls/324/commits"},"statuses":{"href":"https://api.github.com/repos/openhab/openhab2/statuses/c43f4b88cbaa7bb4150107ca217a68b1b2dac3c4"}}}}