/dev/adei-asec

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/adei-asec

« back to all changes in this revision

Viewing changes to setups/battery/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 = "Battery";
3
 
 
4
 
/*
5
 
$MODULES = array("graph", "wiki");
6
 
 
7
 
 
8
 
$EXPORT_FORMATS = array (
9
 
        "csv" => array(
10
 
            'title' => "CSV",
11
 
        ),
12
 
        "xls" => array(
13
 
            'title' => "Excel",
14
 
            'handler' => "EXCEL",
15
 
        ),
16
 
        "tdms" => array(
17
 
            'title' => "TDMS",
18
 
            'handler' => "LABVIEW",
19
 
            'type' => "tdms"
20
 
        )
21
 
);
22
 
*/
23
 
 
24
 
$READER_DB_BATTERY = array(
25
 
        "battery" => array (
26
 
            "title" => _("Battery"),
27
 
            "reader" => "IPEReader",
28
 
            "driver" => "odbc",
29
 
            "sqldrv" => "mssql",
30
 
            "subdrv" => "FreeTDS",
31
 
            "host" => "ipepdvmssqldb1.ka.fzk.de",
32
 
            "port" => 1433,
33
 
            "user" => 'souren',
34
 
            "password" => '$souren$',
35
 
            "database" => array("Bess50"),
36
 
            "charset" => "ISO8859-1",
37
 
            "timeout" => 200000,        // us
38
 
//          "ping" => true,             // host and port should be specified
39
 
//          "disconnected" => true
40
 
        )
41
 
);
42
 
 
43
 
if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_BATTERY, $READER_DB);
44
 
else $READER_DB = $READER_DB_BATTERY;
45
 
 
46
 
 
47
 
$OPTIONS["battery"] = array(
48
 
            "groups" => array(
49
 
                "/^(.*)$/" => 'Wv$LiveData$${1}',
50
 
            ),
51
 
            "tables" => array(
52
 
                "/^Wv\\\$LiveData\\\$(.+)$/" => array(
53
 
                    'gid' => '${1}',
54
 
                    'title' => '${1}'
55
 
                )
56
 
            ),
57
 
            "columns" => array(
58
 
                "time" => "WsDateTimeTicks",
59
 
                "data" => "/^([^W]|W[^s])/"
60
 
            ),
61
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
62
 
            "time_module" => "MSTicks",
63
 
            "timezone" => "Europe/Berlin",
64
 
            "min_resolution" => 60,
65
 
            "ignore_subseconds" => true,
66
 
            "use_md5_postfix" => false
67
 
);