Announcement
Collapse
No announcement yet.
[ASPx] Phone Message Web Interface
Collapse
X
-
MBMessage filename format
Could one of the UK users confirm the following for the files in the Homeseer 2/Messages directory:
Is the filename for the messages in the format of:
a) YYYY-MM-DD_hh-mm-ss.wav
-OR-
b) YYYY-DD-MM_hh-mm-ss.wav
Looking at jon00's sample code, it appears that Homeseer stores the filename in format (a) no matter of the local date format setting.
If this is true, then the following code should work for either US or UK date formats. Let me know and I'll make the changes.
Find the lines from:
sTemp = hsp.MBMessageDate(hspMessage)
-TO-
End Select
Replace with:
Dim dTemp as Date=DateSerial(Left(hspMessage,4),Mid(hspMessage,6,2),Mid(h spMessage,9,2))
iTemp = DateDiff("d",dTemp,Now())
Select Case iTemp
Case 0
sTemp="TODAY-"
Case 1
sTemp="Yesterday-"
Case < 7
sTemp=WeekdayName(Weekday(dTemp))
Case Else
sTemp = cStr(dTemp)
End Select
Thanks,
Doug
Comment
-
New version available (v0.2)
Version 0.2 has been uploaded to the script library HERE.
v0.2:
--------------------------------------------
1) Fixed date conversion bug
2) Added support to use Mailbox Passcodes
To use the Mailbox Passcodes feature, create the file "PhoneMessageList-DDW.ini" in the "Homeseer 2/config" directory with the following content:
Code:[Settings] UseMBPasscode = True
Comment
-
This is very nice - much easier to get to a message, thanks!
A future feature-enhancement might be to look up the phone number in the address book and show who the call is from, when available. Most CallerID info is either "Cell Phone" or the state name (at least in my case), so it would make it easier to find the message you're looking for if it showed the caller's name.
My Voicemail log:
12/15/2006 05:45 PM Culver Or 0:52
12/19/2006 03:57 PM Cell Phone In 0:14
12/19/2006 05:00 PM Cell Phone In 0:43
12/24/2006 03:42 PM Cell Phone In 0:17
12/24/2006 05:48 PM Cell Phone In 0:19
12/27/2006 06:27 PM Cell Phone In 0:22
01/01/2007 06:33 PM Cell Phone In 0:17
01/22/2007 04:17 PM Indianapolis In 0:34
02/08/2007 05:37 PM Corp Receivable 0:19
02/17/2007 06:50 PM Cell Phone Oh 0:29
02/28/2007 05:17 PM Indianapolis In 0:13
Monday 09:57 AM Fam Funeral Car 0:19
Comment
Comment