/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/imk/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
 
 
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_IMK = array(
23
 
        "mast" => array (
24
 
            "title" => _("Weather Tower"),
25
 
            "reader" => "IPEReader",
26
 
            "driver" => "odbc",
27
 
            "sqldrv" => "mssql",
28
 
            "subdrv" => "FreeTDS",
29
 
            "host" => "ipepdvmssqldb1.ka.fzk.de",
30
 
            "port" => 1433,
31
 
            "user" => 'souren',
32
 
            "password" => '$souren$',
33
 
            "database" => array("Mastdaten_rep"),
34
 
            "charset" => "ISO8859-1",
35
 
            "timeout" => 200000,        // us
36
 
            "ping" => true,             // host and port should be specified
37
 
            "disconnected" => false
38
 
        )
39
 
);
40
 
 
41
 
if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_IMK, $READER_DB);
42
 
else $READER_DB = $READER_DB_IMK;
43
 
 
44
 
 
45
 
$OPTIONS["mast"] = array(
46
 
            "groups" => array(
47
 
                "/^(.*)$/" => 'Wv$LiveData$${1}',
48
 
            ),
49
 
            "tables" => array(
50
 
                "/^Wv\\\$LiveData\\\$([\w\d_]+)$/" => array(
51
 
                    'gid' => '${1}',
52
 
                    'title' => '${1}'
53
 
                )
54
 
            ),
55
 
            "columns" => array(
56
 
                "time" => "WsDateTimeTicks",
57
 
                "data" => "/^MT_/"
58
 
            ),
59
 
            "timezone" => "Europe/Berlin",
60
 
            "time_module" => "MSTICKS",
61
 
//          "time_options" => -36000000000,                     // correction
62
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
63
 
//          "date_limit" => "2000-01-01 00:00:00",              //GMT
64
 
//          "date_limit" => array("2005-08-06 00:00:00","2005-08-08 00:00:00"),         //GMT
65
 
//          "date_limit" => "2008-03-29 21:00:00",              //GMT
66
 
            "min_resolution" => 60,
67
 
            "ignore_subseconds" => true,
68
 
            "optimize_empty_cache" => true,
69
 
            "use_cache_timewindow" => true,
70
 
//          "use_cache_reader" => true,
71
 
            "use_md5_postfix" => false,
72
 
            "trace_timings" => false,
73
 
            "monitor_timings" => array(
74
 
                "query_limit" => 500000,                /* us */
75
 
                "raise_exception" => true
76
 
            ),
77
 
/*          "cache_config" => array(
78
 
                array("min" => 630720000, "res" => 604800),
79
 
                array("min" => 31536000, "res" => 43200)
80
 
            ),
81
 
            "data_filters" => array(
82
 
                "BADVALUEFilter" => array (
83
 
                    "badvalue" => 1999
84
 
                ),
85
 
            )*/
86
 
);
87
 
 
88
 
$OPTIONS["mast__Mastdaten_rep__Licor"] = array(
89
 
            "min_resolution" => 10,
90
 
            "ignore_subseconds" => false
91
 
);
92
 
 
93
 
$OPTIONS["mast__Mastdaten_rep__DewPoint"] = array(
94
 
            "min_resolution" => 3600,
95
 
            "ignore_subseconds" => false
96
 
);
97
 
 
98
 
?>