Hello everyone,
i want to create a custom object that shows RX and TX values of a SNMP traffic sensor. I already created the object, but how do I get the data for the RX and TX values?
As I can see from the api guide this must somehow be done with json. What is to do to accomplish this task?
This are the channels I'd like to read out and show:
<value channel="Datenverkehr eingehend (Geschwindigkeit)" channelid="0">1 Mbit/Sek.</value>
<value channel="Datenverkehr ausgehend (Geschwindigkeit)" channelid="1">3 Mbit/Sek.</value>
This is the object which I created:
<!--Custom Icons: Sensor Statistiken RX-/TX-->
<div align="center" class="map_object" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="topleftcoordinates" subid="<@subid>" mode="<@editmode>">"> <#checkobjecttype objecttype="sensor" nicemessage="true" id="<@objectid>"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>"> <h2><b><u><#objectproperty name="ParentDevice" show="text" id="<@objectid>"></b></u></h2> <p><#objectproperty name="Name" id="<@objectid>"></p> <#objectstatus name="downsens" id="<@objectid>"> <p> <b>RX:</b> <#objectstatus name="lastvalue" id="<@objectid>"> <br> <b>TX:</b> <#objectstatus name="lastvalue" id="<@objectid>"> </p>
<#mapobject type="htmlafter" subid="<@subid>"> </div>
Add comment