... | ... |
@@ -221,33 +221,31 @@ To register your alerts you have two ways: |
221 | 221 |
#### set the alerts in `/instrumentation/zkv1000/alerts/warnings` |
222 | 222 |
This way they are registered at start |
223 | 223 |
|
224 |
-```xml |
|
225 | 224 |
<warnings> |
226 | 225 |
<warning> |
227 |
- <script><![CDATA[ |
|
226 |
+ \<script\><![CDATA[ |
|
228 | 227 |
getprop('/foo/bar/baz/value') and getprop('/foo/bar/baz/value[1]') > 5; |
229 |
- ]]></script> |
|
228 |
+ ]]>\</script\> |
|
230 | 229 |
<message>TEST 1</message> |
231 | 230 |
<!-- <speaker/> TO USE THE MESSAGE AS VOICE --> |
232 | 231 |
<level>0</level> |
233 | 232 |
</warning> |
234 | 233 |
<warning> |
235 |
- <script><![CDATA[ |
|
234 |
+ \<script\><![CDATA[ |
|
236 | 235 |
getprop('/foo/bar/baz/value[3]') == 'foobar' or getprop('/foo/bar/baz/value[2]') < 10; |
237 |
- ]]></script> |
|
236 |
+ ]]>\</script\> |
|
238 | 237 |
<message>TEST 2</message> |
239 | 238 |
<level>1</level> |
240 | 239 |
<!-- <speaker>this is only for testing</speaker> TO USE A SPECIFIC VOICE MESSAGE --> |
241 | 240 |
</warning> |
242 | 241 |
<warning> |
243 |
- <script><![CDATA[ |
|
242 |
+ \<script\><![CDATA[ |
|
244 | 243 |
return getprop('/foo/bar/baz/value[4]') == 5 or getprop('/foo/bar/baz/value[5]'); |
245 |
- ]]></script> |
|
244 |
+ ]]>\</script\> |
|
246 | 245 |
<message>TEST 3</message> |
247 | 246 |
<level>2</level> |
248 | 247 |
</warning> |
249 | 248 |
</warnings> |
250 |
-``` |
|
251 | 249 |
|
252 | 250 |
#### or use the integrated API |
253 | 251 |
Actually not yet tested, but you can register new alerts somewhere in your Nasal code with the following: |