Commit 5f560e61 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

imported in gitlab

parents
release_20: fix crash on contextMenuEvent in AlarmTreeWidget when positioned outside an item
release_19: fix Sound::play calls loop() in Qt4 version
release_18: if qt version < 5 then use phonon for sound.
release_17: removed dependency from System Tray. Two popups warn upon close event instead.
release_14: items ordered by Level (and time)
items color according to Level
/alarm.qrc/1.5/Fri Jun 22 14:57:26 2012//
D/bin////
D/etc////
D/icons////
D/src////
/INSTALL/1.1/Fri Feb 15 09:52:17 2019//
/README/1.5/Tue Feb 26 08:57:47 2019//
/TODO/1.2/Tue Feb 26 08:57:47 2019//
/alarm-fermi.sh/1.5/Tue Feb 26 08:57:47 2019//
/alarm-padres.sh/1.4/Tue Feb 26 08:57:47 2019//
/alarm-panel-booster.sh/1.6/Tue Feb 26 08:57:47 2019//
/alarm-panel-sr.sh/1.7/Tue Feb 26 08:57:47 2019//
/alarm-panel-test.sh/1.7/Tue Feb 26 08:57:47 2019//
/alarm.pro/1.23/Wed Mar 20 09:34:55 2019//
/CHANGELOG/1.7/Thu Sep 19 07:00:25 2019//
utils/alarm/tango/panel
:pserver:giacomo@hokuto:/home/cvsadm/cvsroot
Install sound files in /runtime/share/sounds
Install alarm-fermi.sh alarm-padres.sh in /runtime/panels/bin
Install alarm-elettra.sh alarm-booster.sh /runtime/elettra/bin
Install icons in /runtime/share/icons
$Id: README,v 1.5 2019-02-25 10:35:38 claudio Exp $
alarm
===============================================================
Introduction
qt panel for alarm notification and alarm history browsing.
use phonon for audio notifications and mysql for reading alar history from
database.
Tested on ubuntu 18.06_x86_64
---------------------------------------------------------------
Requirements:
qtango6
qt-5
----------------------------------------------------------------
Tango devices used:
alarm-srv
alarmtest-srv
----------------------------------------------------------------
Other requirements:
correcly confgured mysql user for retrinving alarm history
correclty configured audio system
sound files installed in /runtime/share/sounds, wav format, inucluding silence period at the and of sound.
icons file installed in /runtime/share/icons
----------------------------------------------------------------
Building:
qmake
make
------------------------------------------------------------------
Installed release
------------------------------------------------------------------
Main customer:
control room operators
Errors & Troubleshooting
------------------------
If you experience problems, please contact:
giacomo.strangolino@elettra.trieste.it
claudio.scafuri@elettra.trieste.it
Thank you.
Sincrotrone Trieste s.c.p.a - ELETTRA Laboratory - Controls Group
TODO:
2018-02-15 : C. S.
Enhance Soucd class to add a add a delay after each loop. Now we use the trick of appending some silence in the sound files.
2013-05-20 : C.S.
AlarmWidgettreeItem: gestire i font spostando i due font usati a qualcosa di globale senza creare un istanza ad ogni chiamata.
#!/bin/bash
echo -n "Starting Alarm panel for FERMI: " >> $HOME/log/alarm-panel-fermi-$HOSTNAME.log;
date >> $HOME/log/alarm-panel-fermi-$HOSTNAME.log;
export TANGO_HOST=srv-tango-srf.fcs.elettra.trieste.it:20000
alarm f/alarm/alarm_f --sound-file-name /runtime/share/sounds/alarmfermi.wav style=fermi --alarm-test-devname test/alarmtest/0 --log-database-host srv-db-srf 1>>$HOME/log/alarm-panel-fermi-$HOSTNAME.log 2>&1;
exit 0
# EOF
#!/bin/bash
echo -n "Starting Alarm panel for PADRES: " >> $HOME/log/alarm-panel-padres-$HOSTNAME.log;
date >> $HOME/log/alarm-panel-padres-$HOSTNAME.log;
export TANGO_HOST=srv-padres-srf.fcs.elettra.trieste.it:20000
alarm padres/alarm/1 --sound-file-name /runtime/share/sounds/alarmfermi.wav style=fermi --alarm-test-devname tango://srv-tango-srf:20000/test/alarmtest/0 --log-database-host srv-db-srf 1>>/home/fermi/log/alarm-panel-fermi-$HOSTNAME.log 2>&1;
exit 0
# EOF
#!/bin/bash
echo -n "Starting Alarm panel for Booster: " >> $HOME/log/alarm-panel-booster-$HOSTNAME.log;
date >> $HOME/log/alarm-panel-booster-$HOSTNAME.log;
export TANGO_HOST=tom:20000
alarm booster/alarm/1 --sound-file-name /runtime/share/sounds/gentex_cammander.wav style=booster 1>>$HOME/log/alarm-panel-booster-$HOSTNAME.log 2>&1;
exit 0
# EOF
#!/bin/bash
echo -n "Starting Alarm panel for SR: " >> $HOME/log/alarm-panel-sr-$HOSTNAME.log;
date >> $HOME/log/alarm-panel-sr-$HOSTNAME.log;
export TANGO_HOST=tom:20000
alarm storage_ring/alarm/1 --log-database-host tom --sound-file-name /runtime/share/sounds/alarmelettra.wav style=elettra 1>>$HOME/log/alarm-panel-sr-$HOSTNAME.log 2>&1;
exit 0
# EOF
#!/bin/bash
bin/alarm test/alarm/g --sound-file-name icons/sounds/alarmfermi.wav --log-database-host goofy --alarm-test-devname test/alarmtest/0 1>>/$HOME/log/alarm-panel-test-$HOSTNAME.log 2>&1;
exit 0
include(/usr/local/qtango/include/qtango6/qtango.pri)
TEMPLATE = app
CONFIG += warn_on debug qt app_bundle
QT += sql
QT += multimedia
lessThan(QT_MAJOR_VERSION, 5) {
message("Qt4 detected: using phonon for sound")
QT += phonon
}
DEFINES += QT_NO_DEBUG_OUTPUT
RESOURCES += alarm.qrc
INCLUDEPATH += src
SOURCES += src/alarm.cpp \
src/main.cpp \
src/AlarmTreeWidget.cpp \
src/AlarmTreeWidgetItem.cpp \
src/Sound.cpp \
src/AlarmHistoryTree.cpp \
src/mysqlmodel.cpp
HEADERS += src/alarm.h \
src/AlarmTreeWidget.h \
src/AlarmTreeWidgetItem.h \
src/filter.h \
src/Sound.h \
src/AlarmHistoryTree.h \
src/mysqlmodel.h
FORMS = src/alarm.ui
TARGET = bin/alarm
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>icons/elettra-alarm.png</file>
<file>icons/fermi-alarm.png</file>
<file>icons/booster-alarm.png</file>
<file>icons/audio-volume-muted.png</file>
</qresource>
</RCC>
utils/alarm/tango/panel/etc
:pserver:giacomo@hokuto:/home/cvsadm/cvsroot
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment