Announcement

Collapse
No announcement yet.

How to surpress log entries...

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

    How to surpress log entries...

    I have a script that rotates throught the house polling x10 switches to update their status, because they are often incorrect/out of date. However, this fills up my log with reams of status requests and responses. Is there a way to surpress this?

    Thanks,

    Jerry

    ______Here's an example of the log entries...

    11/1/2002 4:29:56 PM~!~Send X10 from ext interface~!~G6 Status Request dim: 0 extra: 0
    11/1/2002 4:29:58 PM~!~X10 Received~!~G6 (third floor guest bath 1) G Status Off
    11/1/2002 4:30:06 PM~!~Send X10 from ext interface~!~G5 Status Request dim: 0 extra: 0
    11/1/2002 4:30:08 PM~!~X10 Received~!~G5 (third floor guest room) G Status Off

    _______Here's a snip of the code...

    set device = hs.GetDevice(i) 'get pointer to device structure
    devicecode = device.hc+device.dc 'get the device code

    ' If device is a 'switchlinc', then request it to send it status.

    if device.dev_type_string = "SwitchLinc" then
    dt = hs.devicetime(devicecode) 'store the devicetime - status request resets it.
    hs.execx10 devicecode,"Status Request",0,0
    hs.waitsecs 10 'reduce traffic on powerline

    ' Sometimes, this returns value "unknown". If so, give it two more tries.

    ' If status is unknown (17), then request it to send it status again.
    if hs.devicestatus(devicecode) = 17 then
    hs.execx10 devicecode,"Status Request",0,0
    hs.waitsecs 10
    end if


    ' One last try. If status is unknown (17), then request it to send it status again.
    if hs.devicestatus(devicecode) = 17 then
    hs.execx10 devicecode,"Status Request",0,0
    hs.waitsecs 10
    end if

    if hs.devicestatus(devicecode) = 17 then
    hs.writelog "**NOTICE**", "Device "+devicecode+" not responding to status request."
    end if

    hs.setdevicetime devicecode, dt 'reset the device time
    end if

    #2
    Look in the help file for NoLog (HS.NoLog)

    -Rupp
    ...One Nation Under GOD, Indivisible, With Liberty And Justice For All.
    -Rupp
    sigpic

    Comment


      #3
      I'll give it a try...

      Comment


        #4
        OK, hs.nolog sort of worked. It surpresses the outgoing x10 messages, but not the inbound status responses. Now the log looks like the below. Any suggestions on how to surpress the status response messages would be appreciated.

        Jerry



        12/5/2002 9:40:46 AM~!~X10 Received~!~B4 (first floor dining room chandelier) B Status Off
        12/5/2002 9:40:56 AM~!~X10 Received~!~B5 (first floor dining room sconces) B Status Off
        12/5/2002 9:41:06 AM~!~X10 Received~!~B6 (first floor mud room) B Status Off
        12/5/2002 9:41:17 AM~!~X10 Received~!~B7 (first floor rear kitchen counter) B Status Off
        12/5/2002 9:41:28 AM~!~X10 Received~!~B8 (first floor kitchen sink light) B Status Off
        12/5/2002 9:41:37 AM~!~X10 Received~!~B10 (first floor kitchen table chandelier) B Status Off
        12/5/2002 9:41:47 AM~!~X10 Received~!~B11 (first floor kitchen task lighting) B Status Off
        12/5/2002 9:41:57 AM~!~X10 Received~!~B12 (first floor kitchen sitting area overhead dome) B Status Off
        12/5/2002 9:42:08 AM~!~X10 Received~!~B3 (basement basement main room) B Status Off
        12/5/2002 9:42:09 AM~!~X10 Received~!~B13 (first floor kitchen sitting area overheads) B Status Off
        12/5/2002 9:42:18 AM~!~X10 Received~!~B14 (first floor kitchen island hanging lamps) B Status Off
        12/5/2002 9:42:18 AM~!~X10 Received~!~B13 (first floor kitchen sitting area overheads) B Status Off
        12/5/2002 9:42:29 AM~!~X10 Received~!~B15 (first floor billiard room overheads) B Status Off
        12/5/2002 9:42:38 AM~!~X10 Received~!~B16 (first floor media room overheads) B Status Off
        12/5/2002 9:42:48 AM~!~X10 Received~!~C2 (first floor mechanical room overheads) C Status Off
        12/5/2002 9:42:58 AM~!~X10 Received~!~C3 (first floor a/v cabinet) C Status Off
        12/5/2002 9:43:08 AM~!~X10 Received~!~C4 (first floor living room overheads) C Status Off
        12/5/2002 9:43:18 AM~!~X10 Received~!~C6 (first floor living room corner halogens) C Status Off
        12/5/2002 9:43:30 AM~!~X10 Received~!~C7 (first floor entry hall bookcases) C Status Off
        12/5/2002 9:43:40 AM~!~X10 Received~!~C8 (first floor entry hall sconces) C Status Off

        Comment


          #5
          Just open the device properties and somewhere on the right side, there is a propertie to turn off the logging.

          After this, the only recieved x-10 commands that are logged are the ones for which you do not have a device set up.

          Greetings,

          Richard

          Comment

          Working...
          X