{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/smarthome/pulls/comments/80970309","pull_request_review_id":1983079,"id":80970309,"diff_hunk":"@@ -0,0 +1,460 @@\n+/**\n+ * Copyright (c) 2014-2016 by the respective copyright holders.\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.eclipse.smarthome.core.audio;\n+\n+import java.io.File;\n+import java.io.IOException;\n+import java.util.HashMap;\n+import java.util.HashSet;\n+import java.util.Map;\n+import java.util.Set;\n+\n+import org.eclipse.smarthome.config.core.ConfigConstants;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+/**\n+ * This service provides functionality around audio services and is the central service to be used directly by others.\n+ *\n+ * @author Karel Goderis - Initial contribution and API\n+ * @author Kai Kreuzer - removed unwanted dependencies\n+ */\n+public class AudioManager {\n+\n+    private static final String SOUND_DIR = \"sounds\";\n+\n+    // constants for the configuration properties\n+    private static final String CONFIG_DEFAULT_SINK = \"defaultSink\";\n+    private static final String CONFIG_DEFAULT_SOURCE = \"defaultSource\";\n+\n+    private final Logger logger = LoggerFactory.getLogger(AudioManager.class);\n+\n+    // service maps\n+    private Map<String, AudioSource> audioSources = new HashMap<>();\n+    private Map<String, AudioSink> audioSinks = new HashMap<>();\n+\n+    /**\n+     * default settings filled through the service configuration\n+     */\n+    private String defaultSource = null;\n+    private String defaultSink = null;\n+\n+    protected void activate(Map<String, Object> config) {\n+        modified(config);\n+    }\n+\n+    protected void deactivate() {\n+    }\n+\n+    protected void modified(Map<String, Object> config) {\n+        if (config != null) {\n+            this.defaultSource = config.containsKey(CONFIG_DEFAULT_SOURCE)\n+                    ? config.get(CONFIG_DEFAULT_SOURCE).toString() : null;\n+            this.defaultSink = config.containsKey(CONFIG_DEFAULT_SINK) ? config.get(CONFIG_DEFAULT_SINK).toString()\n+                    : null;\n+        }\n+    }\n+\n+    /**\n+     * Plays the passed audio stream using the default audio sink.\n+     *\n+     * @param audioStream The audio stream to play\n+     */\n+    public void play(AudioStream audioStream) {\n+        play(audioStream, null);\n+    }\n+\n+    /**\n+     * Plays the passed audio stream on the given sink.\n+     *\n+     * @param audioStream The filename to play\n+     * @param sinkId The id of the audio sink to use or null\n+     */\n+    public void play(AudioStream audioStream, String sinkId) {\n+        if (audioStream != null) {\n+            AudioSink sink = null;\n+            if (sinkId == null) {\n+                sink = getSink();\n+            } else {\n+                sink = audioSinks.get(sinkId);\n+            }\n+\n+            if (sink != null) {\n+                try {\n+                    sink.process(audioStream);\n+                } catch (UnsupportedAudioFormatException e) {\n+                    logger.error(\"Error playing '{}': {}\", audioStream.toString(), e.getMessage());\n+                }\n+            } else {\n+                logger.warn(\"Failed playing audio stream '{}' as no audio sink was found.\", audioStream.toString());\n+            }\n+        }\n+    }\n+\n+    /**\n+     * Plays an audio file from the \"sounds\" folder using the default audio sink.\n+     *\n+     * @throws AudioException in case the file does not exist or cannot be opened\n+     */\n+    public void playFile(String fileName) throws AudioException {\n+        playFile(fileName, null);\n+    }\n+\n+    /**\n+     * Plays an audio file from the \"sounds\" folder using the given audio sink.\n+     *\n+     * @throws AudioException in case the file does not exist or cannot be opened\n+     */\n+    public void playFile(String fileName, String sink) throws AudioException {\n+        File file = new File(System.getProperty(ConfigConstants.CONFIG_DIR_PROG_ARGUMENT) + File.separator + SOUND_DIR\n+                + File.separator + fileName);\n+        FileAudioStream is = new FileAudioStream(file);\n+        play(is, sink);\n+    }\n+\n+    /**\n+     * Stream audio from the passed url using the default audio sink.\n+     *\n+     * @throws AudioException in case the url stream cannot be opened\n+     */\n+    public void stream(String url) throws AudioException {\n+        stream(url, null);\n+    }\n+\n+    /**\n+     * Stream audio from the passed url to the given sink\n+     *\n+     * @param url The url to stream from\n+     * @param sinkId The id of the audio sink to use or null\n+     * @throws AudioException in case the url stream cannot be opened\n+     */\n+    public void stream(String url, String sinkId) throws AudioException {\n+\n+        AudioStream audioStream = new URLAudioStream(url);\n+\n+        AudioSink sink = null;\n+        if (sinkId == null) {\n+            sink = getSink();\n+        } else {\n+            sink = audioSinks.get(sinkId);\n+        }\n+\n+        if (sink != null) {\n+            try {\n+                sink.process(audioStream);\n+            } catch (UnsupportedAudioFormatException e) {\n+                logger.error(\"Error playing '{}': {}\", url, e.getMessage());\n+            }\n+        }\n+    }\n+\n+    /**\n+     * Retrieves the current volume of a sink\n+     *\n+     * @param sinkId the sink to get the volume for\n+     * @return the volume as a value between 0 and 1\n+     */\n+    public float getVolume(String sinkId) {\n+        AudioSink sink = null;\n+        if (sinkId == null) {\n+            sink = getSink();\n+        } else {\n+            sink = audioSinks.get(sinkId);\n+        }\n+\n+        if (sink != null) {\n+            try {\n+                return sink.getVolume();\n+            } catch (IOException e) {\n+                logger.error(\"An exception occured while getting the volume of sink {} : '{}'\", sink.getId(),\n+                        e.getMessage());\n+            }\n+        }\n+\n+        return 0;\n+\n+    }\n+\n+    /**\n+     * Sets the volume for a sink.\n+     *\n+     * @param sinkId the sink to set the volume\n+     * @param volume the volume to set as a value between 0 and 1\n+     */\n+    public void setVolume(String sinkId, float volume) {\n+        AudioSink sink = null;\n+        if (sinkId == null) {\n+            sink = getSink();\n+        } else {\n+            sink = audioSinks.get(sinkId);\n+        }\n+\n+        if (sink != null) {\n+            try {\n+                sink.setVolume(volume);\n+            } catch (IOException e) {\n+                logger.error(\"An exception occured while setting the volume of sink {} : '{}'\", sink.getId(),\n+                        e.getMessage());\n+            }\n+        }\n+    }\n+\n+    /**\n+     * Retrieves an AudioSource.\n+     * If a default name is configured and the service available, this is returned. Otherwise, the first available\n+     * service is returned.\n+     *\n+     * @return an AudioSource or null, if no service is available or if a default is configured, but no according\n+     *         service is found\n+     */\n+    public AudioSource getSource() {\n+        AudioSource source = null;\n+        if (defaultSource != null) {\n+            source = audioSources.get(defaultSource);\n+            if (source == null) {\n+                logger.warn(\"Default AudioSource service '{}' not available!\", defaultSource);\n+            }\n+        } else if (!audioSources.isEmpty()) {\n+            source = audioSources.values().iterator().next();\n+        } else {\n+            logger.debug(\"No AudioSource service available!\");\n+        }\n+        return source;\n+    }\n+\n+    /**\n+     * Retrieves an AudioSink.\n+     * If a default name is configured and the service available, this is returned. Otherwise, the first available\n+     * service is returned.\n+     *\n+     * @return an AudioSink or null, if no service is available or if a default is configured, but no according service\n+     *         is found\n+     */\n+    public AudioSink getSink() {\n+        AudioSink sink = null;\n+        if (defaultSink != null) {\n+            sink = audioSinks.get(defaultSink);\n+            if (sink == null) {\n+                logger.warn(\"Default AudioSink service '{}' not available!\", defaultSink);\n+            }\n+        } else if (!audioSinks.isEmpty()) {\n+            sink = audioSinks.values().iterator().next();\n+        } else {\n+            logger.debug(\"No AudioSink service available!\");\n+        }\n+        return sink;\n+    }\n+\n+    /**\n+     * Retrieves the ids of all sources\n+     *\n+     * @return ids of all sources\n+     */\n+    public Set<String> getSourceIds() {\n+        return audioSources.keySet();\n+    }\n+\n+    /**\n+     * Retrieves the ids of all sinks\n+     *\n+     * @return ids of all sources\n+     */\n+    public Set<String> getSinkIds() {\n+        return audioSinks.keySet();","path":"bundles/core/org.eclipse.smarthome.core.audio/src/main/java/org/eclipse/smarthome/core/audio/AudioManager.java","position":268,"original_position":268,"commit_id":"3349633ade7ccaa89ecf5a1196fbbce12d1575e7","original_commit_id":"3349633ade7ccaa89ecf5a1196fbbce12d1575e7","user":{"login":"maggu2810","id":204670,"avatar_url":"https://avatars.githubusercontent.com/u/204670?v=3","gravatar_id":"","url":"https://api.github.com/users/maggu2810","html_url":"https://github.com/maggu2810","followers_url":"https://api.github.com/users/maggu2810/followers","following_url":"https://api.github.com/users/maggu2810/following{/other_user}","gists_url":"https://api.github.com/users/maggu2810/gists{/gist_id}","starred_url":"https://api.github.com/users/maggu2810/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggu2810/subscriptions","organizations_url":"https://api.github.com/users/maggu2810/orgs","repos_url":"https://api.github.com/users/maggu2810/repos","events_url":"https://api.github.com/users/maggu2810/events{/privacy}","received_events_url":"https://api.github.com/users/maggu2810/received_events","type":"User","site_admin":false},"body":"See above","created_at":"2016-09-28T17:17:59Z","updated_at":"2016-09-28T17:17:59Z","html_url":"https://github.com/eclipse/smarthome/pull/2225#discussion_r80970309","pull_request_url":"https://api.github.com/repos/eclipse/smarthome/pulls/2225","_links":{"self":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/comments/80970309"},"html":{"href":"https://github.com/eclipse/smarthome/pull/2225#discussion_r80970309"},"pull_request":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/2225"}}},"pull_request":{"url":"https://api.github.com/repos/eclipse/smarthome/pulls/2225","id":87153634,"html_url":"https://github.com/eclipse/smarthome/pull/2225","diff_url":"https://github.com/eclipse/smarthome/pull/2225.diff","patch_url":"https://github.com/eclipse/smarthome/pull/2225.patch","issue_url":"https://api.github.com/repos/eclipse/smarthome/issues/2225","number":2225,"state":"open","locked":false,"title":"Split general audio from voice support","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":"- moved core.audio into a separate bundle\r\n- introduced AudioManager and made VoiceManager depend on it\r\n- added audio console commands\r\n- introduced URLAudioStream\r\n- introduced FileAudioStream\r\n- added volume control to sinks\r\n\r\nAlso-by: Karel Goderis <karel.goderis@me.com>\r\nSigned-off-by: Kai Kreuzer <kai@openhab.org>","created_at":"2016-09-28T16:23:09Z","updated_at":"2016-09-28T17:31:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99ca08bc204f2db86542185d9d76404a24f3329f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/smarthome/pulls/2225/commits","review_comments_url":"https://api.github.com/repos/eclipse/smarthome/pulls/2225/comments","review_comment_url":"https://api.github.com/repos/eclipse/smarthome/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/2225/comments","statuses_url":"https://api.github.com/repos/eclipse/smarthome/statuses/3349633ade7ccaa89ecf5a1196fbbce12d1575e7","head":{"label":"kaikreuzer:audio","ref":"audio","sha":"3349633ade7ccaa89ecf5a1196fbbce12d1575e7","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},"repo":{"id":15803647,"name":"smarthome","full_name":"kaikreuzer/smarthome","owner":{"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},"private":false,"html_url":"https://github.com/kaikreuzer/smarthome","description":"Eclipse SmartHome project","fork":true,"url":"https://api.github.com/repos/kaikreuzer/smarthome","forks_url":"https://api.github.com/repos/kaikreuzer/smarthome/forks","keys_url":"https://api.github.com/repos/kaikreuzer/smarthome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaikreuzer/smarthome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaikreuzer/smarthome/teams","hooks_url":"https://api.github.com/repos/kaikreuzer/smarthome/hooks","issue_events_url":"https://api.github.com/repos/kaikreuzer/smarthome/issues/events{/number}","events_url":"https://api.github.com/repos/kaikreuzer/smarthome/events","assignees_url":"https://api.github.com/repos/kaikreuzer/smarthome/assignees{/user}","branches_url":"https://api.github.com/repos/kaikreuzer/smarthome/branches{/branch}","tags_url":"https://api.github.com/repos/kaikreuzer/smarthome/tags","blobs_url":"https://api.github.com/repos/kaikreuzer/smarthome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaikreuzer/smarthome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaikreuzer/smarthome/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaikreuzer/smarthome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaikreuzer/smarthome/statuses/{sha}","languages_url":"https://api.github.com/repos/kaikreuzer/smarthome/languages","stargazers_url":"https://api.github.com/repos/kaikreuzer/smarthome/stargazers","contributors_url":"https://api.github.com/repos/kaikreuzer/smarthome/contributors","subscribers_url":"https://api.github.com/repos/kaikreuzer/smarthome/subscribers","subscription_url":"https://api.github.com/repos/kaikreuzer/smarthome/subscription","commits_url":"https://api.github.com/repos/kaikreuzer/smarthome/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaikreuzer/smarthome/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaikreuzer/smarthome/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaikreuzer/smarthome/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaikreuzer/smarthome/contents/{+path}","compare_url":"https://api.github.com/repos/kaikreuzer/smarthome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaikreuzer/smarthome/merges","archive_url":"https://api.github.com/repos/kaikreuzer/smarthome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaikreuzer/smarthome/downloads","issues_url":"https://api.github.com/repos/kaikreuzer/smarthome/issues{/number}","pulls_url":"https://api.github.com/repos/kaikreuzer/smarthome/pulls{/number}","milestones_url":"https://api.github.com/repos/kaikreuzer/smarthome/milestones{/number}","notifications_url":"https://api.github.com/repos/kaikreuzer/smarthome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaikreuzer/smarthome/labels{/name}","releases_url":"https://api.github.com/repos/kaikreuzer/smarthome/releases{/id}","deployments_url":"https://api.github.com/repos/kaikreuzer/smarthome/deployments","created_at":"2014-01-10T16:46:33Z","updated_at":"2016-02-27T18:28:33Z","pushed_at":"2016-09-28T16:25:58Z","git_url":"git://github.com/kaikreuzer/smarthome.git","ssh_url":"git@github.com:kaikreuzer/smarthome.git","clone_url":"https://github.com/kaikreuzer/smarthome.git","svn_url":"https://github.com/kaikreuzer/smarthome","homepage":null,"size":23128,"stargazers_count":2,"watchers_count":2,"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":2,"default_branch":"master"}},"base":{"label":"eclipse:master","ref":"master","sha":"5e5782f2058c5a641f5a3d49e02c5c3775d7628b","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":15778981,"name":"smarthome","full_name":"eclipse/smarthome","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/smarthome","description":"Eclipse SmartHome project","fork":false,"url":"https://api.github.com/repos/eclipse/smarthome","forks_url":"https://api.github.com/repos/eclipse/smarthome/forks","keys_url":"https://api.github.com/repos/eclipse/smarthome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/smarthome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/smarthome/teams","hooks_url":"https://api.github.com/repos/eclipse/smarthome/hooks","issue_events_url":"https://api.github.com/repos/eclipse/smarthome/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/smarthome/events","assignees_url":"https://api.github.com/repos/eclipse/smarthome/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/smarthome/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/smarthome/tags","blobs_url":"https://api.github.com/repos/eclipse/smarthome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/smarthome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/smarthome/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/smarthome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/smarthome/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/smarthome/languages","stargazers_url":"https://api.github.com/repos/eclipse/smarthome/stargazers","contributors_url":"https://api.github.com/repos/eclipse/smarthome/contributors","subscribers_url":"https://api.github.com/repos/eclipse/smarthome/subscribers","subscription_url":"https://api.github.com/repos/eclipse/smarthome/subscription","commits_url":"https://api.github.com/repos/eclipse/smarthome/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/smarthome/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/smarthome/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/smarthome/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/smarthome/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/smarthome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/smarthome/merges","archive_url":"https://api.github.com/repos/eclipse/smarthome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/smarthome/downloads","issues_url":"https://api.github.com/repos/eclipse/smarthome/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/smarthome/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/smarthome/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/smarthome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/smarthome/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/smarthome/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/smarthome/deployments","created_at":"2014-01-09T20:47:19Z","updated_at":"2016-09-28T08:54:18Z","pushed_at":"2016-09-28T16:25:59Z","git_url":"git://github.com/eclipse/smarthome.git","ssh_url":"git@github.com:eclipse/smarthome.git","clone_url":"https://github.com/eclipse/smarthome.git","svn_url":"https://github.com/eclipse/smarthome","homepage":null,"size":39291,"stargazers_count":355,"watchers_count":355,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":347,"mirror_url":null,"open_issues_count":217,"forks":347,"open_issues":217,"watchers":355,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/2225"},"html":{"href":"https://github.com/eclipse/smarthome/pull/2225"},"issue":{"href":"https://api.github.com/repos/eclipse/smarthome/issues/2225"},"comments":{"href":"https://api.github.com/repos/eclipse/smarthome/issues/2225/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/2225/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/2225/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/smarthome/statuses/3349633ade7ccaa89ecf5a1196fbbce12d1575e7"}}}}
{"actor":{"display_login":"maggu2810"}}