Add prefernces.json remove openapsama_skip_neutral_temps

This commit is contained in:
LadyViktoria 2017-01-26 15:32:44 +01:00
parent 0ddc26ce89
commit 1d2f98abf4
3 changed files with 8 additions and 32 deletions

View file

@ -234,7 +234,7 @@ public class DetermineBasalAdapterAMAJS {
mProfile.add("sens", NSProfile.toMgdl(profile.getIsf(NSProfile.secondsFromMidnight()).doubleValue(), units));
mProfile.add("max_daily_safety_multiplier", SafeParse.stringToInt(preferences.getString("openapsama_max_daily_safety_multiplier", "3")));
mProfile.add("current_basal_safety_multiplier", SafeParse.stringToInt(preferences.getString("openapsama_max_basal_safety_multiplier", "4")));
mProfile.add("skip_neutral_temps", preferences.getBoolean("openapsama_skip_neutral_temps", false));
mProfile.add("skip_neutral_temps", true);
mProfile.add("current_basal", pump.getBaseBasalRate());
mProfile.add("temptargetSet", tempTargetSet);
mProfile.add("autosens_adjust_targets", preferences.getBoolean("openapsama_autosens_adjusttargets", true));

View file

@ -464,8 +464,6 @@
<string name="openapsama_autosens_min_summary">Default value: 0.7\nThe other side of the autosens safety limits, putting a cap on how low autosens can adjust basals, and how high it can adjust ISF and BG targets.</string>
<string name="openapsama_autosens_adjusttargets">autosens_adjust_targets</string>
<string name="openapsama_autosens_adjusttargets_summary">Default value: true\nThis is used to allow autosens to adjust BG targets, in addition to ISF and basals.</string>
<string name="openapsama_skip_neutral_temps">skip_neutral_temps</string>
<string name="openapsama_skip_neutral_temps_summary">Default value: false\nOpenAPS will set temps whenever it can, so it will be easier to see if the system is working, even when you are offline. This means OpenAPS will set a “neutral” temp (same as your default basal) if no adjustments are needed. If you are a light sleeper and the “on the hour” buzzing or beeping wakes you up (even in vibrate mode), you may want to turn this to “true” to skip this setting. However, we recommend it for most people who will be using this system on the go and out of constant connectivity.</string>
<string name="openapsama_bolussnooze_dia_divisor">bolussnooze_dia_divisor</string>
<string name="openapsama_bolussnooze_dia_divisor_summary">Default value: 2\nBolus snooze is enacted after you do a meal bolus, so the loop wont counteract with low temps when youve just eaten. The example here and default is 2; so a 3 hour DIA means that bolus snooze will be gradually phased out over 1.5 hours (3DIA/2).</string>
<string name="openapsama_min_5m_carbimpact">min_5m_carbimpact</string>

View file

@ -46,7 +46,6 @@
android:title="@string/openapsama_max_daily_safety_multiplier"
android:dialogMessage="@string/openapsama_max_daily_safety_multiplier_summary"
android:key="openapsama_max_daily_safety_multiplier" />
<com.andreabaccega.widget.ValidatingEditTextPreference
validate:testType="numericRange"
validate:minNumber="1"
@ -72,8 +71,7 @@
android:maxLines="20"
android:title="@string/openapsama_autosens_max"
android:dialogMessage="@string/openapsama_autosens_max_summary"
android:key="openapsama_autosens_max"
android:dependency="openapsama_useautosens"/>
android:key="openapsama_autosens_max" />
<com.andreabaccega.widget.ValidatingEditTextPreference
validate:testType="floatNumericRange"
validate:minNumber="0"
@ -85,32 +83,12 @@
android:maxLines="20"
android:title="@string/openapsama_autosens_min"
android:dialogMessage="@string/openapsama_autosens_min_summary"
android:key="openapsama_autosens_min"
android:dependency="openapsama_useautosens"/>
<PreferenceScreen
android:title="@string/openapsama_autosens_adjusttargets">
<PreferenceCategory
android:title="@string/openapsama_autosens_adjusttargets">
<Preference android:summary="@string/openapsama_autosens_adjusttargets_summary" />
<SwitchPreference
android:defaultValue="true"
android:key="openapsama_autosens_adjusttargets"
android:dependency="openapsama_useautosens"
android:title="@string/openapsama_autosens_adjusttargets" />
</PreferenceCategory>
</PreferenceScreen>
<PreferenceScreen
android:title="@string/openapsama_skip_neutral_temps">
<PreferenceCategory
android:title="@string/openapsama_skip_neutral_temps">
<Preference android:summary="@string/openapsama_skip_neutral_temps_summary" />
<SwitchPreference
android:defaultValue="false"
android:title="@string/openapsama_skip_neutral_temps"
android:key="openapsama_skip_neutral_temps"
android:dependency="openapsama_useautosens" />
</PreferenceCategory>
</PreferenceScreen>
android:key="openapsama_autosens_min" />
<SwitchPreference
android:defaultValue="true"
android:key="openapsama_autosens_adjusttargets"
android:title="@string/openapsama_autosens_adjusttargets"
android:summary="@string/openapsama_autosens_adjusttargets_summary"/>
<com.andreabaccega.widget.ValidatingEditTextPreference
validate:testType="numericRange"
validate:minNumber="1"