root/trunk/README

Revision 30, 8.0 kB (checked in by relet.net, 7 months ago)

updated README file + build.

Line 
1 This is a freimap svn release.
2 The Licence is GNU GPL.
3
4 Copyleft by:
5  * Thomas Hirsch <thomas hirsch gmail com>
6  * Robert Schuster <robertschuster@fsfe.org>
7
8 == README FIRST ==
9
10 This is a static text file. Static information tends to get out of date each time you're not looking. If possible, please refer to the documentation in the freimap wiki at http://relet.net/trac/freimap for the latest documentation.
11
12 ----
13
14 Freimap is an Open Source visualization and analysis framework for (mostly) mesh networks, such as for example Freifunk.net. It can read many a different data source and display them as different layers. The network can be browsed and queried in real time, and a time bar allows to trace back to past events. Some statistics of the topology and network traffic may also be generated.
15
16 A thorough documentation of the project is still expected to fall from the sky. Until then, here's a small outlook of what you can get running and how.
17
18 == Requirements ==
19
20     * Java JDK 1.5.0 (Java2) or better.
21     * A few, rather common java libraries, which are provided in the svn version.
22
23 To make good use of freimap, you would need some data sources. Some of these are
24
25     * Olsrd running with the dot_draw plugin, somewhere in the network.
26     * A latlon.js file, generated by the nameservice plugin.
27     * XML files containing node information, such as in certain freifunk maps. Some examples are provided in the data/ directory.
28     * A database containing node information, topology data, or flow data, according to the provided SQL structures.
29
30 == Installation ==
31
32 Download the latest precompiled build:
33
34     * http://relet.net/trac/freimap/browser/freimap-latest.tbz?format=raw
35
36 or get the sources using 'svn':
37
38     * svn checkout http://relet.net/svn/freimap/trunk freimap
39
40 === Compiling (svn only) ===
41
42     * ./compile (or "compile.bat")
43
44 or, if ant is available:
45
46     * ant
47
48 == Running freimap ==
49
50 1. Configuration
51
52 This is probably the trickiest part of the process. The configuration for freimap is stored in the configuration file "config.yaml" in the YAML markup language. An example file is provided as "config.yaml.example". Read the Configuration Manual in the freimap wiki for up-to-date details on the available options.
53
54 The example config file will create two layers: A list of nodes read from the provided xml file, and one displaying topology information from an olsrd dot_info plugin listening on localhost:2004. This is probably the most common and easiest to provide set of data sources. Another simple option would be to get a latlon.js file generated by the nameservice plugin of your olsr daemon. There's an example in the configuration manual, too.
55
56 2. Starting
57
58     * ./run
59
60 or
61
62     * java -Xmx500m -jar freimap.jar
63
64 If you have got less than 500mb free memory, you may want to adjust the -Xmx parameter. Freimap does not necessarily need that much unless you evaluate many months of collected data.
65
66 == Using freimap ==
67
68 When freimap starts, the first thing it will do, is to parse the config file config.yaml. Beware, for since YAML is not very picky with its syntax, some typing errors in the structure may not be detected, and freimap will not necessarily complain if you made a mistake there. From the YAML data found in the config file, freimap will try to identify the Background and DataSource? layers to load, and initialize them with the given parameters. Layers will first be loaded, and initialized in a second run. Hence, cross-references should work from any layer to any other.
69
70 Freimap will output status information and error messages on the console while loading the layers and initializing data sources. For example
71
72 fetching node data from URL: file:latlon.js
73 This may take a while ... finished.
74
75 would be the output of successfully loading node coordinates using a LatLonJsDataSource.
76
77 * The Graphical User Interface *
78
79 Once the freimap window appears, you should see a black-greenish screen, with some decorations and -if you have selected the OpenStreetMap? backdrop- a world map in the center.
80
81 ** Status Information **
82
83 The second green bar on the top of the window displays your current location (longitude and latitude) and the map zoom factor. On the left side, where the URL of this site is displayed, at some point in the future, you might be able to see an actual place name.
84
85 The bottom bar displays the currently selected time, and the memory usage of the software. When the 'resource usage' runs towards 100%, you may experience some OutOfMemoryErrors. This would usually happen when you work with larger quantities of data, which freimap currently seeks to keep in memory.
86
87 ** The Map / Navigation **
88
89 The main portion of the screen is occupied by the map. At the beginning, you will find that it zoomed out to the maximum, so that you will have to zoom in to your preferred location first. If your data source has provided some node coordinates, you should be able to identify that location easily.
90
91 Mouse control:
92
93     * Left mouse button drag: Move the map
94     * Mouse wheel, or right button drag up/down: Zoom the map
95     * Double click: Print the current longitude/latitude to the console.
96     * Right click on a link or node: Begin fetching additional information (see section "Layers" below)
97
98 Keyboard control - Currently supported:
99
100     * '+' - Zoom in
101     * '-' - Zoom out
102
103 ** The Time Bar **
104
105 The time bar at the bottom of the screen displays which data source has provided information for which time interval. A dark green bar represents the total interval where any data is available. Lighter green bars stacked on top represent the various data sources. You may directly click on the time bar to select a specific data set.
106
107 A red/green play button to the left of the bar allows you to replay the recorded data in order. Currently, the replay speed is a bit arbitrary.
108
109 *Layers *
110
111 On the top left of the screen is a list of layers. Clicking on an item in this list will select it as the active layer, which reacts on your mouse actions. You may drag and drop layers to change the order of drawing. The eye icon to the left of the layer allows you to cycle between different display types of this layer - usually "on", "off" and "semi-transparent". More or less display types may be supported.
112
113 Data Layers may react differently on your mouse actions. Their usage will be described in the following.
114 ** Node/Link Layers **
115
116 When moving over the displayed nodes and links, you will discover that the closest node or link to your mouse cursor will be highlighted. Additionally, an information pane is displayed on the top right of the screen. This information will display an identifier of the node or link, as well as more or less information provided by the data source. This list is usually followed by the words "+ right click for more +".
117
118 If you do right click, the data source will try to fetch further information concerning the given element. Depending on the element, this may include some statistics, generated over the available data, or add further elements to the information pane. This process may take some time. During this time, the information pane will display the message "retrieving information". When the process is finished, the additional information will be displayed automatically when hovering over the link.
119
120 Another right click on the node or link may refresh the information, for example in the case of statistics and charts.
121
122 * The Menus *
123
124 A menu bar is on top of the application. Currently, the only useful menu entries are the following.
125 > View
126 > Hide unlocated nodes
127
128 Stops/Starts interpolation and display of unlocated nodes.
129 > Display Filter
130
131 Selecting this menu will show a popup window which allows you to specify a display filter for nodes and links. To enable a filter, enter a string, select "enable display filter" and click on the "Apply" button. Now, only nodes containing (normal mode) or matching (regular expression mode) the specified string will be displayed.
132
133 == Final Words ==
134
135 Enjoy!
136 Comments and bug reports are welcome. Either use the Bug reporting system
137 at http://relet.net/trac/freimap or contact me at the address above.
138
Note: See TracBrowser for help on using the browser.