Trying to modify 'An icon AA' into a custom file, to only alert on if a ICMP/PING Sensor has gone down, but im hitting walls as filter_type's etc dont work here.
<!--Status Icons: Status and Audible Alert (If Alarms > 0)--> <div class="map_object map_icon <#sensor type="colorclassofstate" prefix="map_iconcolor_" id="<@objectid>">" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="topleftcoordinates" subid="<@subid>" mode="<@editmode>">"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>"> <span> <#objectstatus name="warnsens" id="<@objectid>" filter_type="ping"> <#objectstatus name="downsens" id="<@objectid>" filter_type="ping"> </span> <div id="alarmsound"></div> <script type="text/javascript"> function playalarm() { if($('#audiblealarm').length <= 0) { $("#alarmsound").empty().append('<audio id="audiblealarm"><source src="/sounds/beep.ogg" type="audio/ogg" /><source src="/sounds/beep.mp3" type="audio/mpeg3" /></audio>'); } var audiblealarm = document.getElementById("audiblealarm"); audiblealarm.load(); audiblealarm.play(); }; var errors1="<#objectstatus name="downsens" id="<@objectid>" show="textraw">"; var errors2="<#objectstatus name="warnsens" id="<@objectid>" show="textraw">"; var errors=errors1*1.0+errors2*1.0; if (errors > 0) { setTimeout(playalarm, 2000); } </script>
Add comment