2 # Map drawing script file
4 # Command : server { ... }
5 # Description : Specifies a server to connect, fetch statistics, draw the
6 # server on map and to show its status on the map. See the
7 # example server command below for all parameters of this
10 # Command : loadmap { filename = <filename>; };
11 # Example : loadmap { filename = "world_map.ppm"; };
12 # Description : Load the source bitmap image file to be used as the map
14 # Command : writemap { filename = <filename>; };
15 # Example : writemap { filename = "map.ppm"; };
16 # Description : Write the target bitmap image file
18 # Command : writemaphtml { filename = <filename>; image = <filename>;
19 # cut_lat = <lat>; cut_lon = <lon>; };
20 # Example : writemaphtml { filename = "htmlmap.map"; image = "map.jpg"; };
21 # Description : Write the gathered information as as HTML map page. This
22 # allows the user to click the specified points of URLs.
23 # The writemaphtml_url parameter in server will specify the
24 # URL that will be used in the HTML map. If omitted the
25 # filename created by writehml command is used. The <cut_lat>
26 # and <cut_lon> are specified if the <image> is a portion of
27 # the original map image. In this case the lat and lon specify
28 # which portion it is.
30 # Command : writehtml { filename = <filename>; };
31 # Example : writehtml { filename = "index.html"; };
32 # Description : Write the gathered information as HTML pages. Every server
33 # command will have their own HTML file. The filename is
34 # based on the hostname of the server. The index HTML file
35 # will include list of the servers. The generated HTML files
36 # are quite raw and are intended to be embedded into user's
39 # Command : cut { lat = <lat>; lon = <lon>; width = <width>;
40 # height = <height>; filename = <filename>; };
41 # Example : cut { lat = "20"; lon = "5"; width = "1000"; height = "700";
42 # filename = "map_chunk.ppm"; };
43 # Description : Cuts a chunk from the source image at specified location.
44 # The chunk will be <width> * <height> pixels in size. The
45 # <filename> is the output bitmap file where the chunk is saved.
47 # Command : rectangle { lat = <lat>; lon = <lon>; color = <color>;
48 # label = <label>; lposx = <x>; lposy = <y>;
49 # lcolor = <label color>; };
50 # Example : rectangle { lat = "-31 30"; lon = "0"; color = "0 0 255";
51 # label = "text"; lposx = "-10", lposy = "15"; };
52 # Description : Draws a rectangle at specified location. The center of the
53 # rectangle will be at specified location. If the <label>
54 # is specified, that text will appear with the rectangle at the
55 # <lposx> and <lposy> pixel location in relation to the
56 # rectangle. If <lcolor> is omitted the <color> is used.
58 # Command : circle { lat = <lat>; lon = <lon>; color = <color>;
59 # label = <label>; lposx = <x>; lposy = <y>;
60 # lcolor = <label color>; };
61 # Example : circle { lat = "31 30"; lon = "0"; color = "255 255 255"; };
62 # Description : Draws a circle at specified location. The center of the
63 # circle will be at specified location. If the <label>
64 # is specified, that text will appear with the circle at the
65 # <lposx> and <lposy> pixel location in relation to the
66 # circle. If <lcolor> is omitted the <color> is used.
68 # Command : line { a_lat = <lat>; a_lon = <lon>; b_lat = <lat>;
69 # b_lon = <lon>; width = <width>; color = <color>; };
70 # Description : Draws a straight line between points a and b. The <width>
71 # is line width in pixels. If omitted, default is 1.
73 # Command : text { lat = <lat>; lon = <lon>; color = <color>;
75 # Example : text { lat = "63 42 13", lon = "23 17 34", color = "0 0 255";
76 # text = "This is an example text"; };
77 # Description : Prints the text <text> at the specified location
79 # The <lat> is in format DD MM SS, where DD is degrees, MM minutes, and
80 # SS seconds. If DD is positive the latitude is north bound, if negative
81 # it is south bound. At least DD must be specified.
83 # The <lon> is in format DD MM SS, where DD is degrees, MM minutes, and
84 # SS seconds. If DD is positive the longitude is east bound, if negative
85 # it is west bound. At least DD must be specified.
87 # The <color> is in format RRR GGG BBB, where RRR is red, GGG green and
88 # BBB blue, between 0 - 255.
91 loadmap { filename = "map.ppm"; };
92 writemaphtml { filename = "map.html"; image = "map.jpg"; };
96 hostname = "eample.server.com";
99 public_key = "example.server.com_706.pub";
105 # Connection parameters
107 connect_timeout = "30";
109 # Statistics to fetch
117 cell_channels = true;
123 all_server_ops = true;
124 all_router_ops = true;
126 # Fetch message of the day
129 # Status colors when server is either up or down
130 up_color = "150 200 190";
131 down_color = "150 0 0";
132 up_text_color = "60 200 200";
133 down_text_color = "150 0 0";
135 # Draw this server on the map
136 rectangle { lat = "36 00"; lon = "25 00";
137 label = "example.server.com";
138 lposx = "-30"; lposy = "10"; };
141 writemap { filename = "testi2.ppm"; };