Added SILC Map.
[crypto.git] / apps / silcmap / silcmap.conf
1 #
2 # Map drawing script file
3 #
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
8 #               command.
9 #
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
13 #
14 # Command     : writemap { filename = <filename>; };
15 # Example     : writemap { filename = "map.ppm"; };
16 # Description : Write the target bitmap image file
17 #
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.
29 #
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
37 #               own website.
38 #
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.
46 #
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.
57 #
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.
67 #
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.
72 #
73 # Command     : text { lat = <lat>; lon = <lon>; color = <color>;
74 #                      text = <text>; };
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
78 #
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.
82 #
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.
86 #
87 # The <color> is in format RRR GGG BBB, where RRR is red, GGG green and
88 # BBB blue, between 0 - 255.
89 #
90
91 loadmap   { filename = "map.ppm"; };
92 writemaphtml { filename = "map.html"; image = "map.jpg"; };
93
94 server {
95         # Server details
96         hostname        = "eample.server.com";
97         ip              = "10.2.1.1";
98         port            = "706";
99         public_key      = "example.server.com_706.pub";
100         country         = "Finland";
101         city            = "Kuopio";
102         admin           = "pekka";
103         description     = "";
104
105         # Connection parameters
106         connect         = false;
107         connect_timeout = "30";
108
109         # Statistics to fetch
110         starttime       = true;
111         uptime          = true;
112         clients         = true;
113         channels        = true;
114         server_ops      = true;
115         router_ops      = true;
116         cell_clients    = true;
117         cell_channels   = true;
118         cell_servers    = true;
119         all_clients     = true;
120         all_channels    = true;
121         all_servers     = true;
122         all_routers     = true;
123         all_server_ops  = true;
124         all_router_ops  = true;
125
126         # Fetch message of the day
127         motd            = true;
128
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";
134
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"; };
139 };
140
141 writemap  { filename = "testi2.ppm"; };