mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-30 07:32:32 +02:00
2020-02-21 Fred Gleason <fredg@paravelsystems.com>
* Added a syslog message for each CIC update in the 'pypad_xds.py' script.
This commit is contained in:
parent
2e9b1e7d74
commit
b944fba8cf
@ -19250,3 +19250,6 @@
|
||||
whitespace to be generated in the 'EXT_DATA', 'EXT_EVENT',
|
||||
'EXT_ANNC_TYPE' and 'EXT_CART_NAME' log fields when importing
|
||||
from a CounterPoint format log.
|
||||
2020-02-21 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added a syslog message for each CIC update in the 'pypad_xds.py'
|
||||
script.
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
# Send CICs via UDP or serial
|
||||
#
|
||||
# (C) Copyright 2018-2019 Fred Gleason <fredg@paravelsystems.com>
|
||||
# (C) Copyright 2018-2020 Fred Gleason <fredg@paravelsystems.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
@ -24,6 +24,7 @@ import sys
|
||||
import socket
|
||||
import configparser
|
||||
import serial
|
||||
import syslog
|
||||
import pypad
|
||||
|
||||
def eprint(*args,**kwargs):
|
||||
@ -65,6 +66,7 @@ def ProcessPad(update):
|
||||
while(update.config().has_section(section)):
|
||||
if update.shouldBeProcessed(section) and update.hasPadType(pypad.TYPE_NOW) and update.hasService():
|
||||
packet='0:'+update.serviceProgramCode()+':'+update.config().get(section,'IsciPrefix')+FilterField(update.padField(pypad.TYPE_NOW,pypad.FIELD_EXTERNAL_EVENT_ID))+':*'
|
||||
update.syslog(syslog.LOG_INFO,'sending CIC update "'+packet+'"')
|
||||
try:
|
||||
#
|
||||
# Use serial output
|
||||
|
Loading…
x
Reference in New Issue
Block a user