/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to setups/toska/config.php

  • Committer: Suren A. Chilingaryan
  • Date: 2008-04-02 10:23:22 UTC
  • Revision ID: csa@dside.dyndns.org-20080402102322-okib92sicg2dx3o3
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
$TITLE = "";
 
4
$MODULES = array("config", "graph", "help");
 
5
 
 
6
 
 
7
$EXPORT_FORMATS = array (
 
8
        "csv" => array(
 
9
            'title' => "CSV",
 
10
        ),
 
11
        "xls" => array(
 
12
            'title' => "Excel",
 
13
            'handler' => "EXCEL",
 
14
        )
 
15
);
 
16
 
 
17
 
 
18
$READER_DB_TOSKA = array(
 
19
        "toska" => array (
 
20
            "title" => _("TOSKA"),
 
21
            "reader" => "DBReader",
 
22
            "driver" => "odbc",
 
23
            "sqldrv" => "mssql",
 
24
            "subdrv" => "FreeTDS",
 
25
            "host" => "itpfmdb1.ka.fzk.de",
 
26
            "port" => 0,
 
27
            "user" => "souren",
 
28
            "password" => '$souren$',
 
29
            "database" => array("womisaDB_repl")
 
30
//          "disconnected" => true
 
31
        )
 
32
);
 
33
 
 
34
if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_TOSKA, $READER_DB);
 
35
else $READER_DB = $READER_DB_TOSKA;
 
36
 
 
37
$OPTIONS["toska__womisaDB_repl"] = array(
 
38
            "groups" => array(
 
39
                "/modul(\d+)/" => 'mda.Wt$LiveData$ModulTest${1}',
 
40
                "/strom(\d+)/" => 'Wv$Meda$STROMTEST_SE002$r${1}$ITPFMPXI01$Modul01\$09'
 
41
            ),
 
42
            "tables" => array(
 
43
//              "/^.*ModulTest(\d+)$/" => array(
 
44
                "/^.*ModulTest(10)$/" => array(
 
45
                    'gid' => 'modul${1}',
 
46
                    'title' => 'Modul ${1} Hz'
 
47
                ),
 
48
                "/^.*STROMTEST.*r(012).*$/" => array(
 
49
                    'gid' => 'strom${1}',
 
50
                    'title' => 'StromTest ${1}'
 
51
                )
 
52
            ),
 
53
            "columns" => array(
 
54
                "time" => "WsDateTimeTicks",
 
55
                "data" => "/^((WsCh_\d+)|([^W][^s]))/"
 
56
            ),
 
57
            "timezone" => "Europe/Berlin",
 
58
            "time_module" => "MSTICKS",
 
59
//          "time_options" => -36000000000,                     // correction
 
60
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
 
61
            "date_limit" => "2008-01-01 00:00:00",              //GMT
 
62
//          "date_limit" => "2008-03-29 21:00:00",              //GMT
 
63
            "min_resolution" => 10,
 
64
            "ignore_subseconds" => false,
 
65
            "optimize_empty_cache" => true,
 
66
            "use_cache_timewindow" => true,
 
67
//          "use_cache_reader" => true,
 
68
            "use_md5_postfix" => true
 
69
);
 
70
 
 
71
 
 
72
$OPTIONS["toska__womisaDB_repl__modul1000"] = array(
 
73
    "min_resolution" => 1,
 
74
    "cache_config" => array(
 
75
        array("min" => 31536000, "res" => 43200),
 
76
        array("min" => 2592000, "res" => 3600),
 
77
        array("min" => 604800, "res" => 600),
 
78
        array("min" => 86400, "res" => 60),
 
79
        array("min" => 7200, "res" => 10),
 
80
        array("min" => 600, "res" => 1)
 
81
    )
 
82
);
 
83
 
 
84
$OPTIONS["toska__womisaDB_repl__strom012"] = array(
 
85
    "min_resolution" => 1,
 
86
    "cache_config" => array(
 
87
        array("min" => 31536000, "res" => 43200),
 
88
        array("min" => 2592000, "res" => 3600),
 
89
        array("min" => 604800, "res" => 600),
 
90
        array("min" => 86400, "res" => 60),
 
91
        array("min" => 7200, "res" => 10),
 
92
        array("min" => 600, "res" => 1)
 
93
    )
 
94
);
 
95
 
 
96
 
 
97
// Enable in release
 
98
#    $SOURCE_KEEP_WINDOW = true;
 
99
 
 
100
?>
 
 
b'\\ No newline at end of file'