68 Commits

Author SHA1 Message Date
b114ce5fdc
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
2023-12-17 21:49:16 +01:00
1dc5643f7b
Added script for controlling alarm on Android device
This script turns off Bluetooth, increases the media volume to 100%, and continuously checks if the alarm has been dismissed on the Android device. Additionally, it plays the morning alarm sound in an infinite loop until the alarm is dismissed.

- Script Name: morning-alarm.sh
- Features:
  - Turn off Bluetooth
  - Set media volume to 100%
  - Play the morning alarm sound in an infinite loop
  - Continuously check for alarm dismissal

Author: Michael Haider
Date: 17.12.2023
2023-12-17 21:46:44 +01:00
b881b79bf6
Änderungen am A72_alarm_getter.sh-Skript: Neues Format für Alarmzeit 2023-12-11 16:46:46 +01:00
a0dbcefb1c
Refactor A72_alarm_getter.sh script for improved readability and reliability
- Removed unnecessary variable interpolation in the 'echo' statement.
- Changed the path for 'atq' and 'atrm' commands to use the full path.
- Updated the 'ping' command to use the full path for better compatibility.
- Added comments and improved formatting for better script understanding.
2023-12-07 13:17:18 +01:00
63720dafea
Add execution timestamp and echo in A72_alarm_getter.sh
In this commit, an echo statement is added to display the execution timestamp
in the A72_alarm_getter.sh script. The timestamp is printed with the command
'echo 'Ausgeführt um: ''.

Additionally, the script now contains a function called delete_expired_at_jobs
to check and delete expired 'at' jobs. The current time is obtained using the
'date' command and stored in the variable current_time.
2023-12-05 18:00:34 +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
c872f1d93d
Funktion zum erfassen der Weckzeit gefixt 2023-11-25 06:49:05 +01:00
8a9dea2d71
Funktion zum licht ausschalten, wenn wecker am handy beendet 2023-11-22 12:27:46 +01:00
5d21fb28c1
Fehlerbehebung bei ping-test 2023-11-22 12:26:43 +01:00
7d9c3574a4
Mac-Adresse gekürzt für ip-Abfrage 2023-11-21 09:18:11 +01:00
1d27119800
checkt ip von a72 2023-11-21 08:49:34 +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
faec77d6eb Initial commit 2023-11-16 07:56:53 +00:00