<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Yes i tested both those option it generates the same error <br>
<br>
<br>
problem generating the graph: unknown option '--color CANVAS#000000'<br>
<br>
<div class="moz-cite-prefix">Petteri Matilainen skrev den 2015-08-13
19:48:<br>
</div>
<blockquote cite="mid:55CCD873.4080000@gmail.com" type="cite">On
13.8.2015 20:43, Martin wrote:
<br>
<blockquote type="cite">Hello could someone tell me why i get this
error from the perl script
<br>
below?
<br>
<br>
ERROR: problem generating the graph: unknown option '--c
CANVAS#000000'
<br>
Done!
<br>
<br>
<br>
<br>
#!/usr/bin/perl
<br>
<br>
use RRDs;
<br>
<br>
my $cur_time = time();
<br>
my $start_time = $cur_time - 86400; # set end time to 24
hours ago
<br>
<br>
RRDs::graph "/var/www/ta/ta_temp.png",
<br>
"--start= $start_time",
<br>
"--end= $cur_time",
<br>
"--title= Temperatur givare på Casa de
Padda",
<br>
"--height= 300",
<br>
"--width= 500",
<br>
"--vertical-label= °C",
<br>
"--c CANVAS#000000",
<br>
"--c BACK#000000",
<br>
"--c FONT#FFFFFF",
<br>
"DEF:TerrariumLeft=/home/pi/rrddata/TA_temp.rrd:TerrarieV:AVERAGE",
<br>
"COMMENT:\t\t\t\t\tNu Medel Max
Min\\n",
<br>
"HRULE:0#0000FF",
<br>
"LINE2:TerrariumLeft#FFFF00:Terrarium
<br>
Vänster\t\t",
<br>
"GPRINT:TerrariumLeft:LAST:%6.1lf",
<br>
"GPRINT:TerrariumLeft:AVERAGE:%6.1lf",
<br>
"GPRINT:TerrariumLeft:MAX:%6.1lf",
<br>
"GPRINT:TerrariumLeft:MIN:%6.1lf\\n",
<br>
"DEF:TerrariumRight=/home/pi/rrddata/TA_temp.rrd:TerrarieH:AVERAGE",
<br>
"COMMENT:\t\t\t\t\tNu Medel Max
Min\\n",
<br>
"HRULE:0#0000FF",
<br>
"LINE2:TerrariumRight#e65243:Terrarium
Höger\t\t",
<br>
"GPRINT:TerrariumRight:LAST:%6.1lf",
<br>
"GPRINT:TerrariumRight:AVERAGE:%6.1lf",
<br>
"GPRINT:TerrariumRight:MAX:%6.1lf",
<br>
"GPRINT:TerrariumRight:MIN:%6.1lf\\n",
<br>
"DEF:Akvarium=/home/pi/rrddata/TA_temp.rrd:Akvarie:AVERAGE",
<br>
"COMMENT:\t\t\t\t\tNu Medel Max
Min\\n",
<br>
"HRULE:0#0000FF",
<br>
"AREA:Akvarium#0000FF80:Akvarium\t\t\t",
<br>
"GPRINT:Akvarium:LAST:%6.1lf",
<br>
"GPRINT:Akvarium:AVERAGE:%6.1lf",
<br>
"GPRINT:Akvarium:MAX:%6.1lf",
<br>
"GPRINT:Akvarium:MIN:%6.1lf\\n";
<br>
<br>
my $err=RRDs::error;
<br>
if ($err) {print "problem generating the graph: $err\n";}
<br>
<br>
print "Done!\n"
<br>
<br>
_______________________________________________
<br>
rrd-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a>
<br>
</blockquote>
<br>
Hi,
<br>
<br>
I believe you have to use -c CANVAS#000000, or --color
CANVAS#000000. Same goes for the other color definitions too.
<br>
<br>
regards,
<br>
<br>
PM
<br>
<br>
_______________________________________________
<br>
rrd-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<b>Best Regards Martin</b><br>
<b>MF SweTech</b><br>
Phone +46 (0)701061891<br>
Email <a class="moz-txt-link-abbreviated" href="mailto:martin@swetech.se">martin@swetech.se</a><br>
site <a class="moz-txt-link-abbreviated" href="http://www.swetech.se">www.swetech.se</a><br>
</div>
</body>
</html>