Merge branch 'release/iobWinPSer_2.8'

This commit is contained in:
Samuele Locatelli
2024-06-12 10:40:34 +02:00
16 changed files with 121 additions and 698 deletions
+77
View File
@@ -0,0 +1,77 @@
import logging
import os, sys
import threading
import time
from datetime import datetime
from logging.handlers import RotatingFileHandler
BASE_PATH = os.path.dirname(__file__) + '\\'
LOGFILE='my_logger.log'
logPath = os.path.join(BASE_PATH, LOGFILE)
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger('MainLog')
logCheck = logging.getLogger('CheckLog')
logTask = logging.getLogger('taskLog')
# gestore handler x logrotate
handler = RotatingFileHandler(logPath,
maxBytes=1024*16,
backupCount=10
)
# Define a custom formatter
formatter = logging.Formatter('%(asctime)s %(name)-8s %(levelname)-8s %(message)s')
handler.setFormatter(formatter)
logger.addHandler(handler)
logCheck.addHandler(handler)
logTask.addHandler(handler)
#---------------------------------------------------------------
# funzione timer thread
#---------------------------------------------------------------
def do_every (interval, worker_func, iterations = 0):
if iterations != 1:
threading.Timer (
interval,
do_every, [interval, worker_func, 0 if iterations == 0 else iterations-1]
).start ();
worker_func ();
#---------------------------------------------------------------
# funzione verifica LOG
#---------------------------------------------------------------
def checkLog():
global LOGFILE
try:
# verifico logfile...
logCheck.info("verifica log")
# logPath = os.path.join(BASE_LOG_PATH, LOGFILE)
# fileSize = os.path.getsize(logPath)
except Exception as exc :
sys.stdout.write ( '\n errore in checkLog \n\n' )
#---------------------------------------------------------------
# funzione WatchDog verso REDIS
#---------------------------------------------------------------
def sendWatchDog():
# invio su redis stato
adesso = datetime.now()
logTask.debug('Invio a REDIS segnale watchdog')
do_every ( 0.2 , checkLog )
do_every ( 0.1 , sendWatchDog )
for _ in range(10000):
time.sleep (0.01)
logger.debug('Hello, world!')
Binary file not shown.
+26 -17
View File
@@ -49,12 +49,12 @@ class IobWinStatus:
#--------------------------------------------------------------
MAY_LOG_FILE = 30
SAMPLETIME = 0.1
LOGFILE = 'logfile.txt'
LOGFILE = 'logfile.log'
LOGLEVEL = 1
PROGRAM_NAME= 'TEST LOG'
IOB_NAME='IOB'
IOB_CONF='IOB.cfg'
MAX_LOG_SIZE = 1024 * 10
MAX_LOG_SIZE = 1024 * 16
NUM_LOG_RETAIN = 5
REDIS_HOST = '127.0.0.1'
REDIS_PORT = 6379
@@ -84,8 +84,6 @@ def checkLog():
try:
# verifico logfile...
logPro.info("verifica log")
# logPath = os.path.join(BASE_LOG_PATH, LOGFILE)
# fileSize = os.path.getsize(logPath)
except Exception as exc :
sys.stdout.write ( '\n errore in checkLog \n\n' )
@@ -105,7 +103,7 @@ def sendWatchDog():
rawVal = redIobMan.toJSON()
redSrv0.set(f'IOB-WIN-PSER-TEST:IOB:{IOB_NAME}', rawVal)
# redSrv0.set(f'Python:IobWinStatus:{IOB_CONF}', adesso.strftime("%H:%M:%S"))
logSnd.debug('Invio a REDIS')
logSnd.debug('Invio a REDIS segnale watchdog')
#----------------------------------------------------------------------
# Setup
@@ -136,10 +134,10 @@ try:
confFilePath = os.path.join(BASE_PATH, 'CONF', IOB_CONF)
config.read(confFilePath)
# lettura parametri
LOGFILE = config.get('log','LOGFILE')
LOGLEVEL = config.get('log','LOGLEVEL')
#LOGFILE = config.get('log','LOGFILE')
#LOGLEVEL = config.getint('log','LOGLEVEL')
SAMPLETIME = config.getfloat('time','SAMPLETIME')
MAX_LOG_SIZE = config.getint('log','MAX_LOG_SIZE')
#MAX_LOG_SIZE = config.getint('log','MAX_LOG_SIZE')
NUM_LOG_RETAIN = config.getint('log','NUM_LOG_RETAIN')
REDIS_HOST = config.get('redis','REDIS_HOST')
REDIS_PORT = config.getint('redis','REDIS_PORT')
@@ -163,6 +161,7 @@ try:
print(f'REDIS_HOST: {REDIS_HOST}')
print(f'REDIS_PORT: {REDIS_PORT}')
print(f'REDIS_DB: {REDIS_DB}')
print(f'LogFile: {logPath}')
# setup oggetto comunicazione redis...
redIobMan = IobWinStatus(IOB_NAME,'IOB-WIN-PSER-TEST')
@@ -178,18 +177,28 @@ except Exception as exc :
# Oggetto Logger
#--------------------------------------------
try:
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(name)-8s %(levelname)-8s %(message)s',
datefmt='%Y-%m-%d %H:%M:%S'
)
print(f'Log setup starting...')
logPath = os.path.join(BASE_LOG_PATH, LOGFILE)
cLogLevel = logging.DEBUG
if LOGLEVEL > 10:
cLogLevel = logging.WARN
elif LOGLEVEL > 5:
cLogLevel = logging.INFO
logging.basicConfig(level=logging.DEBUG)
# add a rotating handler
logPath = os.path.join(BASE_LOG_PATH, LOGFILE)
handler = RotatingFileHandler(logPath,
maxBytes=MAX_LOG_SIZE,
backupCount=NUM_LOG_RETAIN
)
# Define a custom formatter
formatter = logging.Formatter('%(asctime)s %(name)-8s %(levelname)-8s %(message)s')
handler.setFormatter(formatter)
# aggiungo logger specifici (program,queue,send...)
logQue = logging.getLogger('queue')
logSnd = logging.getLogger('sendUrl')
@@ -198,8 +207,8 @@ try:
logSnd.addHandler(handler)
logPro.addHandler(handler)
print("Setup completed")
print("----------------------------")
print(f'Setup completed')
print(f'----------------------------')
except Exception as exc:
# manda mail o simili - FARE!!!
@@ -208,8 +217,8 @@ except Exception as exc:
#--------------------------------------------
do_every ( 3 , checkLog )
do_every ( 4 , sendWatchDog )
do_every ( 0.3 , checkLog )
do_every ( 0.1 , sendWatchDog )
logPro.info( "Start " + PROGRAM_NAME )
-38
View File
@@ -1,38 +0,0 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['IOB-WIN-PSER-TEST.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='IOB-WIN-PSER-TEST',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['SteamWare.ico'],
)
+17 -9
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# IOB-WIN-PSER v. 2.7
# IOB-WIN-PSER v. 2.8
# - porting versione interpretata su Python2 + XP a Python3
# - aggiunta classi Redis
# - compilato con pyInterpreter
@@ -7,6 +7,7 @@
# - invio multiplo x send eventi AccodaEVti
# - attenzione .. non c'e' la possibilita di definire bit blinking, inversione ecc.
# - gestione wait se troppi errori in msglen...
# - correzione gestione loghandler x logrotate e scrittura doppia (log + console separate)
#---------------------------------------------------------------
import configparser
@@ -31,7 +32,7 @@ from urllib.request import urlopen
# Setup COSTANTI e variabili globali
#--------------------------------------------------------------
# Conf Generale
PROGRAM_NAME= 'IOB-WIN-PythonSERial v.2.7'
PROGRAM_NAME= 'IOB-WIN-PythonSERial v.2.8'
# IOB_NAME='IOB'
# IOB_CONF='IOB.cfg'
IOB_NAME='L001'
@@ -425,7 +426,7 @@ def SendWatchDog():
redIobMan.online = (onLine == '1')
rawVal = redIobMan.toJSON()
redSrv0.set(f'IOB-WIN-PSER:IOB:{IOB_NAME}', rawVal)
logPro.debug('Invio a REDIS')
logPro.debug('Invio a REDIS WatchDog')
#---------------------------------------------------------------
@@ -459,7 +460,7 @@ try:
# lettura parametri di base
LOGFILE = config.get('log','LOGFILE')
LOGLEVEL = config.get('log','LOGLEVEL')
LOGLEVEL = config.getint('log','LOGLEVEL')
MAX_LOG_SIZE = config.getint('log','MAX_LOG_SIZE')
NUM_LOG_RETAIN = config.getint('log','NUM_LOG_RETAIN')
REDIS_HOST = config.get('redis','REDIS_HOST')
@@ -538,11 +539,14 @@ except Exception as exc :
#--------------------------------------------
try:
logPath = os.path.join(BASE_LOG_PATH, LOGFILE)
logging.basicConfig(level=logging.DEBUG,
filename=logPath,
format='%(asctime)s %(name)-8s %(levelname)-8s %(message)s',
datefmt='%Y.%m.%d %H:%M:%S'
)
cLogLevel = logging.DEBUG
if LOGLEVEL > 10:
cLogLevel = logging.WARN
elif LOGLEVEL > 5:
cLogLevel = logging.INFO
logging.basicConfig(level=cLogLevel)
# add a rotating handler
handler = RotatingFileHandler(logPath,
@@ -550,6 +554,10 @@ try:
backupCount=NUM_LOG_RETAIN
)
# Define a custom formatter
formatter = logging.Formatter('%(asctime)s %(name)-8s %(levelname)-8s %(message)s')
handler.setFormatter(formatter)
# aggiungo logger specifici (program,queue,send...)
logQue = logging.getLogger('queue')
logSnd = logging.getLogger('sendUrl')
+1 -1
View File
@@ -16,7 +16,7 @@ Vanno installate eventuali dipendenze (es **pip install redis**) x moduli non st
Le modifiche principali per passare dalla versione WinXp (interpretata) alla nuova (compilata) hanno riguardato
* migrazione Python2 (2.7) --> Python3 (3.11)
* impiego di VSCode coem edito e debugger soluzione
* impiego di VSCode come editor e debugger soluzione
* revisione gestione parser e lettura configurazione
* nuova configurazione logfile (con rotate gestito dalla libreria)
* introduzione librerie x Redis
Binary file not shown.
-65
View File
@@ -1,65 +0,0 @@
[comm]
port = COM5
[id]
idxMacchina = L003
[web]
URLBASE = http://192.168.111.104/MP/IO/IOB/input/
URLALIVE = http://192.168.111.104/MP/IO/IOB
URLENABLED = http://192.168.111.104/MP/IO/IOB/enabled/
URLADV1 = ?valore=
URLREBO = http://192.168.111.104/MP/IO/sendReboot.aspx?idxMacchina=
[time]
SAMPLETIME = 0.05
TIMEOUTSHORT = 0.30
TIMEOUTLONG = 50
SENDURLTIME = 0.15
NMAXSEND = 5
WAIT_RECONN = 2
[log]
LOGLEVEL = 10
LOGFILE = logfile.txt
LOGREBO = logReboot.txt
MAX_LOG_SIZE = 102400
NUM_LOG_RETAIN = 10
[redis]
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_DB=10
[blink]
MAX_COUNTER_BLINK = 30
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[invert]
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[filter]
MAX_COUNTER_FILTER = 5
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
-71
View File
@@ -1,71 +0,0 @@
[comm]
port = COM4
[id]
idxMacchina = L001
[web]
URLBASE = http://10.74.82.218/MP/IO/IOB/input/
URLALIVE = http://10.74.82.218/MP/IO/IOB
URLENABLED = http://10.74.82.218/MP/IO/IOB/enabled/
URLADV1 = ?valore=
URLREBO = http://10.74.82.218/MP/IO/sendReboot.aspx?idxMacchina=
; URLBASE = http://192.168.111.104/MP/IO/IOB/input/
; URLALIVE = http://192.168.111.104/MP/IO/IOB
; URLENABLED = http://192.168.111.104/MP/IO/IOB/enabled/
; URLADV1 = ?valore=
; URLREBO = http://192.168.111.104/MP/IO/sendReboot.aspx?idxMacchina=
[time]
SAMPLETIME = 0.05
TIMEOUTSHORT = 0.30
TIMEOUTLONG = 50
SENDURLTIME = 0.15
NMAXSEND = 5
WAIT_RECONN = 2
[log]
LOGLEVEL = 10
LOGFILE = logfile.txt
LOGREBO = logReboot.txt
MAX_LOG_SIZE = 1048576
NUM_LOG_RETAIN = 30
[redis]
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_DB=10
[blink]
MAX_COUNTER_BLINK = 30
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[invert]
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[filter]
MAX_COUNTER_FILTER = 5
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
-71
View File
@@ -1,71 +0,0 @@
[comm]
port = COM21
[id]
idxMacchina = L003
#[web]
#URLBASE = http://192.168.111.104/MP/IO/IOB/input/
#URLALIVE = http://192.168.111.104/MP/IO/IOB
#URLENABLED = http://192.168.111.104/MP/IO/IOB/enabled/
#URLADV1 = ?valore=
#URLREBO = http://192.168.111.104/MP/IO/sendReboot.aspx?idxMacchina=
[web]
URLBASE = http://10.74.82.218/MP/IO/IOB/input/
URLALIVE = http://10.74.82.218/MP/IO/IOB
URLENABLED = http://10.74.82.218/MP/IO/IOB/enabled/
URLADV1 = ?valore=
URLREBO = http://10.74.82.218/MP/IO/sendReboot.aspx?idxMacchina=
[time]
SAMPLETIME = 0.05
TIMEOUTSHORT = 0.30
TIMEOUTLONG = 50
SENDURLTIME = 0.15
NMAXSEND = 5
WAIT_RECONN = 2
[log]
LOGLEVEL = 10
LOGFILE = logfile.txt
LOGREBO = logReboot.txt
MAX_LOG_SIZE = 1048576
NUM_LOG_RETAIN = 30
[redis]
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_DB=10
[blink]
MAX_COUNTER_BLINK = 30
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[invert]
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[filter]
MAX_COUNTER_FILTER = 5
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
-71
View File
@@ -1,71 +0,0 @@
[comm]
port = COM22
[id]
idxMacchina = L004
#[web]
#URLBASE = http://192.168.111.104/MP/IO/IOB/input/
#URLALIVE = http://192.168.111.104/MP/IO/IOB
#URLENABLED = http://192.168.111.104/MP/IO/IOB/enabled/
#URLADV1 = ?valore=
#URLREBO = http://192.168.111.104/MP/IO/sendReboot.aspx?idxMacchina=
[web]
URLBASE = http://10.74.82.218/MP/IO/IOB/input/
URLALIVE = http://10.74.82.218/MP/IO/IOB
URLENABLED = http://10.74.82.218/MP/IO/IOB/enabled/
URLADV1 = ?valore=
URLREBO = http://10.74.82.218/MP/IO/sendReboot.aspx?idxMacchina=
[time]
SAMPLETIME = 0.05
TIMEOUTSHORT = 0.30
TIMEOUTLONG = 50
SENDURLTIME = 0.15
NMAXSEND = 5
WAIT_RECONN = 2
[log]
LOGLEVEL = 10
LOGFILE = logfile.txt
LOGREBO = logReboot.txt
MAX_LOG_SIZE = 1048576
NUM_LOG_RETAIN = 30
[redis]
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_DB=10
[blink]
MAX_COUNTER_BLINK = 30
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[invert]
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[filter]
MAX_COUNTER_FILTER = 5
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
-71
View File
@@ -1,71 +0,0 @@
[comm]
port = COM23
[id]
idxMacchina = L005
#[web]
#URLBASE = http://192.168.111.104/MP/IO/IOB/input/
#URLALIVE = http://192.168.111.104/MP/IO/IOB
#URLENABLED = http://192.168.111.104/MP/IO/IOB/enabled/
#URLADV1 = ?valore=
#URLREBO = http://192.168.111.104/MP/IO/sendReboot.aspx?idxMacchina=
[web]
URLBASE = http://10.74.82.218/MP/IO/IOB/input/
URLALIVE = http://10.74.82.218/MP/IO/IOB
URLENABLED = http://10.74.82.218/MP/IO/IOB/enabled/
URLADV1 = ?valore=
URLREBO = http://10.74.82.218/MP/IO/sendReboot.aspx?idxMacchina=
[time]
SAMPLETIME = 0.05
TIMEOUTSHORT = 0.30
TIMEOUTLONG = 50
SENDURLTIME = 0.15
NMAXSEND = 5
WAIT_RECONN = 2
[log]
LOGLEVEL = 10
LOGFILE = logfile.txt
LOGREBO = logReboot.txt
MAX_LOG_SIZE = 1048576
NUM_LOG_RETAIN = 30
[redis]
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_DB=10
[blink]
MAX_COUNTER_BLINK = 30
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[invert]
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[filter]
MAX_COUNTER_FILTER = 5
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
-71
View File
@@ -1,71 +0,0 @@
[comm]
port = COM24
[id]
idxMacchina = L006
#[web]
#URLBASE = http://192.168.111.104/MP/IO/IOB/input/
#URLALIVE = http://192.168.111.104/MP/IO/IOB
#URLENABLED = http://192.168.111.104/MP/IO/IOB/enabled/
#URLADV1 = ?valore=
#URLREBO = http://192.168.111.104/MP/IO/sendReboot.aspx?idxMacchina=
[web]
URLBASE = http://10.74.82.218/MP/IO/IOB/input/
URLALIVE = http://10.74.82.218/MP/IO/IOB
URLENABLED = http://10.74.82.218/MP/IO/IOB/enabled/
URLADV1 = ?valore=
URLREBO = http://10.74.82.218/MP/IO/sendReboot.aspx?idxMacchina=
[time]
SAMPLETIME = 0.05
TIMEOUTSHORT = 0.30
TIMEOUTLONG = 50
SENDURLTIME = 0.15
NMAXSEND = 5
WAIT_RECONN = 2
[log]
LOGLEVEL = 10
LOGFILE = logfile.txt
LOGREBO = logReboot.txt
MAX_LOG_SIZE = 1048576
NUM_LOG_RETAIN = 30
[redis]
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_DB=10
[blink]
MAX_COUNTER_BLINK = 30
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[invert]
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[filter]
MAX_COUNTER_FILTER = 5
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
-71
View File
@@ -1,71 +0,0 @@
[comm]
port = COM25
[id]
idxMacchina = L007
#[web]
#URLBASE = http://192.168.111.104/MP/IO/IOB/input/
#URLALIVE = http://192.168.111.104/MP/IO/IOB
#URLENABLED = http://192.168.111.104/MP/IO/IOB/enabled/
#URLADV1 = ?valore=
#URLREBO = http://192.168.111.104/MP/IO/sendReboot.aspx?idxMacchina=
[web]
URLBASE = http://10.74.82.218/MP/IO/IOB/input/
URLALIVE = http://10.74.82.218/MP/IO/IOB
URLENABLED = http://10.74.82.218/MP/IO/IOB/enabled/
URLADV1 = ?valore=
URLREBO = http://10.74.82.218/MP/IO/sendReboot.aspx?idxMacchina=
[time]
SAMPLETIME = 0.05
TIMEOUTSHORT = 0.30
TIMEOUTLONG = 50
SENDURLTIME = 0.15
NMAXSEND = 5
WAIT_RECONN = 2
[log]
LOGLEVEL = 10
LOGFILE = logfile.txt
LOGREBO = logReboot.txt
MAX_LOG_SIZE = 1048576
NUM_LOG_RETAIN = 30
[redis]
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_DB=10
[blink]
MAX_COUNTER_BLINK = 30
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[invert]
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[filter]
MAX_COUNTER_FILTER = 5
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
-71
View File
@@ -1,71 +0,0 @@
[comm]
port = COM26
[id]
idxMacchina = L008
#[web]
#URLBASE = http://192.168.111.104/MP/IO/IOB/input/
#URLALIVE = http://192.168.111.104/MP/IO/IOB
#URLENABLED = http://192.168.111.104/MP/IO/IOB/enabled/
#URLADV1 = ?valore=
#URLREBO = http://192.168.111.104/MP/IO/sendReboot.aspx?idxMacchina=
[web]
URLBASE = http://10.74.82.218/MP/IO/IOB/input/
URLALIVE = http://10.74.82.218/MP/IO/IOB
URLENABLED = http://10.74.82.218/MP/IO/IOB/enabled/
URLADV1 = ?valore=
URLREBO = http://10.74.82.218/MP/IO/sendReboot.aspx?idxMacchina=
[time]
SAMPLETIME = 0.05
TIMEOUTSHORT = 0.30
TIMEOUTLONG = 50
SENDURLTIME = 0.15
NMAXSEND = 5
WAIT_RECONN = 2
[log]
LOGLEVEL = 10
LOGFILE = logfile.txt
LOGREBO = logReboot.txt
MAX_LOG_SIZE = 1048576
NUM_LOG_RETAIN = 30
[redis]
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_DB=10
[blink]
MAX_COUNTER_BLINK = 30
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[invert]
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[filter]
MAX_COUNTER_FILTER = 5
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
-71
View File
@@ -1,71 +0,0 @@
[comm]
port = COM28
[id]
idxMacchina = L012
#[web]
#URLBASE = http://192.168.111.104/MP/IO/IOB/input/
#URLALIVE = http://192.168.111.104/MP/IO/IOB
#URLENABLED = http://192.168.111.104/MP/IO/IOB/enabled/
#URLADV1 = ?valore=
#URLREBO = http://192.168.111.104/MP/IO/sendReboot.aspx?idxMacchina=
[web]
URLBASE = http://10.74.82.218/MP/IO/IOB/input/
URLALIVE = http://10.74.82.218/MP/IO/IOB
URLENABLED = http://10.74.82.218/MP/IO/IOB/enabled/
URLADV1 = ?valore=
URLREBO = http://10.74.82.218/MP/IO/sendReboot.aspx?idxMacchina=
[time]
SAMPLETIME = 0.05
TIMEOUTSHORT = 0.30
TIMEOUTLONG = 50
SENDURLTIME = 0.15
NMAXSEND = 5
WAIT_RECONN = 2
[log]
LOGLEVEL = 10
LOGFILE = logfile.txt
LOGREBO = logReboot.txt
MAX_LOG_SIZE = 1048576
NUM_LOG_RETAIN = 30
[redis]
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_DB=10
[blink]
MAX_COUNTER_BLINK = 30
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[invert]
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0
[filter]
MAX_COUNTER_FILTER = 5
bit0 = 0
bit1 = 0
bit2 = 0
bit3 = 0
bit4 = 0
bit5 = 0
bit6 = 0
bit7 = 0