Skip to content

Commit

Permalink
Merge pull request #34 from zim514/dev
Browse files Browse the repository at this point in the history
Add option to disable connection message
  • Loading branch information
Snapcase authored Oct 6, 2019
2 parents 25f125f + 41cc09e commit 9942981
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script.service.hue/addon.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<addon id="script.service.hue" name="Hue Service" provider-name="zim514" version="0.9.2">
<addon id="script.service.hue" name="Hue Service" provider-name="zim514" version="0.9.3">
<requires>
<import addon="xbmc.python" version="2.26.0" />
<import addon="script.module.requests" version="2.22.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,11 @@ msgid "Maximum Brightness"
msgstr "Maximum Brightness"


msgctxt "#30812"
msgid "Disable connection message"
msgstr "Disable connection message"


msgctxt "#30069"
msgid "Recommended minimum update interval: 100ms"
msgstr ""
Expand Down
2 changes: 1 addition & 1 deletion script.service.hue/resources/lib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def service():
monitor = kodiHue.HueMonitor()


bridge = kodiHue.connectBridge(monitor,silent=False)
bridge = kodiHue.connectBridge(monitor,silent=globals.disableConnectionMessage)

if bridge is not None:
globals.settingsChanged = False
Expand Down
1 change: 1 addition & 0 deletions script.service.hue/resources/lib/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
enableSchedule = False
performanceLogging = False
ambiEnabled = False
connectionMessage = False

videoMinimumDuration = 0
video_enableMovie = True
Expand Down
3 changes: 3 additions & 0 deletions script.service.hue/resources/lib/kodiHue.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ def loadSettings():
globals.startTime = globals.ADDON.getSetting("startTime") #string HH:MM
globals.endTime = globals.ADDON.getSetting("endTime") #string HH:MM
globals.performanceLogging = globals.ADDON.getSettingBool("performanceLogging")
globals.disableConnectionMessage = globals.ADDON.getSettingBool("disableConnectionMessage")



globals.videoMinimumDuration = globals.ADDON.getSettingInt("video_MinimumDuration") #Setting in Minutes. Kodi library uses seconds, needs to be converted.
globals.video_enableMovie = globals.ADDON.getSettingBool("video_Movie")
Expand Down
2 changes: 2 additions & 0 deletions script.service.hue/resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@
<setting type="sep"/>
<setting id="separateLogFile" type="bool" label="32105" default="False"/>
<setting id="performanceLogging" type="bool" label="30068" default="False"/>
<setting id="disableConnectionMessage" type="bool" label="30812" default="False"/>

</category>
</settings>

Expand Down

0 comments on commit 9942981

Please sign in to comment.