Пример #1
0
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#################################################################
# Ver:0.1.5  / Datum 25.05.2014
# Ver:0.1.6  / Datum 10.01.2015 'reading configuration changed'
# Ver:0.1.7.1/ Datum 04.03.2015 'socket option' activated
#                               logging from ht_utils added
#################################################################

import sys
sys.path.append('lib')
import ht3_worker

configurationfilename='./etc/config/HT3_db_cfg.xml'
logfilename="ht_analyser.log"
      #### reconfiguration has to be done in configuration-file ####
HT3_Analyser=ht3_worker.ht3_cworker(configurationfilename, logfilename_in=logfilename)
HT3_Analyser.run()
Пример #2
0
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#################################################################
# Ver:0.1.5  / Datum 25.05.2014
# Ver:0.1.6  / Datum 10.01.2015 'reading configuration changed'
# Ver:0.1.7.1/ Datum 04.03.2015 'socket option' activated
#                               logging from ht_utils added
# Ver:0.3    / Datum 20.06.2017 config-file: HT3_db_off_cfg.xml used.
#################################################################

import sys
sys.path.append('lib')
import ht3_worker

configurationfilename='./etc/config/HT3_db_off_cfg.xml'
logfilename="ht_systemstatus.log"
      #### reconfiguration has to be done in configuration-file ####
HT3_Systemstatus=ht3_worker.ht3_cworker(configurationfilename, hexdump_window=False, logfilename_in=logfilename)
HT3_Systemstatus.run()
Пример #3
0
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#################################################################
# Ver:0.1.5  / Datum 25.05.2014
# Ver:0.1.6  / Datum 10.01.2015 'reading configuration changed'
# Ver:0.1.7.1/ Datum 04.03.2015 'socket option' activated
#                               logging from ht_utils added
# Ver:0.3    / Datum 20.06.2017 config-file: HT3_db_off_cfg.xml used.
#################################################################

import sys
sys.path.append('lib')
import ht3_worker

configurationfilename = './etc/config/HT3_db_off_cfg.xml'
logfilename = "ht_analyser.log"
#### reconfiguration has to be done in configuration-file ####
HT3_Analyser = ht3_worker.ht3_cworker(configurationfilename,
                                      logfilename_in=logfilename)
HT3_Analyser.run()
Пример #4
0
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#################################################################
# Ver:0.1.5  / Datum 25.05.2014
# Ver:0.1.6  / Datum 10.01.2015 'reading configuration changed'
# Ver:0.1.7.1/ Datum 04.03.2015 'socket option' activated
#                               logging from ht_utils added
#################################################################

import sys, time
sys.path.append('lib')
import ht3_worker

configurationfilename='./etc/config/HT3_db_cfg.xml'
logfilename="ht_logger.log"
      #### reconfiguration has to be done in configuration-file ####
HT3_logger=ht3_worker.ht3_cworker(configurationfilename, hexdump_window=False, gui_active=False, logfilename_in=logfilename)
HT3_logger.run()
while True:
    time.sleep(2)
Пример #5
0
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#################################################################
# Ver:0.1.5  / Datum 25.05.2014
#################################################################

import sys, time
sys.path.append('lib')
import ht3_worker

configurationfilename='./etc/config/HT3_db_cfg.xml'
##### activate the valid devicename for the HT3-Port
#
deviceport="/dev/ttyAMA0"
# deviceport="/dev/ttyUSB0"
# deviceport="/dev/ttyUSB1"
#####

HT3_logger=ht3_worker.ht3_cworker(configurationfilename, deviceport, False, False)
HT3_logger.run()
while True:
    time.sleep(2)
Пример #6
0
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#################################################################
# Ver:0.1.5  / Datum 25.05.2014
#################################################################

import sys
sys.path.append('lib')
import ht3_worker

configurationfilename='./etc/config/HT3_db_cfg.xml'
##### activate the valid devicename for the HT3-Port
#
deviceport="/dev/ttyAMA0"
# deviceport="/dev/ttyUSB0"
# deviceport="/dev/ttyUSB1"
#####

HT3_Analyser=ht3_worker.ht3_cworker(configurationfilename, deviceport)
HT3_Analyser.run()