Fix weckzeit_datei path in A72_alarm_getter.sh
Corrected the path for the 'weckzeit_datei' variable in A72_alarm_getter.sh script. The original path was pointing to '/root/iobroker_scripts/generel/.weckzeiten.txt' and has been updated to the correct path '/root/iobroker_scripts/general/.weckzeiten.txt'. This ensures that the script can accurately locate and utilize the 'weckzeit_datei' file, preventing potential issues related to the incorrect file path.
This commit is contained in:
parent
d68beee2b8
commit
4bb7048638
@ -69,7 +69,7 @@ check_ip() {
|
|||||||
check_ip || exit 1 # Beende das Skript, wenn das Ziel nicht erreichbar ist
|
check_ip || exit 1 # Beende das Skript, wenn das Ziel nicht erreichbar ist
|
||||||
|
|
||||||
# Datei zum Speichern der geplanten Weckzeiten
|
# Datei zum Speichern der geplanten Weckzeiten
|
||||||
weckzeit_datei="/root/iobroker_scripts/generel/.weckzeiten.txt"
|
weckzeit_datei="/root/iobroker_scripts/general/.weckzeiten.txt"
|
||||||
|
|
||||||
# Ziel ist erreichbar, Alarmzeit über SSH abrufen
|
# Ziel ist erreichbar, Alarmzeit über SSH abrufen
|
||||||
alarmTime=$(ssh -i /root/.ssh/A72 root@$A72_ip dumpsys alarm | grep -A 6 ":com.urbandroid.sleep.alarmclock.ALARM_ALERT" | grep "type=RTC_WAKEUP origWhen=" | cut -d= -f3 | cut -c1-16 | uniq)
|
alarmTime=$(ssh -i /root/.ssh/A72 root@$A72_ip dumpsys alarm | grep -A 6 ":com.urbandroid.sleep.alarmclock.ALARM_ALERT" | grep "type=RTC_WAKEUP origWhen=" | cut -d= -f3 | cut -c1-16 | uniq)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user