Hallo,
ich habe mich mal an die Geschichte mit der Zeitlich gesteuerten Aussendung gewagt und habe dazu ein paar Fragen.
MeineTcl in /usr/share/svxlink/events.d/local hat folgenden Inhalt
# /usr/share/svxlink/events.d/local/mein_rundspruch.tclnamespace eval Logic { Logic::addTimerTickSubscriber relaisansage; proc relaisansage {} { puts "Ausgabe Rundspruch?"; source "/home/svxlink/rundspruch.tcl"; }}
und die Tcl in der /home/svxlink/ hat folgenden Inhalt
# /home/svxlink/rundspruch.tcl
# aktuelle Uhrzeit ermitteln
set now [clock seconds];
set hour [clock format $now -format "%H"];
set minute [clock format $now -format "%M"];
set day [clock format $now -format "%a"];
# eigene Ausgabezeiten definieren
set ansage_Minute 57;
set ansage_Stunde 17;
set ansage_Tag Sunday;
puts "Es ist $day $hour:$minute, Ausgabe am $ansage_Tag $ansage_Stunde:$ansage_Minute";
# prüfen ob Ausgabezeit erreicht ist
if {$day == $ansage_Tag && $hour == $ansage_Stunde && $minute == $ansage_Minute} {
puts "Ausgabe Rundspruch";
playMsg "Core" "berlin-brandenburg_16k";
}
set now [clock seconds];
set hour [clock format $now -format "%H"];
set minute [clock format $now -format "%M"];
set day [clock format $now -format "%a"];
# eigene Ausgabezeiten definieren
set ansage_Minute2 57;
set ansage_Stunde2 09;
set ansage_Tag2 Saturday;
puts "Es ist $day $hour:$minute:$now, Ausgabe am $ansage_Tag2 $ansage_Stunde2:$ansage_Minute2";
# prüfen ob Ausgabezeit erreicht ist
if {$day == $ansage_Tag2 && $hour == $ansage_Stunde2 && $minute == $ansage_Minute2} {
puts "Ausgabe Rundspruch";
playMsg "Core" "berlin-brandenburg_16k";
}
Display More
Bei dieser Variante wird die wave-datei aber nicht gesendet. Lasse ich den Tag weg funktioniert es Tadellos.
In der Ausgabe meine ich das er die Daten akzeptiert hat.
------------------------------------------------------------------------------------------------------------------
SvxLink v1.4.99.23 (Sep 5 2015) Copyright (C) 2003-2015 Tobias Blomberg / SM0SVX
SvxLink comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it in accordance with the terms and conditions in the
GNU GPL (General Public License) version 2 or later.
Using configuration file: /etc/svxlink/svxlink-normal.conf
--- Using sample rate 48000Hz
Starting logic: RepeaterLogic
Loading RX: Rx1
Rx1: EvDev Squelch: /dev/input/event0(C-Media Electronics Inc. USB PnP Sound Device)
Loading TX: Tx1
--- Hidraw sound chip is CM119
Loading module "ModuleHelp" into logic "RepeaterLogic"
Module Help v1.0.0 starting...
Loading module "ModuleParrot" into logic "RepeaterLogic"
Module Parrot v1.1.0.99.0 starting...
Loading module "ModuleEchoLink" into logic "RepeaterLogic"
Module EchoLink v1.3.1.99.1 starting...
Loading module "ModuleTclVoiceMail" into logic "RepeaterLogic"
Module Tcl v1.0.1 starting...
Loading module "ModuleMetarInfo" into logic "RepeaterLogic"
Module MetarInfo v1.0.0.99.2 starting...
Loading module "ModuleWeatherInfo" into logic "RepeaterLogic"
Module Tcl v1.0.1 starting...
Loading module "ModulePropagationMonitor" into logic "RepeaterLogic"
Module Tcl v1.0.1 starting...
RepeaterLogic: Event handler script successfully loaded.
EchoLink directory status changed to ON
--- EchoLink directory server message: ---
EchoLink Server v2.5.9997
ECHOEC2-3: Herndon, VA USA
Ausgabe Rundspruch?
Es ist Sun 13:23, Ausgabe am Sunday 09:57
Es ist Sun 13:23, Ausgabe am Saturday 17:57
-----------------------------------------------------------------------------------------------------------------
Hat irgend jemand eine Idee woran es liegen könnte?
73´Jan
DO5JWA