34 Commits

Author SHA1 Message Date
Patrick Linstruth
aa7080911b Fix syslog process name 2018-12-19 15:39:27 -08:00
Patrick Linstruth
306b0c3d87 Update to new PyPAD API 2018-12-19 09:15:06 -08:00
Patrick Linstruth
7259c14b39 Removed unnecessary files 2018-12-17 12:35:33 -08:00
Patrick Linstruth
3c792f4a58 Merge remote-tracking branch 'upstream/rlm2' into rlm2
Conflicts:
	ChangeLog
	apis/PyPAD/scripts/Makefile.am
2018-12-17 12:33:28 -08:00
Fred Gleason
bc42ff435c 2018-12-17 Fred Gleason <fredg@paravelsystems.com>
* Renamed the RD_RLM2_CLIENT_TCP_PORT define to RD_PAD_CLIENT_TCP_PORT.
	* Renamed the  RD_RLM_SOURCE_UNIX_ADDRESS define to
	 RD_PAD_SOURCE_UNIX_ADDRESS.
	* Added a RD_PYPAD_SCRIPT_DIR define.
	* Added an 'RDNotification::PypadType' value to the
	'RDNotification::Type' enumeration.
	* Added 'PypadOwner=' and 'PypadGroup=' directives to the
	'[Identity]' section of rd.conf(5).
	* Added an rdpadengined(8) service.
	* Added a 'PYPAD_INSTANCES.IS_RUNNING' field to the database.
	* Added a 'PYPAD_INSTANCES.EXIT_CODE' field to the database.
	* Added a 'PYPAD_INSTANCES.ERROR_TEXT' field to the database.
	* Incremented the database version to 304.
2018-12-17 14:16:30 -05:00
Fred Gleason
7a04111228 2018-12-13 Fred Gleason <fredg@paravelsystems.com>
* Added support in 'PyPAD.Receiver::setConfigFile()' to load
	configuration information from a Rivendell database.
2018-12-14 17:37:06 -05:00
Fred Gleason
dfa8ed93b2 2018-12-13 Fred Gleason <fredg@paravelsystems.com>
* Added a 'PYPAD_INSTANCES' table to the database.
	* Incremented the database version to 303.
	* Added a 'PyPAD Instances' button to the 'Edit Station' dialog
	in rdadmin(1).
	* Added a 'ListPyPAD Instances' dialog in rdadmin(1).
	* Added an 'Edit PyPAD' Instance' dialog in rdadmin(1).
2018-12-14 16:17:42 -05:00
Patrick Linstruth
f3e7906a9f Add pypad_icecast2 to install 2018-12-14 13:00:51 -08:00
Patrick Linstruth
887bfd5590 Add pypad_icecast2.py 2018-12-14 12:58:54 -08:00
Patrick Linstruth
8316ee3b32 Added pypad_tunein.py to install 2018-12-13 22:18:39 -08:00
Patrick Linstruth
d2dd8fb13b Keeping up with the PyPAD API evolution 2018-12-13 22:16:11 -08:00
Patrick Linstruth
998c58b055 Merge remote-tracking branch 'upstream/rlm2' into rlm2
Conflicts:
	ChangeLog
2018-12-13 22:14:30 -08:00
Fred Gleason
d781b694fb 2018-12-13 Fred Gleason <fredg@paravelsystems.com>
* Added a 'PyPAD.Receiver::setConfigFile()' method.
	* Added a 'PyPAD.Update::shouldBeProcessed()' method.
	* Updated the 'pypad_filewrite.py' script to use the
	'PyPAD.Update::shouldBeProcessed()' method.
	* Updated the 'pypad_udp.py' script to use the
	'PyPAD.Update::shouldBeProcessed()' method.
2018-12-13 15:29:37 -05:00
Fred Gleason
b2007ee84a 2018-12-13 Fred Gleason <fredg@paravelsystems.com>
* Added a 'make install' rule in 'apis/PyPAD/examples/' to install
	PyPAD scripts in '${libdir}/rivendell/PyPAD/'.
	* Fixed a typo in the pseudo-bangpath line in the example PyPAD
	scripts.
2018-12-13 11:36:59 -05:00
Patrick Linstruth
6912ca1ebe Fixed error in eprint and iprint 2018-12-12 15:32:27 -08:00
Patrick Linstruth
f695dce512 Fix commit and add %PYTHON_BANGPATH% 2018-12-12 15:24:05 -08:00
Patrick Linstruth
15976fbe6f Updated to use Python 3 2018-12-12 15:20:05 -08:00
Patrick Linstruth
5873eaf24b Merge remote-tracking branch 'upstream/rlm2' into rlm2
Conflicts:
	ChangeLog
2018-12-12 15:18:40 -08:00
Fred Gleason
0302445c0b 2018-12-11 Fred Gleason <fredg@paravelsystems.com>
* Renamed 'apis/PyPAD/examples/pypad_test.py' to
	'apisPyPAD/tests/pad_test.py'.
	* Added a 'hostName' field to the JSON PAD 'padUpdate' object.
	* Added a 'PyPAD.Update::hostName()' method.
	* Added a 'shortHostName' field to the JSON PAD 'padUpdate' object.
	* Added a 'PyPAD.Update::shortHostName()' method.
	* Added a 'PyPAD.Update::resolveFilepath()' method.
	* Added 'apis/PyPAD/tests/filepath_test.py.
	* Added 'api/PyPAD/examples/pypad_filewrite.py'.
2018-12-12 13:20:24 -05:00
Patrick Linstruth
306d5354be Remove Daemonize option 2018-12-11 17:12:49 -08:00
Fred Gleason
e6b46cca76 2018-12-11 Fred Gleason <fredg@paravelsystems.com>
* Renamed 'apis/PyPAD/examples/pypad_test.py' to
	'apisPyPAD/tests/pad_test.py'.
	* Added a 'hostName' field to the JSON PAD 'padUpdate' object.
	* Added a 'PyPAD.Update::hostName()' method.
	* Added a 'shortHostName' field to the JSON PAD 'padUpdate' object.
	* Added a 'PyPAD.Update::shortHostName()' method.
	* Added a 'PyPAD.Update::resolveFilepath()' method.
	* Added 'apis/PyPAD/tests/filepath_test.py.
	* Added 'api/PyPAD/examples/pypad_filewrite.py'.
2018-12-11 16:50:28 -05:00
Patrick Linstruth
be7b02b126 Initial commit 2018-12-10 19:15:06 -08:00
Fred Gleason
e2a313a07d 2018-12-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the 'pypad_udp.py' script that threw an exception
	when processing multi-byte UTF-8 characters.
2018-12-10 14:09:33 -05:00
Fred Gleason
66d0d465c1 2018-12-10 Fred Gleason <fredg@paravelsystems.com>
* Added support for the 'ProcessNullUpdates=' directive in the
	'pypad_udp.py' script.
	* Added support for the log selection directives in the
	'pypad_udp.py' script.
2018-12-10 13:30:49 -05:00
Fred Gleason
b693555c87 2018-12-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'PyPAD.Update::resolvePadFields()' that caused
	incorrect rendering of 'dddd' placeholders when processing '%d(<dt>)'
	wildcards.
2018-12-10 12:44:10 -05:00
Fred Gleason
387cbad1b0 2018-12-10 Fred Gleason <fredg@paravelsystems.com>
* Changed the name of the JSON PAD field 'logMachine' to 'machine'.
	* Changed the name of the 'PyPAD.Update::logMachine()' method to
	'PyPAD.Update::machine()'.
	* Changed the name of the JSON PAD field 'logMode' to 'mode'.
	* Added a 'PyPAD.Update::mode()' method.
	* Added a 'cutNumber' field to the JSON PAD 'now' and 'next' objects.
	* Added a 'PyPAD.FIELD_CUT_NUMBER' define.
	* Added 'api/PyPAD/examples/pypad_test.py'.
2018-12-10 11:07:07 -05:00
Fred Gleason
d3e35a8cab 2018-12-09 Fred Gleason <fredg@paravelsystems.com>
* Renamed the 'PyPAD.Update::padFields()' method to
	'PyPAD.Update::resolvePadFields()'.
	* Added a 'PyPAD.Update::padField()' method.
	* Added a 'PyPAD.Update::escape()' method.
2018-12-09 19:33:21 -05:00
Fred Gleason
2f4a4ada06 2018-12-08 Fred Gleason <fredg@paravelsystems.com>
* Renamed the 'PyPAD.Update::dateTime()' method to
	'PyPAD.Update::dateTimeString()'.
	* Changed the format of the 'dateTime' field in the PAD JSON structure
	from RFC822 to ISO 8601.
	* Added a 'startDateTime' field to the 'now' and 'next' objects in
	the PAD JSON structure.
	* Added a PAD Type enumeration for use in 'PyPAD.Update'.
	* Added 'PyPAD.Update::hasPadType()' and 'PyPAD.Update.startDateTime()'
	methods.
	* Removed 'PyPAD.Update::hasNowPad()' and 'PyPAD.Update:hasNextPad()'
	methods.
	* Added support for '%d(<dt>)' and '%D(<dt>)' wildcards in
	'PyPAD.Update::padFields()'.
2018-12-08 21:55:48 -05:00
Fred Gleason
265146f01e 2018-12-07 Fred Gleason <fredg@paravelsystems.com>
* Changed the Python namespace of the PyPAD classes from
	'rivendell.PyPAD' to 'PyPAD'.
	* Renamed the 'PyPAD.PyPADReceiver' class to 'PyPAD.Receiver'.
	* Renamed the 'PyPAD.PyPADUpdate' class to 'PyPAD.Update'.
	* Added a 'port' argument to the 'PyPAD.Receiver::start()' method.
	* Added an 'escaping' argument to the 'PyPAD.Update::padFields()'
	method.
	* Added support for the 'Encoding=' directive to the 'pypad_udp.py'
	script.
2018-12-07 13:52:57 -05:00
Fred Gleason
3a65043bd6 2018-12-06 Fred Gleason <fredg@paravelsystems.com>
* Added a 'pypad_udp.py' PyPAD script.
2018-12-06 18:40:56 -05:00
Fred Gleason
03141e6421 2018-12-06 Fred Gleason <fredg@paravelsystems.com>
* Added support for '\b', '\f', '\n' '\r' and '\t' control escapes
	in the 'PyPADUpdate::padFields()' method.
2018-12-06 17:49:00 -05:00
Fred Gleason
340f834839 2018-12-06 Fred Gleason <fredg@paravelsystems.com>
* Removed support for the 'priv' argument in callbacks in PyPAD
	scripts.
2018-12-06 15:54:19 -05:00
Fred Gleason
c80f67cfd0 2018-12-06 Fred Gleason <fredg@paravelsystems.com>
* Added comments to the 'now_and_next.py' PyPAD script.
2018-12-06 13:51:43 -05:00
Fred Gleason
1d8e303101 2018-12-05 Fred Gleason <fredg@paravelsystems.com>
* Added a set of Python classes for processing PAD updates.
2018-12-05 20:15:10 -05:00