forked from AdrianLxM/Esel
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from BernhardRo/NotificationListener
including NotificationListener
- Loading branch information
Showing
67 changed files
with
1,384 additions
and
336 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,34 @@ | ||
# Esel | ||
There are two different methods how to access the readings from Eversense: | ||
* Companion mode, which reads the data from the Eversense notifications (works with the standard Eversense App) | ||
* Patched mode, which requires a patched version of the Eversense App (works completely offline, including backfilling) | ||
|
||
First of all, you need to install ESEL: | ||
1. Get the ESEL apk e.g. from https://github.com/BernhardRo/Esel/tree/master/apk | ||
2. Install the apk on your phone | ||
* You need to enable installation of Apps from unknown sources | ||
3. Configuration: | ||
* Allow ESEL to run in the background (it will ask for it) | ||
* Allow ESEL access to the Android Notifications (it will ask for it) | ||
* Upload to Nightscout: Activate "Send to NightScout" in the preferences. It needs a configured AndroidAPS with internal NSClient or NSClient itself installed on the same phone | ||
* Inter-App-Broadcasts: Activate "Send to AAPS and xDrip". In xDrip and/or AndroidAPS activate the input method "640g/Eversense". | ||
* "Smooth Data" applies a smoothing algorithm to the raw values and provides these smoothed values instead of the raw readings. Smoothing is per default disabled. | ||
|
||
## Companion Mode | ||
1. Install/use the official Eversense App from the Google Play Store | ||
* Optional, but required for backfilling: Login to your Eversense account with your login data | ||
* In Sync, enable Auto synchronization | ||
3. Configuration of ESEL: | ||
* Disable the setting "Get data from patched Eversense App" | ||
* For backfilling: Enable "Fill missing data from eversensedms.com" | ||
* Provide as Email address and password your Eversense login data | ||
|
||
## Patched Eversense App | ||
1. Uninstall the Eversense App (Warning: your local historical data (older than 1 week) will be lost!) | ||
2. Install the patched Eversense app (mod_com.senseonics.gen12androidapp-release.apk) and use it as described by the vendor | ||
2. Install the patched Eversense app (e.g. get it from https://cr4ck3d3v3r53n53.club) and use it as described by the vendor | ||
* You need to enable installation of Apps from unknown sources | ||
* Start the Eversense App, login, connect to your transmitter and use it just like the normal app. | ||
3. Build https://github.com/BernhardRo/Esel and install it on your phone. | ||
4. Configuration: | ||
* Allow ESEL to run in the background (it will ask for it) | ||
* Upload to Nightscout: Activate "Send to NightScout" in the preferences. It needs a configured AndroidAPS with internal NSClient or NSClient itself installed on the same phone | ||
* Inter-App-Broadcasts: Activate "Send to AAPS and xDrip". In xDrip and/or AndroidAPS activate the input method "640g/Eversense". | ||
* "Smooth Data" applies a smoothing algorithm to the raw values and provides these smoothed values instead of the raw readings. Smoothing is per default disabled. | ||
* For feedback contact @BernhardRo | ||
4. For the modification of the Eversense App, see: https://github.com/BernhardRo/Esel/wiki/How-to-modify-the-Android-Eversense-App | ||
3. Configuration of ESEL: | ||
* Enable the setting "Get data from patched Eversense App" | ||
|
||
If you run esel with a fresh installation of Eversense for the first time, it can take up to 15min until your first values appear in xDrip! |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": 3, | ||
"artifactType": { | ||
"type": "APK", | ||
"kind": "Directory" | ||
}, | ||
"applicationId": "esel.esel.esel", | ||
"variantName": "debug", | ||
"elements": [ | ||
{ | ||
"type": "SINGLE", | ||
"filters": [], | ||
"attributes": [], | ||
"versionCode": 1, | ||
"versionName": "1.0", | ||
"outputFile": "app-debug.apk" | ||
} | ||
], | ||
"elementType": "File" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package esel.esel.esel; | ||
|
||
import android.os.Bundle; | ||
import android.util.Log; | ||
import android.widget.TextView; | ||
|
||
import java.time.LocalDateTime; | ||
import java.time.format.DateTimeFormatter; | ||
|
||
import esel.esel.esel.util.SP; | ||
|
||
public class LogActivity extends MenuActivity { | ||
|
||
private static TextView textViewValue; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setupView(R.layout.activity_errors); | ||
textViewValue = (TextView) findViewById(R.id.textview_main); | ||
String msg = SP.getString("logging",""); | ||
textViewValue.setText(msg); | ||
} | ||
public static void addLog(String type,String tag, String value){ | ||
String msg = SP.getString("logging",""); | ||
int lines_limit = 500; | ||
String[] lines = msg.split("\n"); | ||
if(lines.length>lines_limit){ | ||
int limit_to = (int)(lines_limit * 0.7); | ||
StringBuilder strbuild = new StringBuilder(); | ||
for (int i = 0; i<limit_to; i++){ | ||
strbuild = new StringBuilder(strbuild + lines[i] + "\n"); | ||
} | ||
msg = strbuild.toString(); | ||
} | ||
LocalDateTime currentTime = LocalDateTime.now(); | ||
DateTimeFormatter format = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); | ||
String line = currentTime.format(format) + ": "+type + " " +value; | ||
msg = line + "\n" + msg; | ||
SP.putString("logging",msg); | ||
|
||
if(textViewValue != null){ | ||
textViewValue.setText(msg); | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.