Skip to content

getting error: Undefined variable: url #1

@9H1LO

Description

@9H1LO

[Nov 21 14:17:45] debug: # [172.16.10.60] (PID=32116) Connected from port 50680
[Nov 21 14:17:45] debug: # [172.16.10.60] (PID=32116) Received => ▒▒▒{ "Address" : "0x3C0A10AC", "Channel" : 0, "Descrip" : "", "Event" : "MotionDetect", "SerialID" : "0012123bd301", "StartTime" : "2017-11-21 14:17:31", "Status" : "Start", "Type" : "Alarm" }
PuTTY[Nov 21 14:17:45] info: # [172.16.10.60] parsing 'hisilicon' message ...
[Nov 21 14:17:45] debug: # [172.16.10.60] processing actions...
[Nov 21 14:17:45] info: # [172.16.10.60] ACTION=custom_url , url = http://172.16.10.100:8081/CMD?Light_Liv_Entrance=0
[Nov 21 14:17:45] warning: [PHP Warning] Missing argument 2 for PhpCameraAlarmProcess::action_custom_url(), called in /root/cam_test/lib/process.php on line 56 and defined [l:113]
[Nov 21 14:17:45] debug: [PHP Notice] Undefined variable: url
[Nov 21 14:17:45] err: # ERR! callUrl canceled : No URL provided [l:107]
[Nov 21 14:17:45] warning: [PHP Warning] socket_shutdown(): unable to shutdown socket [107]: Transport endpoint is not connected [l:56]
[Nov 21 14:17:45] debug: # [172.16.10.60] (PID=32116) Disconnected
[Nov 21 14:17:46] debug: # [172.16.10.60] (PID=32116) Connected from port 50681
[Nov 21 14:17:46] debug: # [172.16.10.60] (PID=32116) Received => ▒▒▒{ "Address" : "0x3C0A10AC", "Channel" : 0, "Descrip" : "", "Event" : "MotionDetect", "SerialID" : "00222222222", "StartTime" : "2017-11-21 14:17:32", "Status" : "Stop", "Type" : "Alarm" }
[Nov 21 14:17:46] info: # [172.16.10.60] parsing 'hisilicon' message ...
[Nov 21 14:17:46] debug: # [172.16.10.60] process canceled : ignored 'Stop' status
[Nov 21 14:17:46] warning: [PHP Warning] socket_shutdown(): unable to shutdown socket [107]: Transport endpoint is not connected [l:56]
[Nov 21 14:17:46] debug: # [172.16.10.60] (PID=32116) Disconnected

setup config:
$cfg['cameras']['172.16.10.60']['type']= 'hisilicon';
$cfg['cameras']['172.16.10.60']['actions']['url_custom']['url'] = 'http://172.16.10.100:8081/CMD?Light_Liv_Entrance=0'; // custom URL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions