/dev/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/trunk

« back to all changes in this revision

Viewing changes to setups/wt/config.php

  • Committer: Suren A. Chilingaryan
  • Date: 2014-01-25 16:38:03 UTC
  • Revision ID: csa@dside.dyndns.org-20140125163803-mhmpyk4dpzz7qabw
Detach setups

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