Newer
Older
weather-servlet / src / main / resources / tempBounds.xml
<rrd_graph_def>
  <options>
    <vertical_label>Degrees C</vertical_label>
  </options>
  <datasources>
    <def>
      <name>inTempMin</name>
      <rrd>${rrdFile}</rrd>
      <source>inTemp</source>
      <cf>MIN</cf>
    </def>
    <cdef>
      <name>inTempMinC</name>
      <rpn>inTempMin,32,-,9,/,5,*</rpn>
    </cdef>
    <def>
      <name>outTempMin</name>
      <rrd>${rrdFile}</rrd>
      <source>outTemp</source>
      <cf>MIN</cf>
    </def>
    <cdef>
      <name>outTempMinC</name>
      <rpn>outTempMin,32,-,9,/,5,*</rpn>
    </cdef>
  </datasources>
  <graph>
    <line>
      <datasource>inTempMinC</datasource>
      <color>#FF0000</color>
      <legend>Inside Minimum Temperature</legend>
    </line>
    <line>
      <datasource>outTempMinC</datasource>
      <color>#0000FF</color>
      <legend>Outside Minimum Temperature</legend>
    </line>
  </graph>
</rrd_graph_def>