forked from rqueen/dexcom-uploader-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
383 additions
and
253 deletions.
There are no files selected for viewing
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,6 @@ | ||
.idea | ||
*.iml | ||
gen | ||
out | ||
*.apk | ||
logs |
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,7 @@ | ||
dexcom-uploader | ||
==================== | ||
|
||
A community maintained fork of original android uploader. | ||
|
||
We're currently consolidating multiple forks of the original code here. | ||
This will support the 2 most common deployment models (REST / Hosted Mongo). |
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,24 +1,47 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<PreferenceCategory | ||
android:title="Database" | ||
android:key="pref_database"> | ||
<SwitchPreference | ||
android:title="Uploading" | ||
android:key="DatabaseSwitch" | ||
android:disableDependentsState="false"> | ||
</SwitchPreference> | ||
<EditTextPreference | ||
android:dependency="DatabaseSwitch" | ||
android:title="MongoDB URI" | ||
android:key="MongoDB URI" | ||
android:dialogTitle="Enter MongoDB URI"> | ||
</EditTextPreference> | ||
<EditTextPreference | ||
android:dependency="DatabaseSwitch" | ||
android:title="Collection Name" | ||
android:key="Collection Name" | ||
android:dialogTitle="Enter Collection Name"> | ||
</EditTextPreference> | ||
</PreferenceCategory> | ||
<SwitchPreference | ||
android:title="API Upload (REST)" | ||
android:key="EnableRESTUpload" | ||
android:disableDependentsState="false" | ||
android:summary="The REST API is an alternative to direct mongodb upload"> | ||
</SwitchPreference> | ||
<EditTextPreference | ||
android:dependency="EnableRESTUpload" | ||
android:title="API Base URL" | ||
android:key="API Base URL" | ||
android:dialogTitle="Enter Base API URL" | ||
android:defaultValue="http://{YOUR-API-SERVER}/api" | ||
android:dialogMessage="This only the base URL, the uploader will automatically append /entries for the POST"> | ||
</EditTextPreference> | ||
<SwitchPreference | ||
android:title="MongoDB Upload" | ||
android:key="EnableMongoUpload" | ||
android:disableDependentsState="false" | ||
android:summary="If you're using MongoLab and Azure this should be enabled"> | ||
</SwitchPreference> | ||
<EditTextPreference | ||
android:dependency="EnableMongoUpload" | ||
android:title="MongoDB URI" | ||
android:key="MongoDB URI" | ||
android:dialogTitle="Enter MongoDB URI" | ||
android:dialogMessage="Replace example values in {}'s with your correct values" | ||
android:defaultValue="mongodb://{user}:{password}@{host}.mongolab.com:{11111}/{database}"> | ||
</EditTextPreference> | ||
<EditTextPreference | ||
android:dependency="EnableMongoUpload" | ||
android:title="Collection Name" | ||
android:key="Collection Name" | ||
android:dialogTitle="Enter Collection Name" | ||
android:dialogMessage="This is the name of the collection where the CGM data will be stored"> | ||
</EditTextPreference> | ||
<SwitchPreference | ||
android:title="Wifi Hack" | ||
android:key="EnableWifiHack" | ||
android:disableDependentsState="false" | ||
android:defaultValue="true" | ||
android:summaryOn="Wifi will be disabled if there is a timeout (poor wifi signal/access point), this will allow mobile data to be used instead" | ||
android:summaryOff="The uploader won't try to disable Wifi even if there is a timeout" | ||
> | ||
</SwitchPreference> | ||
</PreferenceScreen> |
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
Oops, something went wrong.