From 3b66a1d9525aa08a81cd2e5046c781dd431bd83d Mon Sep 17 00:00:00 2001 From: Schrolli Date: Thu, 2 Jul 2015 13:00:38 +0200 Subject: [PATCH] edit Interface.txt --- plugins/interface.txt | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/plugins/interface.txt b/plugins/interface.txt index e639604..c1e9549 100644 --- a/plugins/interface.txt +++ b/plugins/interface.txt @@ -82,6 +82,31 @@ Global Functions for plugins: ----------------------------- from includes import helper #Global helper functions -#for format see https://docs.python.org/2/library/time.html#time.strftime -#without format string the function returns with: %d.%m.%Y %H:%M:%S + +# for format see https://docs.python.org/2/library/time.html#time.strftime +# without format string the function returns with: %d.%m.%Y %H:%M:%S +# helper.curtime("FORMAT") + + +# replace all the standard wildcards in the given text +# the function needs the data[] var +# %TIME% = Time (by script) +# %DATE% = Date (by script) +# +# %FMS% = FMS Code +# %STATUS% = FMS Status +# %DIR% = Direction of the telegram (0/1) +# %DIRT% = Direction of the telegram (Text-String) +# %TSI% = Tactical Short Information (I-IV) +# +# %ZVEI% = ZVEI 5-tone Code +# +# %RIC% = Pocsag RIC +# %FUNC% = Pocsac function/Subric (1-4) +# %FUNCCHAR% = Pocsac function/Subric als character (a-d) +# %MSG% = Message of the Pocsag telegram +# %BITRATE% = Bitrate of the Pocsag telegram +# %DESCR% = Description from csv-file +# +helper.replaceWildcards("TEXT",data[])