2019-06-21 Fred Gleason <fredg@paravelsystems.com>

* Added a 'SyslogFacility=' directive to the '[Identity']
	section of rd.conf(5).
	* Added a 'syslog.openlog()' call to the constructor of the
	'PyPAD.Receiver' class.
	* Removed the 'syslog.openlog()' call from the 'pypad_icecast2.py'
	script.
	* Removed the 'syslog.openlog()' call from the 'pypad_live365.py'
	script.
	* Removed the 'syslog.openlog()' call from the 'pypad_serial.py'
	script.
	* Removed the 'syslog.openlog()' call from the 'pypad_shoutcast1.py'
	script.
	* Removed the 'syslog.openlog()' call from the 'pypad_spinitron.py'
	script.
	* Removed the 'syslog.openlog()' call from the 'pypad_tunein.py'
	script.
	* Removed the 'syslog.openlog()' call from the 'pypad_urlwrite.py'
	script.
	* Removed the 'syslog.openlog()' call from the 'pypad_walltime.py'
	script.
	* Removed the 'syslog.openlog()' call from the 'pypad_xcmd.py'
	script.
	* Removed the 'syslog.openlog()' call from the 'pypad_xmpad.py'
	script.
This commit is contained in:
Fred Gleason
2019-06-21 18:57:33 -04:00
parent f30d684644
commit 52dc14a3b3
20 changed files with 102 additions and 73 deletions

View File

@@ -4,7 +4,7 @@
#
# Send PAD updates to Icecast2 mountpoint
#
# (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
# (C) Copyright 2018-2019 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
@@ -20,7 +20,7 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
import os
import os.path
import sys
import socket
import requests
@@ -70,13 +70,7 @@ def ProcessPad(update):
#
# Program Name
#
pypad_name=os.path.basename(__file__)
#
# Open Syslog
#
syslog.openlog(pypad_name,logoption=syslog.LOG_PID,facility=syslog.LOG_DAEMON)
pypad_name=sys.argv[0].split('/')[-1]
#
# Create Send Socket

View File

@@ -64,8 +64,6 @@ def ProcessPad(update):
#
# 'Main' function
#
syslog.openlog(sys.argv[0].split('/')[-1])
rcvr=pypad.Receiver()
try:
rcvr.setConfigFile(sys.argv[3])

View File

@@ -57,8 +57,6 @@ def ProcessPad(update):
#
# 'Main' function
#
syslog.openlog(sys.argv[0].split('/')[-1])
rcvr=pypad.Receiver()
try:
rcvr.setConfigFile(sys.argv[3])

View File

@@ -4,7 +4,7 @@
#
# Write PAD updates to a Shoutcast 1 instance
#
# (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
# (C) Copyright 2018-2019 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
@@ -71,8 +71,6 @@ def ProcessPad(update):
#
# 'Main' function
#
syslog.openlog(sys.argv[0].split('/')[-1])
rcvr=pypad.Receiver()
try:
rcvr.setConfigFile(sys.argv[3])

View File

@@ -4,7 +4,7 @@
#
# Write PAD updates to the Spinitron Playlist Service
#
# (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
# (C) Copyright 2018-2019 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
@@ -116,8 +116,6 @@ def ProcessPad(update):
#
# 'Main' function
#
syslog.openlog(sys.argv[0].split('/')[-1])
rcvr=pypad.Receiver()
try:
rcvr.setConfigFile(sys.argv[3])

View File

@@ -4,7 +4,7 @@
#
# Send PAD updates to TuneIn
#
# (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
# (C) Copyright 2018-2019 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
@@ -76,13 +76,7 @@ def ProcessPad(update):
#
# Program Name
#
pypad_name=os.path.basename(__file__)
#
# Open Syslog
#
syslog.openlog(pypad_name,logoption=syslog.LOG_PID,facility=syslog.LOG_DAEMON)
pypad_name=sys.argv[0].split('/')[-1]
#
# Create Send Socket

View File

@@ -4,7 +4,7 @@
#
# Write PAD updates to arbitrary URLs
#
# (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
# (C) Copyright 2018-2019 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
@@ -57,8 +57,6 @@ def ProcessPad(update):
#
# 'Main' function
#
syslog.openlog(sys.argv[0].split('/')[-1])
rcvr=pypad.Receiver()
try:
rcvr.setConfigFile(sys.argv[3])

View File

@@ -4,7 +4,7 @@
#
# Write PAD updates a WallTime text widget.
#
# (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
# (C) Copyright 2018-2019 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
@@ -57,8 +57,6 @@ def ProcessPad(update):
#
# 'Main' function
#
syslog.openlog(sys.argv[0].split('/')[-1])
rcvr=pypad.Receiver()
try:
rcvr.setConfigFile(sys.argv[3])

View File

@@ -191,12 +191,7 @@ def ProcessPad(update):
#
# Program Name
#
pypad_name=os.path.basename(__file__)
#
# Open Syslog
#
syslog.openlog(pypad_name,logoption=syslog.LOG_PID,facility=syslog.LOG_DAEMON)
pypad_name=sys.argv[0].split('/')[-1]
rcvr=pypad.Receiver()
try:

View File

@@ -4,7 +4,7 @@
#
# Write PAD updates to a Sirius/XM channel
#
# (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
# (C) Copyright 2018-2019 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
@@ -171,8 +171,6 @@ def ProcessPad(update):
#
# 'Main' function
#
syslog.openlog(sys.argv[0].split('/')[-1])
rcvr=pypad.Receiver()
try:
rcvr.setConfigFile(sys.argv[3])