Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fixed] - version 1.0.1 - reconnect to boblightd when connection is lost

  • Loading branch information...
commit 97a0ee232a01f074073ce0b134401e2602019e8d 1 parent 19d8d13
@Memphiz Memphiz authored
View
2  script.xbmc.boblight/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="script.xbmc.boblight" name="XBMC Boblight" version="1.0.0" provider-name="bobo1on1, Memphiz">
+<addon id="script.xbmc.boblight" name="XBMC Boblight" version="1.0.1" provider-name="bobo1on1, Memphiz">
<requires>
<import addon="xbmc.python" version="2.0"/>
</requires>
View
5 script.xbmc.boblight/changelog.txt
@@ -0,0 +1,5 @@
+1.0.1
+- ping boblightd and reconnect if connection is lost
+
+1.0.0
+- initial addon release
View
2  script.xbmc.boblight/default.py
@@ -50,7 +50,7 @@ def process_boblight():
capture = xbmc.RenderCapture()
capture.capture(capture_width, capture_height, xbmc.CAPTURE_FLAG_CONTINUOUS)
while not xbmc.abortRequested:
- if settings_checkForNewSettings():
+ if settings_checkForNewSettings() or not bob_ping():
reconnectBoblight()
settings_setup() #after reconnect reload settings
if settings_getBobDisable():
View
6 script.xbmc.boblight/resources/lib/boblight.py
@@ -199,3 +199,9 @@ def bob_geterror():
if g_boblightLoaded:
ret = c_char_p(g_libboblight.boblight_geterror(g_bobHandle)).value
return ret
+
+def bob_ping():
+ ret = False
+ if g_boblightLoaded and g_connected:
+ ret = c_int(g_libboblight.boblight_ping(g_bobHandle, None)).value == 1
+ return ret
Please sign in to comment.
Something went wrong with that request. Please try again.