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

  • Committer: Suren A. Chilingaryan
  • Date: 2012-02-07 22:44:15 UTC
  • Revision ID: csa@dside.dyndns.org-20120207224415-sy360wa1ammhd1ph
Use localization subsystem, updated Katrin configs

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
$TITLE = "";
6
6
 
7
7
if (file_exists("/opt/katrin/etc/kdbserver.conf")) {
8
 
    $MODULES = array("config", "slowcontrol", "alarms", "katrin", "graph", "wiki");
 
8
    $MODULES = array("slowcontrol", "alarms", "katrin", "download", "graph", "wiki");
9
9
} else {
10
 
    $MODULES = array("config", "slowcontrol", "alarms", "graph", "wiki");
 
10
    $MODULES = array("slowcontrol", "alarms", "download", "graph", "wiki");
11
11
}
12
12
 
13
13
/*
24
24
 
25
25
$READER_DB_KATRIN = array(
26
26
        "katrin" => array (
27
 
            "title" => _("HauptSpektrometer/Commisioning"),
 
27
            "title" => _("MainSpectrometer/Commissioning"),
28
28
            "reader" => "ZEUS",
29
29
            "driver" => "mysql",
30
 
            "host" => "localhost",
 
30
            "host" => "ipepdvsrv1.ka.fzk.de",
31
31
            "port" => 0,
32
 
            "user" => "zeus",
33
 
            "password" => "zeus",
 
32
            "user" => "adei",
 
33
            "password" => "adei",
34
34
            "database" => array ("hauptspektrometer"),
35
35
//          "disconnected" => true
36
36
        ),
37
37
        "katrindb" => array (
38
 
            "title" => _("PreSpektrometer/Zeus7"),
 
38
            "title" => _("PreSpectrometer/Zeus7"),
39
39
            "reader" => "ZEUS",
40
40
            "driver" => "mysql",
41
 
            "host" => "localhost",
 
41
            "host" => "ipepdvsrv1.ka.fzk.de",
42
42
            "port" => 0,
43
43
            "user" => "adei",
44
44
            "password" => "adei",
48
48
//          "disconnected" => true
49
49
        ),
50
50
        "toskanadb" => array (
51
 
            "title" => _("PreSpektrometer/Zeus8"),
 
51
            "title" => _("PreSpectrometer/Zeus8"),
52
52
            "reader" => "ZEUS",
53
53
            "driver" => "odbc",
54
54
            "sqldrv" => "mssql",
64
64
//          "disconnected" => true
65
65
        ),
66
66
        "msz" => array (
67
 
            "title" => _("MainSpektrometer/Zeus8"),
 
67
            "title" => _("MainSpectrometer/Zeus8"),
68
68
            "reader" => "ZEUS",
69
69
            "driver" => "odbc",
70
70
            "sqldrv" => "mssql",
73
73
            "port" => 1433,
74
74
            "user" => 'souren',
75
75
            "password" => '$souren$',
76
 
            "database" => array ("aircoils_rep"),
 
76
            "database" => array ("katrin_rep", "aircoils_rep", "Monitorspeczeus_rep"),
77
77
            "timeout" => 200000,
78
78
            "ping" => true,
79
79
//          "disconnected" => true
80
80
        ),
81
81
        "opcreader" => array(
82
 
            "title" => _("MainSpektrometer/OPC"),
 
82
            "title" => _("MainSpectrometer/OPC"),
83
83
            "reader" => "DBReader",
84
84
            "driver" => "odbc",
85
85
            "sqldrv" => "mssql",
86
86
            "subdrv" => "FreeTDS",
87
87
            "host" => "ipepdvmssqldb1.ka.fzk.de",
88
88
            "port" => 1433,
89
 
            "database" => array ("dbMagnet-archive", "dbMagnet-archive_rep", "KatrinOPCTest"),
 
89
//          "database" => array ("dbMagnet-archive", "dbMagnet-archive_rep", "MonitorSpec_rep", "KatrinOPCTest"),
 
90
            "database" => array ("MonitorSpec_rep", "KatrinOPCTest"),
90
91
            "user" => 'souren',
91
92
            "password" => '$souren$',
92
93
            "multibase" => false,
94
95
            "ping" => true,
95
96
//          "disconnected" => true
96
97
       ),
97
 
        "detector" => array (
98
 
            "title" => _("KATRIN Detector/MSSQL Sync"),
 
98
        "mssqlsrv" => array(
 
99
            "title" => _("MainSpectrometer/MSSQL"),
 
100
            "reader" => "DBReader",
 
101
            "driver" => "odbc",
 
102
            "sqldrv" => "mssql",
 
103
            "subdrv" => "FreeTDS",
 
104
            "host" => "ikkatrinmssql3.ka.fzk.de",
 
105
            "port" => 1433,
 
106
            "database" => array ("dbMagnet-archive_rep"),
 
107
            #"database" => array ("dbMagnet-archive_rep", "ControlSystem_rep"), #, "ControlSystem_rep.20120207"),
 
108
            "user" => 'souren',
 
109
            "password" => '$souren$',
 
110
            "multibase" => false,
 
111
            "timeout" => 200000,
 
112
            "ping" => true,
 
113
//          "disconnected" => true
 
114
       ),
 
115
 
 
116
/*      "detector" => array (
 
117
            "title" => _("FP Detector/MSSQL Sync"),
99
118
            "reader" => "ZEUS",
100
119
            "driver" => "odbc",
101
120
            "sqldrv" => "mssql",
109
128
            "timeout" => 200000,
110
129
            "ping" => true,
111
130
//          "disconnected" => true
112
 
        ),
 
131
        ),*/
113
132
        "mydetector" => array (
114
 
            "title" => _("KATRIN Detector/ADEI Sync"),
 
133
            "title" => _("Focal Plane Detector"), // /ADEI Sync"),
115
134
            "reader" => "ZEUS",
116
135
            "driver" => "mysql",
117
136
            "host" => "ipepdvsrv1.ka.fzk.de",
258
277
    "date_limit" => "2009-09-09 00:00:00"
259
278
);
260
279
 
261
 
$OPTIONS["opcreader__dbMagnet-archive_rep"] = array(
262
 
    "mask_table" => array(
263
 
        "table" => 'mda.[Wt$ConfigData$Masks]',
 
280
$OPTIONS["mssqlsrv"] = array(
 
281
    "tables" => array(
 
282
        "/^Wt\\\$LiveData\\\$(.*)$/" => array(
 
283
            'gid' => '${1}',
 
284
            'title' => '${1}'
 
285
        )
 
286
    ),
 
287
    "groups" => array(
 
288
        "/^(.*)$/" => 'mda.[Wt$LiveData\$${1}]'
 
289
    ),
 
290
    "columns" => array(
 
291
        "time" => "WsDateTimeTicks",
 
292
        "data" => "/^Ws(Ch)?_/"
 
293
    ),
 
294
    "timezone" => "Europe/Berlin",
 
295
    "time_module" => "MSTICKS",
 
296
    "timesort" => 1,
 
297
    "min_resolution" => 10,
 
298
    "ignore_subseconds" => false,
 
299
    "optimize_empty_cache" => true,
 
300
    "use_cache_timewindow" => true,
 
301
    "use_md5_postfix" => true,
 
302
    "channel_uids" => true,
 
303
    "date_limit" => "2009-09-09 00:00:00"
 
304
);
 
305
 
 
306
 
 
307
$OPTIONS["opcreader__MonitorSpec_rep"] = array(
 
308
    "tables" => array(
 
309
        "/^Wv\\\$LiveData\\\$(.*)$/" => array(
 
310
            'gid' => '${1}',
 
311
            'title' => '${1}'
 
312
        )
 
313
    ),
 
314
    "groups" => array(
 
315
        "/^(.*)$/" => '[Wv$LiveData\$${1}]'
 
316
    ),
 
317
    "columns" => array(
 
318
        "time" => "WsDateTimeTicks",
 
319
        "data" => "/^(MoS|\d)/"
 
320
    )
 
321
);
 
322
 
 
323
 
 
324
$OPTIONS["mssqlsrv__ControllSystem"] = array(
 
325
    "tables" => array(
 
326
        "/^Wv\\\$LiveData\\\$(MonSpec435)$/" => array(
 
327
            array(
 
328
                'gid' => '${1}@1',
 
329
                'title' => '${1}-1'
 
330
            ),
 
331
            array(
 
332
                'gid' => '${1}@2',
 
333
                'title' => '${1}-2'
 
334
            )
 
335
        ),
 
336
        "/^Wv\\\$LiveData\\\$(MonSpec.*)$/" => array(
 
337
            'gid' => '${1}',
 
338
            'title' => '${1}'
 
339
        )
 
340
    ),
 
341
    "groups" => array(
 
342
        "/^([^@]*)(@\d)?$/" => '[Wv$LiveData\$${1}]'
 
343
    ),
 
344
    "columns" => array(
 
345
        "time" => "WsDateTimeTicks",
 
346
        "data" => "/^\d/"
 
347
    )
 
348
);
 
349
 
 
350
$OPTIONS["mssqlsrv__ControllSystem__MonSpec435@1"] = array(
 
351
    "columns" => array(
 
352
        "time" => "WsDateTimeTicks",
 
353
        "data" => "/\/435[A-H]/"
 
354
    )
 
355
);
 
356
 
 
357
$OPTIONS["mssqlsrv__ControllSystem__MonSpec435@2"] = array(
 
358
    "columns" => array(
 
359
        "time" => "WsDateTimeTicks",
 
360
        "data" => "/\/435[I-Z]/"
 
361
    )
 
362
);
 
363
 
 
364
 
 
365
/*
 
366
$OPTIONS["opcreader"] = array(
 
367
    "tables" => array(
 
368
        "/^Wv\\\$LiveData\\\$(.*)$/" => array(
 
369
            'gid' => '${1}',
 
370
            'title' => '${1}'
 
371
        )
 
372
    ),
 
373
    "groups" => array(
 
374
        "/^(.*)$/" => '[Wv$LiveData\$${1}]'
 
375
    ),
 
376
    "columns" => array(
 
377
        "time" => "WsDateTimeTicks",
 
378
        "data" => "/^\d+/"
 
379
    ),
 
380
    "axes_table" => array(
 
381
                "table" => "Axislist",
 
382
                "id" => "id",
 
383
                "properties" => array(
 
384
                    "axis_name" => "comment",
 
385
                    "axis_units" => "unit"
 
386
                )
 
387
    ),
 
388
);
 
389
*/
 
390
 
 
391
$AXIS_DEFS = array(
 
392
        "/\(C\)/"       => "Temperature (C)",
 
393
        "/\(uT\)/"      => "Magnetic field (uT)",
 
394
        "/\(-\)/"       => "Status/error flag (-)",
 
395
        "/\(V\)/"       => "Voltage (V)"
 
396
);
 
397
 
 
398
 
 
399
$OPTIONS["mssqlsrv__dbMagnet-archive_rep"] = array(
 
400
#    "title" => _("433-RBY-8000 Magnetometer");
 
401
);
 
402
 
 
403
 
 
404
$OPTIONS["mssqlsrv__dbMagnet-archive_rep__Ring2"] = array(
 
405
    "fill_raw_first" => true,
 
406
 
 
407
   "mask_table" => array(
 
408
        "table" => 'mda.[Wt$ConfigData$Masks]',
 
409
        "id" => "WsTID",
 
410
        "gid" => "WsTable",
 
411
        "properties" => array(
 
412
            "name" => "WsName",
 
413
            "mask" => "WsChannels"
 
414
        )
 
415
    ),
 
416
 
 
417
     "axis" => $AXIS_DEFS,
 
418
 
 
419
    "item_table" => array(
 
420
                "table" => 'mda.[Wt$ConfigData$SensorlistRing2]',
 
421
                "id" => "name",
 
422
                //"gid" => "group",
 
423
                "properties" => array(
 
424
                    "name" => "comment",
 
425
                    "uid" => "comment",
 
426
                    #"axis" => "axis"
 
427
                )
 
428
    )
 
429
 
 
430
);
 
431
 
 
432
$OPTIONS["mssqlsrv__dbMagnet-archive_rep__VoltageRing2"] = array(
 
433
    "fill_raw_first" => true,
 
434
 
 
435
   "mask_table" => array(
 
436
        "table" => 'mda.[Wt$ConfigData$Masks]',
 
437
        "id" => "WsTID",
 
438
        "gid" => "WsTable",
 
439
        "properties" => array(
 
440
            "name" => "WsName",
 
441
            "mask" => "WsChannels"
 
442
        )
 
443
    ),
 
444
 
 
445
     "axis" => $AXIS_DEFS,
 
446
 
 
447
    "item_table" => array(
 
448
                "table" => 'mda.[Wt$ConfigData$SensorlistRing2]',
 
449
                "id" => "name",
 
450
                //"gid" => "group",
 
451
                "properties" => array(
 
452
                    "name" => "comment",
 
453
                    "uid" => "comment",
 
454
                    #"axis" => "axis"
 
455
                )
 
456
    )
 
457
 
 
458
);
 
459
 
 
460
 
 
461
$OPTIONS["mssqlsrv__dbMagnet-archive_rep__Ring3"] = array(
 
462
    "fill_raw_first" => true,
 
463
 
 
464
   "mask_table" => array(
 
465
        "table" => 'mda.[Wt$ConfigData$Masks]',
264
466
        "id" => "WsTID",
265
467
        "gid" => "WsTable",
266
468
        "properties" => array(
267
469
            "name" => "WsName",
268
470
            "mask" => "WsChannels"
269
471
        )
270
 
    )
271
 
);
 
472
    ),
 
473
 
 
474
     "axis" => $AXIS_DEFS,
 
475
#    "axes_table" => array(
 
476
##               "table" => "Axislist",
 
477
#                "id" => "id",
 
478
#                "properties" => array(
 
479
#                    "axis_name" => "comment",
 
480
#                    "axis_units" => "unit"
 
481
#                )
 
482
#    ),
 
483
    "item_table" => array(
 
484
                "table" => 'mda.[Wt$ConfigData$SensorlistRing3]',
 
485
                "id" => "name",
 
486
                //"gid" => "group",
 
487
                "properties" => array(
 
488
                    "name" => "comment",
 
489
                    "uid" => "comment",
 
490
                    #"axis" => "axis"
 
491
                )
 
492
    )
 
493
 
 
494
);
 
495
 
 
496
$OPTIONS["mssqlsrv__dbMagnet-archive_rep__VoltageRing3"] = array(
 
497
    "fill_raw_first" => true,
 
498
 
 
499
   "mask_table" => array(
 
500
        "table" => 'mda.[Wt$ConfigData$Masks]',
 
501
        "id" => "WsTID",
 
502
        "gid" => "WsTable",
 
503
        "properties" => array(
 
504
            "name" => "WsName",
 
505
            "mask" => "WsChannels"
 
506
        )
 
507
    ),
 
508
 
 
509
     "axis" => $AXIS_DEFS,
 
510
 
 
511
    "item_table" => array(
 
512
                "table" => 'mda.[Wt$ConfigData$SensorlistRing3]',
 
513
                "id" => "name",
 
514
                //"gid" => "group",
 
515
                "properties" => array(
 
516
                    "name" => "comment",
 
517
                    "uid" => "comment",
 
518
                    #"axis" => "axis"
 
519
                )
 
520
    )
 
521
 
 
522
);
 
523
 
 
524
 
 
525
 
 
526
$OPTIONS["mssqlsrv__dbMagnet-archive_rep__Ring4"] = array(
 
527
    "fill_raw_first" => true,
 
528
 
 
529
   "mask_table" => array(
 
530
        "table" => 'mda.[Wt$ConfigData$Masks]',
 
531
        "id" => "WsTID",
 
532
        "gid" => "WsTable",
 
533
        "properties" => array(
 
534
            "name" => "WsName",
 
535
            "mask" => "WsChannels"
 
536
        )
 
537
    ),
 
538
 
 
539
     "axis" => $AXIS_DEFS,
 
540
 
 
541
    "item_table" => array(
 
542
                "table" => 'mda.[Wt$ConfigData$SensorlistRing4]',
 
543
                "id" => "name",
 
544
                //"gid" => "group",
 
545
                "properties" => array(
 
546
                    "name" => "comment",
 
547
                    "uid" => "comment",
 
548
                    #"axis" => "axis"
 
549
                )
 
550
    )
 
551
 
 
552
);
 
553
 
 
554
$OPTIONS["mssqlsrv__dbMagnet-archive_rep__VoltageRing4"] = array(
 
555
    "fill_raw_first" => true,
 
556
 
 
557
   "mask_table" => array(
 
558
        "table" => 'mda.[Wt$ConfigData$Masks]',
 
559
        "id" => "WsTID",
 
560
        "gid" => "WsTable",
 
561
        "properties" => array(
 
562
            "name" => "WsName",
 
563
            "mask" => "WsChannels"
 
564
        )
 
565
    ),
 
566
 
 
567
     "axis" => $AXIS_DEFS,
 
568
 
 
569
    "item_table" => array(
 
570
                "table" => 'mda.[Wt$ConfigData$SensorlistRing4]',
 
571
                "id" => "name",
 
572
                //"gid" => "group",
 
573
                "properties" => array(
 
574
                    "name" => "comment",
 
575
                    "uid" => "comment",
 
576
                    #"axis" => "axis"
 
577
                )
 
578
    )
 
579
 
 
580
);
 
581
 
 
582
 
272
583
 
273
584
$OPTIONS["opcreader__KatrinOPCTest"] = array(
274
585
    "tables" => array(
283
594
    "columns" => array(
284
595
        "time" => "WsDateTimeTicks",
285
596
        "data" => "/^\d+/"
286
 
    )
 
597
    ),
 
598
    "axes_table" => array(
 
599
                "table" => "Axislist",
 
600
                "id" => "id",
 
601
                "properties" => array(
 
602
                    "axis_name" => "comment",
 
603
                    "axis_units" => "unit"
 
604
                )
 
605
    ),
 
606
    "item_table" => array(
 
607
                "table" => "Sensorlist",
 
608
                "id" => "name",
 
609
                //"gid" => "group",
 
610
                "properties" => array(
 
611
                    "name" => "comment",
 
612
                    "axis" => "axis"
 
613
                )
 
614
    )       
287
615
);
288
616
 
289
617
$OPTIONS["kdb"] = array(
290
618
    "date_limit" => "2009-11-00 00:00:00"
291
619
);
292
620
 
293
 
$SEARCH_ENGINES["KDBSearch"] = array();
 
621
//$SEARCH_ENGINES["KDBSearch"] = array();
294
622
$CONTROLS = array("export", "aggregator", "searchtab", false, "virtual", "filter"); // false/null indicates line break
295
623
 
296
624
?>