Announcement

Collapse
No announcement yet.

I need help de-bugging. This used to work

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

    I need help de-bugging. This used to work

    I need some help from the script masters. [img]/infopop/emoticons/icon_smile.gif[/img]

    Mitch Matteau wrote this script and shared it with me to use.

    It's a script that logs all callers to a web page that gets updated by HomeSeer everytime a person calls in. The event is triggered by 'On CID available' and was working with no problems until I updated to Win2K.

    When a person calls in it no longer logs to the page, the part that updates a device and write to the HS log works with no problems.
    I get no errors in the log.

    I have attached the script.
    Thanks

    Dan-O
    My system specs are in my profile
    (Current beta as always)
    Attached Files

    #2
    I also have errors when this script runs at midnight on Monday morning to clear the log.

    This script logs and error in the HS log
    11/25/2002 12:01:01 AM~!~Error~!~Script error in file: Replace Caller Log.txt: 438:Object doesn't support this property or method: 'HSFso.Close' in line 6

    Thanks for any help!

    Dan-O
    My system specs are in my profile
    (Current beta as always)



    Attached Files

    Comment


      #3
      Thanks for the credit in that script! I'd forgotten that I wrote it. Of course, I'm no longer using HSPhone since the move to Europe - haven't been able to interface to the funky phone system set-up in the house I'm renting (was an old dentist's office and the phone is some sort of PBX).

      Have you checked to see if ANY file is being written, i.e., "phone.htm". May be it's being sent to a different directory because of your upgrade?

      Add a hs.writelog "DEBUG",S statement to see if the information is actually being picked up. If the log updates are occurring, my guess is that the output file is just going somewhere that you are not expecting it to.

      Just some thoughts.

      Mitch

      http://www.midondesign.com
      http://www.midondesign.com

      Comment


        #4
        Mitch,
        That push in the right direction was what I needed. I was writting to the file too early. I moved the part that opens and writes to the html file later in the script and it works with no problems.

        Any ideas about the error I'm getting when I try to rotate the log out and place the new one in. The script works, I just get the error in my log.

        Thanks for the help and ideas.

        Dan-O
        My system specs are in my profile
        (Current beta as always)

        Comment


          #5
          Great!

          As for the other error, just remove the line HSFso.Close. It doesn't do anything for the copyfile function. FSO.Close needs to be associated with a file write object, not a copyfile object.

          Mitch

          http://www.midondesign.com
          http://www.midondesign.com

          Comment

          Working...
          X