This page last changed on Nov 28, 2013 by bourrin.

Hi,

I try to draw a draw for my android phone.

My problem is that I can't draw a graph with a size of 300x150.

I get two scrollbar on the grah.

I try to fix height and width in the xml file but it doesn't work.

Here is my xmf file :

<?xml version="1.0" encoding="UTF-8"?>
<rrd4j xmlns="http://www.openremote.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openremote.org http://www.openremote.org/s

<rrdDB fileName="berry.rrd" step="60">
<datasource name="Meteo Meyzieu" type="GAUGE" heartbeat="120" />
<archive function="AVERAGE" xff="0.5" steps="1" rows="300" />
<archive function="AVERAGE" xff="0.5" steps="10" rows="144" />
<archive function="AVERAGE" xff="0.5" steps="15" rows="672" />
<archive function="AVERAGE" xff="0.5" steps="60" rows="744" />
<archive function="AVERAGE" xff="0.5" steps="120" rows="4380" />
</rrdDB>

<rrd_graph_def name="graph1">
<options>
<vertical_label>°C</vertical_label>
<title>Berry</title>
<width>300</width>
<height>100</height>
</options>
<datasources>
<def>
<name>Meteo Meyzieu</name>
<rrd>berry.rrd</rrd>
<source>Meteo Meyzieu</source>
<cf>AVERAGE</cf>
</def>
</datasources>
<graph>
<line>
<datasource>Meteo Meyzieu</datasource>
<color>#00FF00</color>
<legend>Temp Ext\r</legend>
<width>2</width>
</line>
</graph>
</rrd_graph_def>

</rrd4j>

Does someone have the same problem ?

Posted by bourrin at Nov 30, 2013 21:36

Hi, Sylvain.
I also wasn't able to run the RRD graphs. I use the REST API (http://www.openremote.org/display/docs/Controller+2.0+HTTP-REST-XML) to retrieve data for my script which builds graphs through the jquery.sparkline.js.
Also there is a good solution with EmonCMS (http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+Energy+Monitoring+with+EmonCMS) that I use and it works.

Posted by preston at Dec 05, 2013 08:25

thank you, it's what i have done

Posted by bourrin at Dec 06, 2013 09:57
Document generated by Confluence on Jun 05, 2016 09:36