-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhikvision.html
169 lines (157 loc) · 5.14 KB
/
hikvision.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<script type="text/javascript">
RED.nodes.registerType('hikvision-credentials', {
category: 'config',
color: '#a6bbcf',
defaults: {
screen_name: {
value: ""
}
},
credentials: {
host: {
type: "text"
},
port: {
type: "text"
},
username: {
type: "text"
},
password: {
type: "password"
}
},
exportable: false,
icon: "",
label: function() {
return this.screen_name || "hikvision-credentials";
}
});
</script>
<script type="text/x-red" data-template-name="hikvision-credentials">
<div class="form-row">
<label for="node-config-input-screen_name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-config-input-screen_name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-config-input-host"><i class="icon-tag"></i> Host</label>
<input type="text" id="node-config-input-host" placeholder="cctv.example.org">
</div>
<div class="form-row">
<label for="node-config-input-port"><i class="icon-tag"></i> Port</label>
<input type="text" id="node-config-input-port" placeholder="80">
</div>
<div class="form-row">
<label for="node-config-input-username"><i class="icon-tag"></i> Username</label>
<input type="text" id="node-config-input-username" placeholder="admin">
</div>
<div class="form-row">
<label for="node-config-input-password"><i class="icon-tag"></i> Password</label>
<input type="password" id="node-config-input-password" placeholder="">
</div>
</script>
<script type="text/x-red" data-help-name="hikvision-credentials">
<p>Configure the credentials for the Hikvision IP Camera</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('hikvision-alarm-in', {
category: 'hikvision',
color: '#a6bbcf',
defaults: {
name: {
value: ""
},
hikvision: {
type: "hikvision-credentials",
required: true
}
},
inputs: 0,
outputs: 1,
icon: "bridge.png",
label: function() {
return this.name || "hikvision-alarm-in";
}
});
</script>
<script type="text/x-red" data-template-name="hikvision-alarm-in">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-hikvision"><i class="icon-tag"></i> Hikvision</label>
<input type="text" id="node-input-hikvision" placeholder="">
</div>
</script>
<script type="text/x-red" data-help-name="hikvision-alarm-in">
<p>Listens for Alarms sent by the IP Camera</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('hikvision-image-in', {
category: 'hikvision',
color: '#a6bbcf',
defaults: {
name: {
value: ""
},
hikvision: {
type: "hikvision-credentials",
required: true
}
},
inputs: 1,
outputs: 1,
icon: "arrow-in.png",
label: function() {
return this.name || "hikvision-image-in";
}
});
</script>
<script type="text/x-red" data-template-name="hikvision-image-in">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-hikvision"><i class="icon-tag"></i> Hikvision</label>
<input type="text" id="node-input-hikvision" placeholder="">
</div>
</script>
<script type="text/x-red" data-help-name="hikvision-image-in">
<p>Get an image from the camera</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('hikvision-profile-out', {
category: 'hikvision',
color: '#a6bbcf',
defaults: {
name: {
value: ""
},
hikvision: {
type: "hikvision-credentials",
required: true
}
},
inputs: 1,
outputs: 1,
icon: "light.png",
label: function() {
return this.name || "hikvision-profile-out";
}
});
</script>
<script type="text/x-red" data-template-name="hikvision-profile-out">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-hikvision"><i class="icon-tag"></i> Hikvision</label>
<input type="text" id="node-input-hikvision" placeholder="">
</div>
</script>
<script type="text/x-red" data-help-name="hikvision-profile-out">
<p>Set the profile of a Hikvision IP Camera</p>
</script>