Skip to content

Commit e254424

Browse files
committed
Initial commit
1 parent 2932e1f commit e254424

36 files changed

+8694
-1
lines changed

LICENSE.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2013 Hyperion Team
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
script.service.hyperion
2+
=======================
3+
4+
XBMC addon to capture video data and send it to Hyperion. Note that this plugin will not work for XBMC running on the Raspberry Pi, because the video capture interface is not (yet?) supported on this device.
5+
6+
Information about Hyperion can be found here: https://github.com/tvdzwan/hyperion/wiki

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
script.service.hyperion
22
=======================
33

4-
XBMC addon to capture video data and send it to Hyperion
4+
XBMC addon to capture video data and send it to Hyperion. Note that this plugin will not work for XBMC running on the Raspberry Pi, because the video capture interface is not (yet?) supported on this device.
5+
6+
Information about Hyperion can be found here: https://github.com/tvdzwan/hyperion/wiki

addon.py

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
'''
2+
XBMC video capturer for Hyperion
3+
4+
Copyright (c) 2013 Hyperion Team
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
THE SOFTWARE.
23+
'''
24+
25+
import xbmc
26+
import xbmcaddon
27+
import xbmcgui
28+
import os
29+
30+
# Add the library path before loading Hyperion
31+
__addon__ = xbmcaddon.Addon()
32+
__cwd__ = __addon__.getAddonInfo('path')
33+
sys.path.append(xbmc.translatePath(os.path.join(__cwd__, 'resources', 'lib')))
34+
35+
from settings import Settings
36+
from state import DisconnectedState
37+
38+
if __name__ == "__main__":
39+
# read settings
40+
settings = Settings()
41+
42+
# initialize the state
43+
state = DisconnectedState(settings)
44+
45+
# start looping
46+
while not settings.abort:
47+
# execute the current state
48+
next_state = state.execute()
49+
50+
# delete the old state if necessary
51+
if state != next_state:
52+
del state
53+
54+
# advance to the next state
55+
state = next_state
56+
57+
# clean up the state closing the connection if present
58+
del state
59+
del settings

addon.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<addon id="script.service.hyperion" name="Hyperion ambilight" version="1.0.0" provider-name="poljvd|tvdzwan">
3+
<requires>
4+
<import addon="xbmc.python" version="2.1.0"/>
5+
</requires>
6+
<extension point="xbmc.service" library="addon.py" start="login"></extension>
7+
<extension point="xbmc.addon.metadata">
8+
<summary lang="en">XBMC video capture addon for Hyperion.</summary>
9+
<description lang="en">Hyperion is an open source ambilight clone for the Raspberry Pi</description>
10+
<platform>all</platform>
11+
<website>https://github.com/tvdzwan/hyperion/wiki</website>
12+
<source>https://github.com/poljvd/script.service.hyperion</source>
13+
<forum></forum>
14+
<email></email>
15+
</extension>
16+
</addon>

changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
1.0.0
2+
- initial addon release

icon.png

66 KB
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<strings>
3+
<string id="32001">General</string>
4+
<string id="32002">Enable Hyperion</string>
5+
<string id="32003">Hyperion host address</string>
6+
<string id="32004">Hyperion host port</string>
7+
<string id="32005">Hyperion priority</string>
8+
<string id="32006">Reconnect timeout (s)</string>
9+
<string id="32007">Enable when on screensaver</string>
10+
11+
<string id="32100">Unable to connect to Hyperion</string>
12+
<string id="32101">Unable to send image to Hyperion</string>
13+
</strings>
File renamed without changes.

resources/lib/google/protobuf/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)