nightscout / nightscout/AndroidAPS

[Feature request] Add "Restart AAPS" as an automation action

Open
#4,358 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Kotlin
Stars
1.2k
Forks
6.4k
Avg merge
2d 7h
Merged PRs (30d)
19

Description

Medtronic Paradigm 715 VER 2.3A 1.1
AAPS 3.3.2.1
oRangeLink Pro
Android 16

From time to time AAPS gets stuck in timeout loops (Connection timed out or Pump unavailable) that only get fixed by fully restarting AAPS (force stop -> open).
While it's fine during the day it's very annoying during the night. While it can be detected using the Last connection to pump condition the only thing you can do is set an alarm, wake up in the middle of the night, restart AAPS and go back to sleep.

I propose to add a full app restart action as a workaround for issues like this and future bugs that require restarts.

I wanted to make a PR about a year ago but with my level of experience with the android/kotlin stack I got stuck on the mock test (not even sure how you would write a test for a restart) and eventually gave up.
If maintainers can't be bothered I can dig up my failed attempt and submit it as a PR (without the test)

Thank you.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no implementation files or tests. Start by locating the existing automation actions and the mock test where restart behavior was previously attempted; confirm how an Android app restart can be represented in tests. Done means a new “Restart AAPS” automation action is available and its behavior is covered as far as the test environment allows.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.