Announcement

Collapse
No announcement yet.

[SCRIPT] SpeakPhoneMessages

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

  • completelyhis
    replied
    Gogs just turned me on to this script, and it seems really cool. I ran it, and it worked, except that after playing all the new messages, it went through and played them again as old messages, then it went on to other mail boxes. Here's the log from this:

    <TABLE cellSpacing=2 cellPadding=0 width="100%" border=0><TBODY><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:56:26 AM </TD><TD class=LOGType0 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry0 align=left colSpan=8>Got audio STOP at 5/17/2007 6:56:26 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:56:21 AM </TD><TD class=LOGType1 align=left colSpan=3>Info </TD><TD class=LOGEntry1 align=left colSpan=8>Speak ():There are 0 new messages, and 0 old messages in Ian's mailbox.</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:56:21 AM </TD><TD class=LOGType0 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry0 align=left colSpan=8>Got audio STOP at 5/17/2007 6:56:21 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:56:19 AM </TD><TD class=LOGType1 align=left colSpan=3>Info </TD><TD class=LOGEntry1 align=left colSpan=8>Speak ():Ian's mailbox.</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:56:19 AM </TD><TD class=LOGType0 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry0 align=left colSpan=8>Got audio STOP at 5/17/2007 6:56:19 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:56:14 AM </TD><TD class=LOGType1 align=left colSpan=3>Info </TD><TD class=LOGEntry1 align=left colSpan=8>Speak ():There are 0 new messages, and 0 old messages in Mac's mailbox.</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:56:14 AM </TD><TD class=LOGType0 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry0 align=left colSpan=8>Got audio STOP at 5/17/2007 6:56:14 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:56:12 AM </TD><TD class=LOGType1 align=left colSpan=3>Info </TD><TD class=LOGEntry1 align=left colSpan=8>Speak ():Mac's mailbox.</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:56:12 AM </TD><TD class=LOGType0 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry0 align=left colSpan=8>Got audio STOP at 5/17/2007 6:56:12 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:55:39 AM </TD><TD class=LOGType1 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry1 align=left colSpan=8>Got audio STOP at 5/17/2007 6:55:39 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:55:33 AM </TD><TD class=LOGType0 align=left colSpan=3>Info </TD><TD class=LOGEntry0 align=left colSpan=8>Speak ():Old message 3 left at 02:49 PM yesterday. from Ian Mcintosh.</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:55:33 AM </TD><TD class=LOGType1 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry1 align=left colSpan=8>Got audio STOP at 5/17/2007 6:55:33 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:55:00 AM </TD><TD class=LOGType0 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry0 align=left colSpan=8>Got audio STOP at 5/17/2007 6:55:00 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:54:54 AM </TD><TD class=LOGType1 align=left colSpan=3>Info </TD><TD class=LOGEntry1 align=left colSpan=8>Speak ():Old message 2 left at 01:02 PM yesterday.. No caller ID available.</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:54:54 AM </TD><TD class=LOGType0 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry0 align=left colSpan=8>Got audio STOP at 5/17/2007 6:54:54 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:54:22 AM </TD><TD class=LOGType1 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry1 align=left colSpan=8>Got audio STOP at 5/17/2007 6:54:22 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:54:16 AM </TD><TD class=LOGType0 align=left colSpan=3>Info </TD><TD class=LOGEntry0 align=left colSpan=8>Speak ():Old message 1 left at 10:31 AM yesterday. from Exground Fed.</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:54:16 AM </TD><TD class=LOGType1 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry1 align=left colSpan=8>Got audio STOP at 5/17/2007 6:54:16 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:54:03 AM </TD><TD class=LOGType0 align=left colSpan=3>Info </TD><TD class=LOGEntry0 align=left colSpan=8>Device: Upstairs bathroom Upstairs bathroom speaker (=2) ON</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:53:42 AM </TD><TD class=LOGType1 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry1 align=left colSpan=8>Got audio STOP at 5/17/2007 6:53:42 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:53:40 AM </TD><TD class=LOGType0 align=left colSpan=3>Info </TD><TD class=LOGEntry0 align=left colSpan=8>Device: Computer room Computer room speaker (=8) ON</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:53:36 AM </TD><TD class=LOGType1 align=left colSpan=3>Info </TD><TD class=LOGEntry1 align=left colSpan=8>Speak ():New message 3 left at 02:49 PM yesterday. from Ian Mcintosh.</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:53:36 AM </TD><TD class=LOGType0 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry0 align=left colSpan=8>Got audio STOP at 5/17/2007 6:53:36 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:53:32 AM </TD><TD class=LOGType1 align=left colSpan=3>Info </TD><TD class=LOGEntry1 align=left colSpan=8>Device: Downstairs Basement speaker (=6) ON</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:53:24 AM </TD><TD class=LOGType0 align=left colSpan=3>Info </TD><TD class=LOGEntry0 align=left colSpan=8>Device: Outside Back yard (=5) ON</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:53:04 AM </TD><TD class=LOGType1 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry1 align=left colSpan=8>Got audio STOP at 5/17/2007 6:53:04 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:52:57 AM </TD><TD class=LOGType0 align=left colSpan=3>Info </TD><TD class=LOGEntry0 align=left colSpan=8>Speak ():New message 2 left at 01:02 PM yesterday.. No caller ID available.</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:52:57 AM </TD><TD class=LOGType1 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry1 align=left colSpan=8>Got audio STOP at 5/17/2007 6:52:57 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:52:25 AM </TD><TD class=LOGType0 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry0 align=left colSpan=8>Got audio STOP at 5/17/2007 6:52:25 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:52:19 AM </TD><TD class=LOGType1 align=left colSpan=3>Info </TD><TD class=LOGEntry1 align=left colSpan=8>Speak ():New message 1 left at 10:31 AM yesterday. from Exground Fed.</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:52:19 AM </TD><TD class=LOGType0 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry0 align=left colSpan=8>Got audio STOP at 5/17/2007 6:52:19 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:52:14 AM </TD><TD class=LOGType1 align=left colSpan=3>Info </TD><TD class=LOGEntry1 align=left colSpan=8>Speak ():There are 3 new messages, and 0 old messages in Default's mailbox.</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:52:14 AM </TD><TD class=LOGType0 align=left colSpan=3>Media Player DEBUG </TD><TD class=LOGEntry0 align=left colSpan=8>Got audio STOP at 5/17/2007 6:52:14 AM PauseCount: 1</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>5/17/2007 6:52:12 AM </TD><TD class=LOGType1 align=left colSpan=3>Info </TD><TD class=LOGEntry1 align=left colSpan=8>Speak ()efault's mailbox.</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>5/17/2007 6:52:12 AM </TD><TD class=LOGType0 align=left colSpan=3>Info </TD><TD class=LOGEntry0 align=left colSpan=8>Running script in background: SpeakPhoneMessages-DDW.txt("SpeakPhoneMessages", "All|Play|All")</TD></TR></TBODY></TABLE>

    thanks,
    ian

    Leave a comment:


  • ldragon99
    replied
    quick question..

    I have this script running when I get home and tell HS I am home. Everything seems to be working but when hs speaks it is speaking over the phone. I want this to play from my house speakers, witch are hooked to my sound card. how do I fix this?

    Leave a comment:


  • TrOjAn
    replied
    Ahhhh thats good.. now to your next? problem LOL good luck

    Leave a comment:


  • bpm32
    replied
    Solved

    Okay... well I'm an idiot! I didn't realize I had to have those lines in the same script file as the speakphonemessages script file. I had them in a script all to itself.

    Once I put those lines in there and tested it, all went well.

    So, thanks for your time and patience with me!

    It's working great!

    Brian

    Leave a comment:


  • TrOjAn
    replied
    How many mailboxes do you have? I only have one and my portion of the script looks like this:

    sub main()
    call SpeakPhoneMessages("New|Play|All")
    end sub

    NOTE the "call" at the start of the line, yours is missing?

    Also, in your error it implies its looking for DDW I am thinking you may have deleted a - or another character to leave the DDW on its own, try using the standard script and see what happens.

    TrOjAn

    Leave a comment:


  • bpm32
    replied
    Does anyone have any thoughts on this? This script could be an incredibly useful one here.

    TIA!

    Brian

    Leave a comment:


  • bpm32
    replied
    Thanks for the quick response.

    Unfortunately, I had already tried that one. I was having other problems prior to using that to overwrite the original. That had cleared those up, but now it introduced this new error message.

    Any other thoughts?

    Thanks again!

    Brian

    p.s. I'm on HS 2.2041

    Leave a comment:


  • TrOjAn
    replied
    looks like you are missing the includes file for this script, look 4 posts up grab that and place it your scripts dir

    TrOjAn

    Leave a comment:


  • bpm32
    replied
    I hate to reopen an old thread, but I'm having some troubles with this.

    The following is logged when I call this script from an event:

    <TABLE cellSpacing=2 cellPadding=0 width="100%" border=0><TBODY><TR><TD class=LOGDateTime0 noWrap align=left>2/4/2006 11:23:19 AM </TD><TD class=LOGType0 align=left colSpan=3>Info </TD><TD class=LOGEntry0 align=left colSpan=8>Speak ():New message 1 left at 09:25 PM last Wednesday from Charles and Betty XXXXX.</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2/4/2006 11:23:14 AM </TD><TD class=LOGType1 align=left colSpan=3>Info </TD><TD class=LOGEntry1 align=left colSpan=8>Speak ():There is 1 new message, and 0 old messages in Brian's mailbox.</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2/4/2006 11:23:12 AM </TD><TD class=LOGType0 align=left colSpan=3>Info </TD><TD class=LOGEntry0 align=left colSpan=8>Speak ():Brian's mailbox.</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2/4/2006 11:23:12 AM </TD><TD class=LOGType1 align=left colSpan=3>Error </TD><TD class=LOGEntry1 align=left colSpan=8>Running script, script run or compile error in file: speak_voicemail.txt424:Object required: 'DDW' in line 2 More info: Object required: 'DDW'</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2/4/2006 11:23:12 AM </TD><TD class=LOGType0 align=left colSpan=3>Info </TD><TD class=LOGEntry0 align=left colSpan=8>Running script in background: speak_voicemail.txt</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2/4/2006 11:23:12 AM </TD><TD class=LOGType1 align=left colSpan=3>Info </TD><TD class=LOGEntry1 align=left colSpan=8>Running script in background: SpeakPhoneMessages-DDW.txt</TD></TR></TBODY></TABLE>


    If I just run the script by itself it reports that I have messages. But, if I run the script as seen below, I get an error message about requiring DDW.

    This is what I've got in my script:


    Sub Main
    SpeakPhoneMessages-DDW.txt ("main","All|Play|All")
    End Sub

    I've also tried replacing "main" with "SpeakPhoneMessages" as suggested by the inline help.

    Can anyone direct me on this?

    Thanks in advance!!

    Brian

    Leave a comment:


  • nsisman
    replied
    Doug,

    Thanks so much....it is working for me !

    My messages are being cut off before they end but it's in my modem set up not your programming. The modem gives a weird little beep just before it cuts off ?

    (Anyone know the proper default timings for the PCI modem within the Homeseer phone setup screens ?)

    Now I can press a button C10 "on" at the back door and have Homeseer tell me if there are messages and read them as well .

    Again thanks very much and good luck with your transition to 2.0 !

    Neil

    Leave a comment:


  • TrOjAn
    replied
    Doug

    TEST Version--2.0.1997.0
    23/10/2005 09:12:48 Info Running script statement immediately: &hs.writelog "TEST","Version--" & hs.version
    23/10/2005 09:12:46 TEST Version--2.0.1997.0
    23/10/2005 09:12:46 Info Running script statement immediately: &hs.writelog "TEST","Version--" & hs.version
    23/10/2005 09:12:44 TEST Version--2.0.1997.0


    Not tested the include yet.. ***UPDATE***

    Doug.. errr I think you fixed it! first tryouts seem to be working OK.

    Will let you know how it ges this week.. THANKS!
    Last edited by TrOjAn; October 23rd, 2005, 03:07 AM.

    Leave a comment:


  • dwoolridge
    replied
    Actually, I haven't tried 2.0 yet. I'm just trying to help you guys out.

    I might be able to help if you can help me with the following:

    Create an event in Homeseer v2.0
    for the event script enter:
    &hs.writelog "TEST","Version--" & hs.version

    Please post what was recorded in Homeseers Log


    Attached is an attempt to fix the problem. Please replace your existing "VoicemailIncludes-DDW.txt" with this one and let me know what happens.

    I will update the main script once we get this working.

    --Doug
    Attached Files

    Leave a comment:


  • TrOjAn
    replied
    Yes as Neil has stated the filenames did / have changed.

    Glad to see you have started trying HS2 doug.

    This post, http://board.homeseer.com/showpost.p...52&postcount=6 may help you out in the script.

    It does work with HS2 but at this time it does not wait for the first message to finnish before it announces the second.

    Hope it helps a bit

    TrOjAn

    Leave a comment:


  • nsisman
    replied
    Hi Doug,

    there is an option under the phone setup (advanced) to save as wav (default) or mp3.

    I checked the mp3 option and 2 files are saved in the messages folder

    2005-10-22_19-44-58.wav

    and

    2005-10-22_19-44-58.mp3

    After the underscore I presume are the times.

    Hope this helps you out.

    The messages will play fine in media player and over the phone as well if I use the # command after picking up the handset and then say "messages"

    Neil

    Leave a comment:


  • dwoolridge
    replied
    Good News and Bad News

    The good news is I had some time to try HS2.0 last night...

    The bad news is that I had problems with the installation. I couldn't get the Speaker Client to work, and also got errors related to the scripting engine (yes, the .NET framework is installed).

    I had tried to install 2.0 before, and I ended up with the DCOM settings between IIS and Homeseer v1.7 completely messed up, forcing me to rebuild my system. Fortunately that didn't happen this time I installed (and un-installed) 2.0.

    OK, I've looked a bit more. Can you give me some examples of the filenames for your voicemail messages (in your HomeSeer\messages folder). I wonder if the file name format changed from 1.7 to 2.0.

    -Doug

    Leave a comment:

Working...
X