10 Commits

Author SHA1 Message Date
2d15fe099c
Anpassungen am Wecker-Script:
- Geänderte Mac-Adresse für Lisas iPhone in check_ip-Funktion.
- Verbesserte Ausgabe in der check_notification-Funktion.
- Angepasste Schritte und Dauer für die Helligkeits- und Farbtemperaturanpassung.
- Start des Alarm-Scripts auf dem Handy mit protokollierter Ausgabe.
2023-12-18 12:56:31 +01:00
b95e0627dc
Update wecker.sh script
- Adjusted the 'check_notification' function to execute the SSH command within a timeout.
- Modified the logging of wecker.sh start and end times for better monitoring.

Changes:
- Modified line 41 in wecker.sh to execute the SSH command within a timeout for 'check_notification' function
  from:
  output=                [0] "Beenden" -> PendingIntent{cb58c43: PendingIntentRecord{9bf5dfe com.urbandroid.sleep startActivity (allowlist: 27215bc:+30s0ms/0/NOTIFICATION_SERVICE/NotificationManagerService)}}
  to:
  output=Timeout

- Added date and echo statements to log the start and end times in 'check_notification' function.

- Moved the 'ssh root@  '/data/scripts/morning-alarm.sh'' line to the end of the script to trigger the morning alarm.

Author: Michael Haider
Date: 17.12.2023
2023-12-17 21:53:26 +01:00
2ce472fa08
Funktion: prüfen ob Wecker am Handy aus, gefixt 2023-11-28 08:32:25 +01:00
e5a4a74da5
Enable light in check_ip function 2023-11-25 11:15:26 +01:00
96e857a4cf
Commit: Fix check_notification condition and add check_external_light_status
1. Added a new function `check_external_light_status` to check if the light is turned off externally.

2. Modified the condition in the `check_notification` function to correctly check if the notification contains "[1]" and the specified strings.

3. Corrected the assignment statement inside the `while` loop. Changed `first_brightness_cmason.nvimhange=false` to `first_brightness_change=false`.
2023-11-25 09:58:53 +01:00
fcc070e03d
Gefixt: schritte wurden nicht reichtig berechnet 2023-11-25 07:15:55 +01:00
16bf50bbb3
Check, ob Wecker am handy beendet wurde, wird nun erst ab dem Farbwechsel durchgeführt. 2023-11-25 06:53:50 +01:00
8a9dea2d71
Funktion zum licht ausschalten, wenn wecker am handy beendet 2023-11-22 12:27:46 +01:00
94dee024a4
wecker.sh checkt ip von a72 2023-11-19 18:45:14 +01:00
c34f28302e
initial commit 2023-11-16 09:17:08 +01:00