Hello all,

I got some wierd errors on how the images come out

these 2 images as you can see the numbers looks very diffrent from one and other and i been looking at this so long nothing makes sense for me anymore so if a couple of fresh eyes can tell me why it goes wrong.

code to create these are here

#!/usr/bin/perl

use RRDs;

my $cur_time = time();
my $start_time = $cur_time - 604800;     # set end time to 24 hours ago


RRDs::graph "/var/www/TT/WEB/w_tadpole_temp.png",
                        "--start= $start_time",
                        "--end= $cur_time",
                        "--title= Tadpoles Temperature",
                        "--height= 300",
                        "--width= 600",
                        "--vertical-label= °C",
                        
"DEF:TadpolesTemp=/home/pi/rrddata/tadpoles.rrd:tad:AVERAGE",
                        "COMMENT:\t\t\t\t\t\t\t\tNu     Medel    Max     
Min\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "HRULE:0#0000FF",
                        "AREA:TadpolesTemp#FF1919:Tadpole temperature\t",
                        "GPRINT:TadpolesTemp:LAST:%6.1lf",
                        "GPRINT:TadpolesTemp:AVERAGE:%6.1lf",
                        "GPRINT:TadpolesTemp:MAX:%6.1lf",
                        "GPRINT:TadpolesTemp:MIN:%6.1lf\\n";


my $err=RRDs::error;
if ($err) {print "problem generating the graph: $err\n";}

print "Done!\n"




And the second one

#!/usr/bin/perl

use RRDs;

my $cur_time = time();
my $start_time = $cur_time - 604800;     # set end time to 24 hours ago

RRDs::graph "/var/www/TT/WEB/w_bombina_temp.png",
                        "--start= $start_time",
                        "--end= $cur_time",
                        "--title= Bombina Temperature",
                        "--height= 300",
                        "--width= 600",
                        "--vertical-label= °C",
                        
"DEF:BombinaTemp=/home/pi/rrddata/bombina.rrd:bombina:AVERAGE",
                        "COMMENT:\t\t\t\t\tNu   Medel   Max     Min\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "COMMENT:\\n",
                        "HRULE:0#0000FF",
                        "AREA:BombinaTemp#FF1919:Bombina Temperature\t",
                        "GPRINT:BombinaTemp:LAST:%6.1lf",
                        "GPRINT:BombinaTemp:AVERAGE:%6.1lf",
                        "GPRINT:BombinaTemp:MAX:%6.1lf",
                        "GPRINT:BombinaTemp:MIN:%6.1lf\n";


my $err=RRDs::error;
if ($err) {print "problem generating the graph: $err\n";}

print "Done!\n"


any ideas are welcome its driving me nuts..




---
Detta e-postmeddelande har sökts igenom efter virus med antivirusprogram från 
Avast.
https://www.avast.com/antivirus
_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to