Originally posted by jon00
View Post
Code:
[TABLE="class: log_table_row, cellspacing: 0"] [TR] [TD="class: LogDateShort LogDateTime0, align: left"][COLOR=#FF0000]Dec-18 11:41:39 [/COLOR][/TD] [TD="class: LogPri0, align: left"] [/TD] [TD="class: LogType0, colspan: 3, align: left"][COLOR=#FF0000]Jon00_DataScrape [/COLOR][/TD] [TD="class: LogEntry0, colspan: 8, align: left"][COLOR=#FF0000]Error - Cannot access path: [/COLOR][/TD] [/TR] [/TABLE] [TABLE="class: log_table_row, cellspacing: 0"] [TR] [TD="class: LogDateShort LogDateTime1, align: left"][COLOR=#000000]Dec-18 11:41:39 [/COLOR][/TD] [TD="class: LogPri1, align: left"] [/TD] [TD="class: LogType1, colspan: 3, align: left"][COLOR=#000000]Event [/COLOR][/TD] [TD="class: LogEntry1, colspan: 8, align: left"][COLOR=#000000]Running script in background: C:/Program Files (x86)/HomeSeer HS3/scripts/Jon00DataScraper.vben("Main","1") [/COLOR][/TD] [/TR] [/TABLE] [TABLE="class: log_table_row, cellspacing: 0"] [TR] [TD="class: LogDateShort LogDateTime0, align: left"][COLOR=#000000]Dec-18 11:41:39 [/COLOR][/TD] [TD="class: LogPri0, align: left"] [/TD] [TD="class: LogType0, colspan: 3, align: left"][COLOR=#000000]Event [/COLOR][/TD] [TD="class: LogEntry0, colspan: 8, align: left"][COLOR=#000000]Event Trigger "Security UpdateDoorLockStatus" [/COLOR][/TD] [/TR] [/TABLE] [TABLE="class: log_table_row, cellspacing: 0"] [TR] [TD="class: LogDateShort LogDateTime1, align: left"][COLOR=#000000]Dec-18 11:41:39 [/COLOR][/TD] [TD="class: LogPri1, align: left"] [/TD] [TD="class: LogType1, colspan: 3, align: left"][COLOR=#000000]Event [/COLOR][/TD] [TD="class: LogEntry1, colspan: 8, align: left"][COLOR=#000000]Event Security UpdateDoorLockStatus triggered by the event page 'Run' button[/COLOR][/TD] [/TR] [/TABLE]
Code:
[Grab1] Path="C:\ProgramData\vsure\lockstatus.txt" TextFile=0 Encoding= Username= Password= Options= UserAgent= Devicemode=3 StripHTML=0 Pattern1=(?s)Front Door.*?currentLockState": "(.*?)", Pattern2=(?s)Side Door.*?currentLockState": "(.*?)", DeviceName1=Front Door Status DeviceName2=Side Door Status DeviceText1=[0] DeviceText2=[100] DeviceValue1=[0] [replace "UNLOCKED","0"][replace "LOCKED","100"] DeviceValue2=[100] [replace "UNLOCKED","0"][replace "LOCKED","100"]
Code:
[ { "deviceLabel": "XXX", "area": "Front Door", "method": "THUMB", "lockedState": "UNLOCKED", "currentLockState": "UNLOCKED", "pendingLockState": "NONE", "eventTime": "2018-12-18T07:33:58.000Z", "secureModeActive": false, "motorJam": false, "paired": true }, { "deviceLabel": "XXX", "area": "Side Door", "userString": "YYY", "method": "TAG", "lockedState": "UNLOCKED", "currentLockState": "UNLOCKED", "pendingLockState": "NONE", "eventTime": "2018-12-18T07:26:11.000Z", "secureModeActive": false, "motorJam": false, "paired": true } ]
Is it the spaces in "Front Door" and "Side Door"?
Comment