/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/asec/config.php.mirror

  • 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 = "ASEC";
3
 
$MODULES = array("graph", "wiki");
4
 
 
5
 
$READER_DB_ASEC = array(
6
 
        "asec" => array (
7
 
            "title" => _("ASEC"),
8
 
            "reader" => "IPEReader",
9
 
            "driver" => "mysql",
10
 
            "host" => "localhost",
11
 
            "port" => 3306,
12
 
            "user" => "adei",
13
 
            "password" => "adeipw",
14
 
            "database" => array("crd"),
15
 
            "charset" => "ISO8859-1",
16
 
            "timeout" => 200000,        // us
17
 
            "ping" => true,             // host and port should be specified
18
 
//          "disconnected" => true
19
 
        )
20
 
);
21
 
 
22
 
if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_ASEC, $READER_DB);
23
 
else $READER_DB = $READER_DB_ASEC;
24
 
 
25
 
 
26
 
$OPTIONS["asec"] = array(
27
 
/*          "groups" => array(
28
 
                "/^Data_011_EB1_DAR$/" => 'Data_011_EB1_DAR_[Energy_balance_station_1 DAR]',
29
 
                "/^Data_012_EB2_DAR$/" => 'Data_012_EB2_DAR_[Energy_balance_station_2 DAR]',
30
 
                "/^Data_012_EB2_DAX$/" => 'Data_012_EB2_DAX_[Energy_balance_station_2 DAX]'
31
 
 
32
 
            ),*/
33
 
            "tables" => array(
34
 
                "/^((.*)_view)$/" => array(
35
 
                    'gid' => '${1}',
36
 
                    'title' => '${2}'
37
 
//              ),
38
 
//              "/^((.*)_view_sum)$/" => array(
39
 
//                  'gid' => '${1}',
40
 
//                  'title' => 'sums of ${2}'
41
 
//              ),
42
 
//              "/^((.*)_view_sum_corrected)$/" => array(
43
 
//                  'gid' => '${1}',
44
 
//                  'title' => 'corrected sums of ${2}'
45
 
                )
46
 
            ),
47
 
            "columns" => array(
48
 
                "time" => "Time",
49
 
//              "data" => "/^C/"
50
 
                "data" => "/^(arnm|asnt|nanm|nammm1|nammm2|wh|ammm|maket|sa|sna|sm|sy|sz|count|vert|dir)/"
51
 
//              "data" => "/^(arnm|nanm)/"
52
 
            ),
53
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
54
 
            "date_limit" => "1990-01-01 00:00:00",              //GMT
55
 
//          "time_format" => "U",
56
 
            "min_resolution" => 600,
57
 
            "ignore_subseconds" => true,
58
 
            "optimize_empty_cache" => true,
59
 
            "use_cache_timewindow" => true,
60
 
//          "use_cache_reader" => true,
61
 
//          "use_md5_postfix" => true,
62
 
            "trace_timings" => false,
63
 
            "monitor_timings" => array(
64
 
                "query_limit" => 500000,                /* us */
65
 
                "raise_exception" => true
66
 
            ),
67
 
            "item_table" => array(
68
 
                "table" => "CHANNEL_LIST",
69
 
                "id" => "name",
70
 
//              "gid" => "group",
71
 
                "properties" => array(
72
 
                    "name" => "title",
73
 
                    "axis" => "axis"
74
 
                )
75
 
            ),
76
 
            "mask_table" => array(
77
 
                "table" => "MASK_LIST",
78
 
                "id" => "id",
79
 
                "gid" => "gid",
80
 
                "properties" => array(
81
 
                    "name" => "mask_name",
82
 
                    "mask" => "channel_list"
83
 
                )
84
 
            ),
85
 
/*          "cache_config" => array(
86
 
                array("min" => 630720000, "res" => 604800),
87
 
                array("min" => 31536000, "res" => 43200)
88
 
            ),
89
 
            "data_filters" => array(
90
 
                "BADVALUEFilter" => array (
91
 
                    "badvalue" => -9000
92
 
                ),
93
 
            ),
94
 
*/
95
 
);
96
 
 
97
 
?>
 
 
b'\\ No newline at end of file'