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
This commit is contained in:
Ratatoskr 2023-12-17 21:49:16 +01:00
parent 1dc5643f7b
commit b114ce5fdc
Signed by: Ratatoskr
GPG Key ID: 28B77439A6D78F4E

View File

@ -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