Announcement

Collapse
No announcement yet.

Turn debug loggin on and off from event or something?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Turn debug loggin on and off from event or something?

    I have an intermittent issue where BLRussound will turn a zone off before speech has finished. Also some times the russound zone doesn't go back to the source it had been on before. In order to solve these isues I obviously need to capture debug logs from both BLSpeech and BLRussound but since it's intermittent I'd need to leave debug logging on all the time. The logs would get unmanageably large fast. Is there a way I could have BLSpeech turn debug logging on before speech and off when done? Are there script commands to turn debug logging on and off? If so I could have BLSpeech run these scripts before and after speech.
    Originally posted by rprade
    There is no rhyme or reason to the anarchy a defective Z-Wave device can cause

    #2
    There are 2 scripting calls in each plugin:

    EnableDebugLogging

    Code:
    hs.PluginFunction("BLSpeech", "", "EnableDebugLogging", Nothing)
    DisableDebugLogging

    Code:
    hs.PluginFunction("BLSpeech", "", "DisableDebugLogging", Nothing)
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


      #3
      Originally posted by Blade View Post
      There are 2 scripting calls in each plugin:

      EnableDebugLogging

      Code:
      hs.PluginFunction("BLSpeech", "", "EnableDebugLogging", Nothing)
      DisableDebugLogging

      Code:
      hs.PluginFunction("BLSpeech", "", "DisableDebugLogging", Nothing)

      Thank you! I didn't see that in the BLSpeech help.

      Would you or someone be so kind as to help me translate that into an immediate script command?

      EDIT:

      Forget it. I figure out how to make a simple script to do it.

      But one last question. Is it OK to enable and disable debug logging like this? Will it just keep adding to the debug logs every time it starts up or will the debug logs be garbled?

      EDIT 2:

      Not so good. I have BLSpeech run this script before speaking:

      Code:
      Sub Main(ByVal Parms As Object)
      
      
      	hs.PluginFunction("BLSpeech", "", "EnableDebugLogging", Nothing)
      	hs.PluginFunction("BLRussound", "", "EnableDebugLogging", Nothing)
      
      End Sub
      It took 62 seconds from the time I hit the run button and a test speech event for debug logging to turn on and to hear TTS. During this time HS3 slowed to a crawl. I took a further 61 seconds for debug logging to turn back off. The script also only enabled and disabled debug logging for BLRussound.
      Last edited by S-F; May 16, 2015, 01:18 PM.
      Originally posted by rprade
      There is no rhyme or reason to the anarchy a defective Z-Wave device can cause

      Comment


        #4
        Use this in an event

        Code:
        &nhs.PluginFunction("BLSpeech", "", "EnableDebugLogging", Nothing)
        Cheers,
        Bob
        Web site | Help Desk | Feature Requests | Message Board

        Comment

        Working...
        X