Commit c1848555 authored by Leigh Stoller's avatar Leigh Stoller

Add an option so that I can generate the base image from the database

but not put any actual robots on; that happens later when the tracker
applet runs and connects to the web server pipe.
parent 55ef77e6
...@@ -35,7 +35,7 @@ sub dprint($) { ...@@ -35,7 +35,7 @@ sub dprint($) {
if ($debug); if ($debug);
} }
my $optlist = "df:o:s:c:S:C:O:e:tTakgzvnx"; my $optlist = "df:o:s:c:S:C:O:e:tTakgzvnxy";
my $notitles = 0; # This suppresses titles surrounding the output map. my $notitles = 0; # This suppresses titles surrounding the output map.
my $showany = 0; # When showing specific floor, showany is turned on. my $showany = 0; # When showing specific floor, showany is turned on.
my $mereuser = 1; my $mereuser = 1;
...@@ -47,6 +47,7 @@ my $ghost = 0; # Overlay ghost nodes from all floors onto each map. ...@@ -47,6 +47,7 @@ my $ghost = 0; # Overlay ghost nodes from all floors onto each map.
my $show_vnames = 0; my $show_vnames = 0;
my $show_cameras = 0; my $show_cameras = 0;
my $show_exclusion = 0; my $show_exclusion = 0;
my $show_nodes = 1;
my $building; my $building;
my $floor; my $floor;
...@@ -277,10 +278,13 @@ if (defined($options{"O"})) { ...@@ -277,10 +278,13 @@ if (defined($options{"O"})) {
if (defined($options{"o"})) { if (defined($options{"o"})) {
$prefix = $options{"o"}; $prefix = $options{"o"};
if ($cleanup) { if ($cleanup) {
unlink "${prefix}.jpg", "${prefix}.map", "${prefix}.state"; unlink $prefix, "${prefix}.jpg", "${prefix}.map", "${prefix}.state";
exit(0); exit(0);
} }
} }
if (defined($options{"y"})) {
$show_nodes = 0;
}
if (defined($options{"v"})) { if (defined($options{"v"})) {
$show_cameras = 1; $show_cameras = 1;
} }
...@@ -639,6 +643,9 @@ sub dofloor($$) ...@@ -639,6 +643,9 @@ sub dofloor($$)
} }
} }
return ($baseimage, $areamap)
if (!$show_nodes);
# Draw the selected node locations and labels. # Draw the selected node locations and labels.
# Green dot means node is free or owned by pid/eid. # Green dot means node is free or owned by pid/eid.
# Red dot mean node is down. # Red dot mean node is down.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment