Alex,
I think the table gets created further down in the template.  I assume the 
precision gets carried down to the table from the PRINT statement for the 
graph....but I dont know for sure.
Bruce

--------------------snip----------------
<table class="listtable">
   <tr>
    <th class="ls-col1">&nbsp;</th>
    <th class="ls-col2">Max</th>
    <th class"ls-col3">Avg.</th>
    <th class="ls-col4">Min</th>
    <th class="ls-col5">Current</th>
   </tr>

<!-- $nr=0 -->
<!-- sensor_loop_start -->
   <tr><td class="ls-col1">
    <a href="<!-- cgi_path --><!-- sensid -->.<!--  
datafile -->.cgi?starttime=<RRD::CV starttime>&endtime=<RRD::CV 
endtime>"><!-- location --></a> :   </td>
    <td class="ls-col2">
      <RRD::PRINT <!-- $nr --><!-- $nr++ -->><br>
      <RRD::PRINT <!-- $nr --><!-- $nr++ -->>
    </td>
    <td class="ls-col3">
      <RRD::PRINT <!-- $nr --><!-- $nr++ -->><br>
      <RRD::PRINT <!-- $nr --><!-- $nr++ -->>
    </td>
    <td class="ls-col4">
      <RRD::PRINT <!-- $nr --><!-- $nr++ -->><br>
      <RRD::PRINT <!-- $nr --><!-- $nr++ -->>
    </td>
    <td class="ls-col5">
      <RRD::PRINT <!-- $nr --><!-- $nr++ -->><br>
      <RRD::PRINT <!-- $nr --><!-- $nr++ -->>
    </td>
   </tr>
<!-- sensor_loop_end -->
</table>
------------------------snip------------------------

-----Original Message----- 
From: Alex Shepherd
Sent: Tuesday, May 15, 2012 12:21 AM
To: 'OWFS (One-wire file system) discussion and help'
Subject: Re: [Owfs-developers] Changing Number Format of Y-Axison 
TemploggerdGraphs

Hi Bruce,

> Hey Alex,
> from the rrdtool documentation for PRINT
> http://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html#PRINT  :
>
> %#.#lf
> prints numbers like 12345.6789, with optional field width and precision
>
> I use in my template files :   PRINT:<!-- rrd_sensid -->:MAX:"%5.1lf C"
> to get my temperatures to display as "25.1 C"

I think this part of the config is for the table below the graph. I get 1
decimal place in the table now already, but I can't see how to change the
graph Y-Axis labels to show the temperatures to 1 decimal place. That is
what I was hoping to change.

Thanks

Alex Shepherd




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to