/dev/adei-asec

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/adei-asec

« back to all changes in this revision

Viewing changes to setups/wt/config.php

  • Committer: Suren A. Chilingaryan
  • Date: 2011-03-15 02:47:05 UTC
  • mfrom: (210.1.3 adei)
  • Revision ID: csa@dside.dyndns.org-20110315024705-qljn30gwin8yrkne
Integration of work of students with fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
$TITLE = "Weather Station";
 
3
$MODULES = array("config", "graph", "wiki");
 
4
 
 
5
 
 
6
$EXPORT_FORMATS = array (
 
7
        "csv" => array(
 
8
            'title' => "CSV",
 
9
        ),
 
10
        "xls" => array(
 
11
            'title' => "Excel",
 
12
            'handler' => "EXCEL",
 
13
        ),
 
14
        "tdms" => array(
 
15
            'title' => "TDMS",
 
16
            'handler' => "LABVIEW",
 
17
            'type' => "tdms"
 
18
        )
 
19
);
 
20
 
 
21
 
 
22
$READER_DB_WT = array(
 
23
/*      "imk" => array (
 
24
            "title" => _("IMK"),
 
25
            "reader" => "DBReader",
 
26
            "driver" => "odbc",
 
27
            "sqldrv" => "mssql",
 
28
            "subdrv" => "FreeTDS",
 
29
            "host" => "192.168.8.6",
 
30
            "port" => 1433,
 
31
            "user" => "souren",
 
32
            "password" => '$souren$',
 
33
            "database" => array("KFK_Mast"),
 
34
            "charset" => "ISO8859-1",
 
35
            "timeout" => 200000,        // us
 
36
            "ping" => true,             // host and port should be specified
 
37
//          "disconnected" => true
 
38
        ),*/
 
39
        "mast" => array (
 
40
            "title" => _("Weather Tower"),
 
41
            "reader" => "IPEReader",
 
42
            "driver" => "odbc",
 
43
            "sqldrv" => "mssql",
 
44
            "subdrv" => "FreeTDS",
 
45
            "host" => "imkmastdb2.ka.fzk.de",
 
46
            "port" => 1433,
 
47
            "user" => 'souren',
 
48
            "password" => '$souren$',
 
49
            "database" => array("Mastdaten_rep"),
 
50
            "charset" => "ISO8859-1",
 
51
            "timeout" => 200000,        // us
 
52
            "ping" => true,             // host and port should be specified
 
53
            "disconnected" => false
 
54
        )
 
55
);
 
56
 
 
57
if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_WT, $READER_DB);
 
58
else $READER_DB = $READER_DB_WT;
 
59
 
 
60
 
 
61
 
 
62
$OPTIONS["imk__KFK_Mast"] = array(
 
63
            "groups" => array(
 
64
                "/^(.*)$/" => '${1}',
 
65
            ),
 
66
            "tables" => array(
 
67
                "/^(HV1|TW1|U1)$/" => array(
 
68
                    'gid' => '${1}',
 
69
                    'title' => '${1}'
 
70
                )
 
71
            ),
 
72
            "columns" => array(
 
73
                "time" => "DATUM",
 
74
                "data" => "/_/"
 
75
            ),
 
76
            "timezone" => "Europe/Berlin",
 
77
//          "time_module" => "MSTICKS",
 
78
//          "time_options" => -36000000000,                     // correction
 
79
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
 
80
            "date_limit" => "2000-01-01 00:00:00",              //GMT
 
81
//          "date_limit" => array("2005-08-06 00:00:00","2005-08-08 00:00:00"),         //GMT
 
82
//          "date_limit" => "2008-03-29 21:00:00",              //GMT
 
83
            "min_resolution" => 600,
 
84
            "ignore_subseconds" => false,
 
85
            "optimize_empty_cache" => true,
 
86
            "use_cache_timewindow" => true,
 
87
//          "use_cache_reader" => true,
 
88
//          "use_md5_postfix" => true,
 
89
            "trace_timings" => false,
 
90
            "monitor_timings" => array(
 
91
                "query_limit" => 500000,                /* us */
 
92
                "raise_exception" => true
 
93
            ),
 
94
            "cache_config" => array(
 
95
                array("min" => 630720000, "res" => 604800),
 
96
                array("min" => 31536000, "res" => 43200)
 
97
            ),
 
98
            "data_filters" => array(
 
99
                "BADVALUEFilter" => array (
 
100
                    "badvalue" => 1999
 
101
                ),
 
102
            )
 
103
);
 
104
 
 
105
 
 
106
$OPTIONS["mast"] = array(
 
107
            "groups" => array(
 
108
                "/^(.*)Archive$/" => 'Wv$ArchivData$${1}',
 
109
                "/^(.*)Calc$/" => 'Wv$CalcData$${1}',
 
110
                "/^(.*)$/" => 'Wv$LiveData$${1}',
 
111
            ),
 
112
            "tables" => array(
 
113
                "/^Wv\\\$LiveData\\\$([\w\d_]+)$/" => array(
 
114
//              "/^Wv\\\$LiveData\\\$(Analog|DewPoint|Precipitation|Temperature|WindSpeed)$/" => array(
 
115
                    'gid' => '${1}',
 
116
                    'title' => '${1} Live'
 
117
                ),
 
118
                "/^Wv\\\$CalcData\\\$([\w\d_]+)$/" => array(
 
119
//              "/^Wv\\\$CalcData\\\$(Analog|DewPoint|Precipitation|Temperature|WindSpeed)$/" => array(
 
120
                    'gid' => '${1}Calc',
 
121
                    'title' => '${1} Calculated'
 
122
                ),
 
123
                "/^Wv\\\$ArchivData\\\$([\w\d_]+)$/" => array(
 
124
//              "/^Wv\\\$CalcData\\\$(Analog|DewPoint|Precipitation|Temperature|WindSpeed)$/" => array(
 
125
                    'gid' => '${1}Archive',
 
126
                    'title' => '${1} Archive '
 
127
                )
 
128
            ),
 
129
            "columns" => array(
 
130
                "time" => "WsDateTimeTicks",
 
131
                "data" => "/^MT_/"
 
132
            ),
 
133
            "timezone" => "Europe/Berlin",
 
134
            "time_module" => "MSTICKS",
 
135
//          "time_options" => -36000000000,                     // correction
 
136
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
 
137
//          "date_limit" => "2000-01-01 00:00:00",              //GMT
 
138
//          "date_limit" => array("2005-08-06 00:00:00","2005-08-08 00:00:00"),         //GMT
 
139
//          "date_limit" => "2008-03-29 21:00:00",              //GMT
 
140
            "min_resolution" => 60,
 
141
            "ignore_subseconds" => true,
 
142
            "optimize_empty_cache" => true,
 
143
            "use_cache_timewindow" => true,
 
144
//          "use_cache_reader" => true,
 
145
            "use_md5_postfix" => false,
 
146
            "trace_timings" => false,
 
147
            "monitor_timings" => array(
 
148
                "query_limit" => 500000,                /* us */
 
149
                "raise_exception" => true
 
150
            ),
 
151
/*          "cache_config" => array(
 
152
                array("min" => 630720000, "res" => 604800),
 
153
                array("min" => 31536000, "res" => 43200)
 
154
            ),
 
155
            "data_filters" => array(
 
156
                "BADVALUEFilter" => array (
 
157
                    "badvalue" => 1999
 
158
                ),
 
159
            )*/
 
160
            "channel_uids" => "/^MT_/",
 
161
            "axis" => array(
 
162
                "/^MT_PT_T_AIR/i" => "temperature"
 
163
            )
 
164
);
 
165
 
 
166
$OPTIONS["mast__Mastdaten_rep__Licor"] = array(
 
167
            "min_resolution" => 10,
 
168
            "ignore_subseconds" => false
 
169
);
 
170
 
 
171
$OPTIONS["mast__Mastdaten_rep__LicorCalc"] = array(
 
172
            "min_resolution" => 10,
 
173
            "ignore_subseconds" => false
 
174
);
 
175
 
 
176
$OPTIONS["mast__Mastdaten_rep__Sonic1"] = array(
 
177
            "min_resolution" => 10,
 
178
            "ignore_subseconds" => false
 
179
);
 
180
 
 
181
$OPTIONS["mast__Mastdaten_rep__Sonic1Calc"] = array(
 
182
            "min_resolution" => 10,
 
183
            "ignore_subseconds" => false
 
184
);
 
185
 
 
186
$OPTIONS["mast__Mastdaten_rep__Sonic2"] = array(
 
187
            "min_resolution" => 10,
 
188
            "ignore_subseconds" => false
 
189
);
 
190
 
 
191
$OPTIONS["mast__Mastdaten_rep__Sonic2Calc"] = array(
 
192
            "min_resolution" => 10,
 
193
            "ignore_subseconds" => false
 
194
);
 
195
 
 
196
$OPTIONS["mast__Mastdaten_rep__Sonic3"] = array(
 
197
            "min_resolution" => 10,
 
198
            "ignore_subseconds" => false
 
199
);
 
200
 
 
201
$OPTIONS["mast__Mastdaten_rep__Sonic3Calc"] = array(
 
202
            "min_resolution" => 10,
 
203
            "ignore_subseconds" => false
 
204
);
 
205
 
 
206
$OPTIONS["mast__Mastdaten_rep__Sonic4"] = array(
 
207
            "min_resolution" => 10,
 
208
            "ignore_subseconds" => false
 
209
);
 
210
 
 
211
$OPTIONS["mast__Mastdaten_rep__Sonic4Calc"] = array(
 
212
            "min_resolution" => 10,
 
213
            "ignore_subseconds" => false
 
214
);
 
215
 
 
216
?>