/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/dvin/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 = "";
3
 
$MODULES = array("config", "graph", "wiki");
4
 
 
5
 
 
6
 
$READER_DB_DVIN = array(
7
 
        "dvin_asec" => array (
8
 
            "title" => _("DVIN"),
9
 
            "reader" => "DVINReader",
10
 
            "driver" => "mysql",
11
 
            "host" => "localhost",
12
 
            "port" => 0,
13
 
            "user" => "asec",
14
 
            "password" => 'asecpw',
15
 
            "database" => array("asec"),
16
 
            "persistent" => true
17
 
//          "charset" => "ISO8859-1",
18
 
//          "disconnected" => true
19
 
        ),
20
 
        "dvin_nmdb" => array (
21
 
            "title" => _("NMDB"),
22
 
            "reader" => "DBReader",
23
 
            "driver" => "mysql",
24
 
            "host" => "134.245.71.224",
25
 
            "port" => 0,
26
 
            "user" => "nmdb",
27
 
            "password" => '',
28
 
            "database" => array("nmdb"),
29
 
            "persistent" => true,
30
 
//          "charset" => "ISO8859-1",
31
 
//          "disconnected" => true
32
 
        )
33
 
);
34
 
 
35
 
if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_DVIN, $READER_DB);
36
 
else $READER_DB = $READER_DB_DVIN;
37
 
 
38
 
$OPTIONS["dvin_asec__asec"] = array(
39
 
            "groups" => array(
40
 
                "/^all$/" => 'finalASEC',
41
 
            ),
42
 
            "tables" => array(
43
 
                "/^finalASEC$/" => array(
44
 
                    'gid' => 'all',
45
 
                    'title' => 'ASEC'
46
 
                )
47
 
            ),
48
 
            "columns" => array(
49
 
                "time" => "Time",
50
 
                "data" => "/^(C\d+)$/"
51
 
            ),
52
 
//          "timezone" => "Europe/Berlin",
53
 
//          "time_module" => "MSTICKS",
54
 
//          "time_options" => -36000000000,                     // correction
55
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
56
 
//          "date_limit" => "1970-01-01 00:00:00",              //GMT
57
 
            "min_resolution" => 600,
58
 
            "maximal_allowed_gap" => 120,
59
 
            "ignore_subseconds" => true,
60
 
            "optimize_empty_cache" => true,
61
 
            "use_cache_timewindow" => true,
62
 
//          "use_cache_reader" => true,
63
 
            "use_md5_postfix" => false,
64
 
            "trace_timings" => false,
65
 
            "monitor_timings" => array(
66
 
                "query_limit" => 500000,                /* us */
67
 
                "raise_exception" => true
68
 
            )
69
 
);
70
 
 
71
 
$OPTIONS["dvin_nmdb__nmdb"] = array(
72
 
            "groups" => array(
73
 
                "/^(.*)$/" => '${1}',
74
 
            ),
75
 
            "tables" => array(
76
 
                "/^((\w+)_1h)$/" => array(
77
 
                    'gid' => '${1}',
78
 
                    'title' => '${2}: Hourly Data'
79
 
                ),    
80
 
                "/^((\w+)_ori)$/" => array(
81
 
                    'gid' => '${1}',
82
 
                    'title' => '${2}: Original Data'
83
 
                ),
84
 
            ),
85
 
            "columns" => array(
86
 
                "time" => "start_date_time",
87
 
                "data" => "/^(uncorrected|corr_.*|pressure_mbar|measured_.*)$/"
88
 
            ),
89
 
//          "timezone" => "Europe/Berlin",
90
 
//          "time_module" => "MSTICKS",
91
 
//          "time_options" => -36000000000,                     // correction
92
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
93
 
//          "date_limit" => "1970-01-01 00:00:00",              //GMT
94
 
            "min_resolution" => 43200,
95
 
            "ignore_subseconds" => true,
96
 
            "optimize_empty_cache" => true,
97
 
            "use_cache_timewindow" => true,
98
 
//          "use_cache_reader" => true,
99
 
            "use_md5_postfix" => false,
100
 
            "trace_timings" => false,
101
 
            "monitor_timings" => array(
102
 
                "query_limit" => 500000,                /* us */
103
 
                "raise_exception" => true
104
 
            )
105
 
);
106
 
 
107
 
?>
 
 
b'\\ No newline at end of file'