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:
parent
1dc5643f7b
commit
b114ce5fdc
@ -86,7 +86,7 @@ if is_target_reachable; then
|
|||||||
else
|
else
|
||||||
echo "Weckzeit planen und in Datei speichern: $lightsOn"
|
echo "Weckzeit planen und in Datei speichern: $lightsOn"
|
||||||
echo "$lightsOn" > "$weckzeit_datei"
|
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
|
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
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user