Here is a simple script to update hsp address book with the current addresses based on phone numbers received. Once caller id is received, via an event, the script performs a reverse number lookup and then updates the address book based on the information acquired. Directions are within the file and it does work with hs2.
Announcement
Collapse
No announcement yet.
hsp address updater
Collapse
X
-
OK, I partially figured this out.
My Telco passes CID as 1234567890, not 123-456-7890, ot 1-123-456-7890.
The script seemed to be setup for 1-123-456-7890, so I adjusted it so it reads:
Code:area_code = Mid(callnmbr, 1, 3) city_code = Mid(callnmbr, 4, 3) local_code = Mid(callnmbr, 7, 4)
Code:Area_code2 = Mid(callnmbr, 1, 3) City_Code2 = Mid(callnmbr, 4, 3) Local_Code2 = Mid(callnmbr, 7, 4)
Code:newcallnmbr = "1-" & area_code & "-" & city_code & "-" & local_code
Code:newcallnmbr = area_code & "-" & city_code & "-" & local_code
Code:Error~!~Script error in file: Phone_Book_Address_Updater2.txt: 9:Subscript out of range: 'j' in line 122
PHP Code:while spldata(j) <> "map"
Last edited by jrfuda; January 20, 2006, 02:19 PM.John
Hardware: i5-6400T w/16GB RAM & SSD w/HS3Pro, Z-Net, Harmony Hub x2, Echo Dot x2, Ocelot
Plugins: Z-wave, HSTouch, BLBackup, Harmony, GTS CPUXA, UltraMon3, Nest
HSTouch: Multiple Android Devices; 5 x ToteVision MD-1001 10.1" Win 7 Tablets
Devices: Cooper RF9501 x4, RF9517 x6, RF9534 x1, RF9540-N x7, RF9542 x1, RF9542-Z x2, RFHDSCG x1, RFWC5 x5; Intermatic HA02 x6; FortrezZ MIMOLite x3; Leviton VRPD3-1LW x4, VRR15-1LZ x6; Nest Tstat & 9x Protects; Dragon PD-100 x3, PA-100 x3
Comment