Update src folder

This commit is contained in:
Andros Fenollosa 2021-08-31 08:36:14 +02:00
parent 12bea24783
commit 2cc7c87cc5
3 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ poetry install
# Run
```bash
poetry run python3 alert_battery_to_maintain_health/__init__.py
poetry run python3 src
```
# Cron
@ -39,5 +39,5 @@ crontab -e
Add the following:
```bash
* * * * * cd [absolute path folder] && poetry run python3 alert_battery_to_maintain_health/__init__.py
* * * * * 'cd [absolute path folder] && poetry run python3 src'
```

View File

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@ -16,7 +16,7 @@ PATH_FILE_NAME_TEMP = os.path.join(gettempdir(), FILE_NAME_TEMP)
NOTIFICATION = Notify(
default_notification_title="Alert battery",
default_application_name="Alert battery",
default_notification_icon=os.path.abspath("alert_battery_to_maintain_health/icons/battery-status.png"),
default_notification_icon=os.path.abspath("icons/battery-status.png"),
)
@ -67,4 +67,4 @@ if __name__ == '__main__':
# Unlock to warned
elif LIMIT_BELOW_BATTERY < get_battery_percent() < LIMIT_ABOVE_BATTERY:
os.remove(PATH_FILE_NAME_TEMP)
os.remove(PATH_FILE_NAME_TEMP)