From b114ce5fdc961a9f45a98f7b21c71f04d1594e1b Mon Sep 17 00:00:00 2001 From: Ratatoskr Date: Sun, 17 Dec 2023 21:49:16 +0100 Subject: [PATCH] Update A72_alarm_getter.sh script Adjusted the wecker.sh invocation in A72_alarm_getter.sh to redirect output to /root/wecker.log for better logging. Now, when scheduling a new alarm, the script will log the wecker.sh execution details to the log file. Changes: - Modified line 87 in A72_alarm_getter.sh to redirect wecker.sh output to /root/wecker.log from: echo "/root/iobroker_scripts/schlafzimmer/wecker.sh" | at "" to: echo "/root/iobroker_scripts/schlafzimmer/wecker.sh > /root/wecker.log" | at "" Author: Michael Haider Date: 17.12.2023 --- A72_alarm_getter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/A72_alarm_getter.sh b/A72_alarm_getter.sh index 092b5f5..0329ca2 100755 --- a/A72_alarm_getter.sh +++ b/A72_alarm_getter.sh @@ -86,7 +86,7 @@ if is_target_reachable; then else echo "Weckzeit planen und in Datei speichern: $lightsOn" echo "$lightsOn" > "$weckzeit_datei" - echo "/root/iobroker_scripts/schlafzimmer/wecker.sh" | at "$lightsOn" + echo "/root/iobroker_scripts/schlafzimmer/wecker.sh > /root/wecker.log" | at "$lightsOn" curl -u "Michaelis:u5ptufUFuDL6q4yEcSN3iqas5gtXNkN77Lx3cy3oX8UoSgFWdifYy9FVopv2Zwtu" -H "Icon:https://static.vecteezy.com/system/resources/previews/018/931/118/original/alarm-clock-icon-png.png" -H "Priority:High" -d "Alarm gestellt um: $neues_format" https://ntfy.michaelis.digital/$HOSTNAME fi else