mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user