preference.xml 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:auto="http://schemas.android.com/apk/res-auto">
  4. <PreferenceScreen
  5. android:title="Temperature"
  6. android:key="pref_temperature">
  7. <!-- SwitchPreference
  8. android:key="pref_tmpnbl"
  9. android:title="Enable meCoffee boiler control"
  10. android:summary="Make meCoffee control the boiler"
  11. android:enabled="false"
  12. android:defaultValue="false" / -->
  13. <SwitchPreference
  14. android:key="pref_tmpcntns"
  15. android:title="Continuous mode"
  16. android:summary="Instead of using an interval, dim the boiler"
  17. android:defaultValue="false" />
  18. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  19. android:id="@+id/pref_tmpsp"
  20. android:key="pref_tmpsp"
  21. android:defaultValue="101"
  22. android:dialogMessage="Brew temperature ( Celsius )"
  23. android:max="150"
  24. android:enabled="true"
  25. android:title="Brew temperature"
  26. android:summary="%d degrees"
  27. auto:scale="100"
  28. / -->
  29. <net.jayschwa.android.preference.SliderPreference
  30. android:key="pref_tmpsp"
  31. android:title="Brew temperature ( Celsius )"
  32. android:dialogMessage=""
  33. android:summary="%s, default: 101 °"
  34. android:defaultValue="10100"
  35. android:max="125"
  36. auto:minn="50"
  37. auto:resolution="0.5"
  38. auto:format="%.2f °"
  39. auto:scales="100"
  40. />
  41. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  42. android:id="@+id/pref_tmpstm"
  43. android:key="pref_tmpstm"
  44. android:defaultValue="125"
  45. android:dialogMessage="Steam temperature ( Celsius )"
  46. android:max="150"
  47. android:enabled="true"
  48. android:title="Steam temperature"
  49. android:summary="%d degrees"
  50. auto:scale="100"
  51. / -->
  52. <net.jayschwa.android.preference.SliderPreference
  53. android:key="pref_tmpstm"
  54. android:title="Steam temperature ( Celsius )"
  55. android:dialogMessage=""
  56. android:summary="%s, default: 125 °"
  57. android:defaultValue="12500"
  58. android:max="140"
  59. auto:minn="110"
  60. auto:resolution="0.5"
  61. auto:format="%.2f °"
  62. auto:scales="100"
  63. />
  64. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  65. android:id="@+id/pref_tmppap"
  66. android:key="pref_tmppap"
  67. android:defaultValue="10"
  68. android:dialogMessage="Please select the percentage to increase the boiler power while brewing"
  69. android:max="100"
  70. android:title="Pro Active Percentage"
  71. android:summary="%d %%"
  72. /-->
  73. <net.jayschwa.android.preference.SliderPreference
  74. android:key="pref_tmppap"
  75. android:title="Pro Active Percentage"
  76. android:dialogMessage="Please select the percentage to increase the boiler power while brewing"
  77. android:summary="%s, default: 33 %%"
  78. android:defaultValue="33"
  79. android:max="100"
  80. auto:minn="0"
  81. auto:resolution="1"
  82. auto:format="%.0f %%"
  83. auto:scales="1"
  84. />
  85. <PreferenceScreen
  86. android:title="PID"
  87. android:key="pref_temperature_pid">
  88. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  89. android:id="@+id/pref_pd1p"
  90. android:key="pref_pd1p"
  91. android:defaultValue="10"
  92. android:dialogMessage="Please select the Proportional component"
  93. android:summary="%d, default: 25"
  94. android:max="100"
  95. android:title="Proportional component ( P )"
  96. / -->
  97. <net.jayschwa.android.preference.SliderPreference
  98. android:key="pref_pd1p"
  99. android:title="Proportional component ( P )"
  100. android:dialogMessage="Please select the Proportional component"
  101. android:summary="%s, default: 20"
  102. android:defaultValue="20"
  103. android:max="100"
  104. auto:minn="0"
  105. auto:resolution="1"
  106. auto:format="%.0f"
  107. auto:scales="1" />
  108. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  109. android:id="@+id/pref_pd1i"
  110. android:key="pref_pd1i"
  111. android:defaultValue="10"
  112. android:dialogMessage="Please select the Integral component"
  113. android:max="100"
  114. android:title="Integral component ( I )"
  115. android:summary="%d, default: 3"
  116. / -->
  117. <net.jayschwa.android.preference.SliderPreference
  118. android:key="pref_pd1i"
  119. android:title="Integral component ( I )"
  120. android:dialogMessage="Please select the Integral component"
  121. android:summary="%s, default: 0.3"
  122. android:defaultValue="0.3"
  123. android:max="1"
  124. auto:minn="0"
  125. auto:resolution="0.01"
  126. auto:format="%.2f"
  127. auto:scales="100" />
  128. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  129. android:id="@+id/pref_pd1d"
  130. android:key="pref_pd1d"
  131. android:defaultValue="10"
  132. android:dialogMessage="Please select the Derivative component"
  133. android:max="255"
  134. android:title="Derivative component ( D )"
  135. android:summary="%d, default:128 "
  136. / -->
  137. <net.jayschwa.android.preference.SliderPreference
  138. android:key="pref_pd1d"
  139. android:title="Derivative component ( D )"
  140. android:dialogMessage="Please select the Derivative component"
  141. android:summary="%s, default: 128"
  142. android:defaultValue="128"
  143. android:max="256"
  144. auto:minn="0"
  145. auto:resolution="1"
  146. auto:format="%.0f"
  147. auto:scales="1" />
  148. <!-- ListPreference
  149. android:key="pref_pd1imn"
  150. android:title="Integral ( I ) wind-down minimum"
  151. android:summary="%s, default: 1000"
  152. android:entries="@array/pid_winddown"
  153. android:entryValues="@array/pid_winddown_alias"/ -->
  154. <net.jayschwa.android.preference.SliderPreference
  155. android:key="pref_pd1imm"
  156. android:title="Integral ( I ) wind-down minimum"
  157. android:dialogMessage="The minimum maintenance power, limiting this helps overshoots and oscillation."
  158. android:summary="%s, default: 5"
  159. android:defaultValue="0"
  160. android:max="100"
  161. auto:minn="0"
  162. auto:format="%.0f %%"
  163. auto:resolution="1"
  164. auto:scales="655.36"
  165. />
  166. <!-- ListPreference
  167. android:key="pref_pd1imx"
  168. android:title="Integral ( I ) wind-down limit"
  169. android:summary="%s, default: 3000"
  170. android:entries="@array/pid_winddown"
  171. android:entryValues="@array/pid_winddown_alias"/ -->
  172. <net.jayschwa.android.preference.SliderPreference
  173. android:key="pref_pd1imx"
  174. android:title="Integral ( I ) wind-down limit"
  175. android:dialogMessage="The maximum maintenance power, limiting this helps overshoots and oscillation."
  176. android:summary="%s, default: 20"
  177. android:defaultValue="20"
  178. android:max="100"
  179. auto:minn="0"
  180. auto:format="%.0f %%"
  181. auto:resolution="1"
  182. auto:scales="655.36"
  183. />
  184. <!-- ListPreference
  185. android:key="pref_pd1sz"
  186. android:title="Polling interval"
  187. android:summary="%s ms, default: 1000 ms"
  188. android:entries="@array/pid_interval"
  189. android:entryValues="@array/pid_interval"/ -->
  190. <net.jayschwa.android.preference.SliderPreference
  191. android:key="pref_pd1sz"
  192. android:title="Polling interval"
  193. android:dialogMessage="Default for continous mode: 1000 ms, \ndefault for interval mode: 5000 ms."
  194. android:summary="%s, default: 1000 ms"
  195. android:defaultValue="1000"
  196. android:max="10000"
  197. auto:minn="1000"
  198. auto:format="%.0f ms"
  199. auto:resolution="500"
  200. />
  201. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  202. android:id="@+id/pref_pd1id"
  203. android:key="pref_pd1id"
  204. android:defaultValue="10"
  205. android:dialogMessage="Speed at which the error component reacts ( 10 = default, lower is faster, bigger is slow )"
  206. android:max="50"
  207. min="1"
  208. android:title="I-Speed parameter down"
  209. android:summary="%d, default:10 "
  210. / -->
  211. <!-- net.jayschwa.android.preference.SliderPreference
  212. android:key="pref_pd1id"
  213. android:title="Integral speed below setpoint"
  214. android:dialogMessage="Lower is faster, higher is slower. Default: 10."
  215. android:summary="%s, default: 10"
  216. android:defaultValue="10"
  217. android:max="50"
  218. auto:minn="0"
  219. auto:format="%.0f"
  220. auto:resolution="1"
  221. / -->
  222. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  223. android:id="@+id/pref_pd1iu"
  224. android:key="pref_pd1iu"
  225. android:defaultValue="10"
  226. android:dialogMessage="Speed at which the error component reacts ( 10 = default, lower is faster, bigger is slow )"
  227. android:max="50"
  228. min="1"
  229. android:title="Please select the I-Speed parameter down"
  230. android:summary="%d, default:10 "
  231. / -->
  232. <!-- net.jayschwa.android.preference.SliderPreference
  233. android:key="pref_pd1iu"
  234. android:title="Integral speed above setpoint"
  235. android:dialogMessage="Lower is faster, higher is slower. Default: 10."
  236. android:summary="%s, default: 10"
  237. android:defaultValue="10"
  238. android:max="50"
  239. auto:minn="0"
  240. auto:format="%.0f"
  241. auto:resolution="1"
  242. / -->
  243. <Preference android:title="Help" >
  244. <intent
  245. android:action="android.intent.action.VIEW"
  246. android:data="https://www.mecoffee.nl/mebarista/help/temperature/pid"
  247. />
  248. </Preference>
  249. </PreferenceScreen>
  250. <Preference android:title="Help" >
  251. <intent
  252. android:action="android.intent.action.VIEW"
  253. android:data="https://www.mecoffee.nl/mebarista/help/temperature/"
  254. />
  255. </Preference>
  256. </PreferenceScreen>
  257. <PreferenceScreen
  258. android:title="Pressure"
  259. android:key="pref_pp">
  260. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  261. android:id="@+id/pref_pp_start"
  262. android:key="pref_pp1"
  263. android:defaultValue="100"
  264. android:dialogMessage="Please select pump pressure to start with"
  265. android:max="100"
  266. android:title="At start of pull"
  267. android:summary="%d %%"
  268. android:enabled="true"
  269. / -->
  270. <net.jayschwa.android.preference.SliderPreference
  271. android:key="pref_pp1"
  272. android:title="At start of pull"
  273. android:dialogMessage="Please select pump pressure to start with"
  274. android:summary="%s, default: 100 %%"
  275. android:defaultValue="100"
  276. android:max="100"
  277. auto:minn="0"
  278. auto:resolution="1"
  279. auto:format="%.0f %%"
  280. auto:scales="1"
  281. />
  282. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  283. android:id="@+id/pref_pp_end"
  284. android:key="pref_pp2"
  285. android:defaultValue="70"
  286. android:dialogMessage="Please select pump pressure to end with"
  287. android:max="100"
  288. android:title="At end of pull"
  289. android:summary="%d %%"
  290. android:enabled="true"
  291. / -->
  292. <net.jayschwa.android.preference.SliderPreference
  293. android:key="pref_pp2"
  294. android:title="At end of pull"
  295. android:dialogMessage="Please select pump pressure to end with"
  296. android:summary="%s, default: 100 %%"
  297. android:defaultValue="100"
  298. android:max="100"
  299. auto:minn="0"
  300. auto:resolution="1"
  301. auto:format="%.0f %%"
  302. auto:scales="1"
  303. />
  304. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  305. android:id="@+id/pref_pp_period"
  306. android:key="pref_ppt"
  307. android:defaultValue="25"
  308. android:dialogMessage="Please select the period to taper from the start pressure to the end pressure"
  309. android:max="60"
  310. android:title="Period"
  311. android:enabled="true"
  312. android:summary="%d seconds"
  313. / -->
  314. <net.jayschwa.android.preference.SliderPreference
  315. android:key="pref_ppt"
  316. android:title="Period"
  317. android:dialogMessage="Please select the period to taper from the start pressure to the end pressure"
  318. android:summary="%s, default: 25 s"
  319. android:defaultValue="25"
  320. android:max="60"
  321. auto:minn="0"
  322. auto:resolution="1"
  323. auto:format="%.0f s"
  324. auto:scales="1"
  325. />
  326. <Preference android:title="Help" >
  327. <intent
  328. android:action="android.intent.action.VIEW"
  329. android:data="https://www.mecoffee.nl/mebarista/help/pressure"
  330. />
  331. </Preference>
  332. </PreferenceScreen>
  333. <PreferenceScreen
  334. android:title="Preinfusion"
  335. android:key="pref_pi">
  336. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  337. android:id="@+id/pref_pi_shtmx"
  338. android:key="pref_shtmx"
  339. android:defaultValue="0"
  340. android:dialogMessage="Please select total shot time ( 0 for infinity )"
  341. android:max="40"
  342. android:title="Max shot time"
  343. android:summary="%d seconds"
  344. / -->
  345. <net.jayschwa.android.preference.SliderPreference
  346. android:key="pref_shtmx"
  347. android:title="Max shot time"
  348. android:dialogMessage="Please select maximum shot time"
  349. android:summary="%s, default: 60 s"
  350. android:defaultValue="60"
  351. android:max="60"
  352. auto:minn="0"
  353. auto:resolution="1"
  354. auto:format="%.0f s"
  355. auto:scales="1"
  356. />
  357. <SwitchPreference
  358. android:key="pref_pinbl"
  359. android:title="Enable"
  360. android:summary="Fill the puck first and pull the shot a couple of seconds later"
  361. android:defaultValue="true" />
  362. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  363. android:id="@+id/pref_pi_pump"
  364. android:dependency="pref_pinbl"
  365. android:key="pref_pistrt"
  366. android:defaultValue="3"
  367. android:dialogMessage="Please select pump time in seconds"
  368. android:max="10"
  369. android:title="Pump time"
  370. android:summary="%d seconds"
  371. / -->
  372. <net.jayschwa.android.preference.SliderPreference
  373. android:key="pref_pistrt"
  374. android:dependency="pref_pinbl"
  375. android:title="Pump time"
  376. android:dialogMessage="Please select pump time in seconds"
  377. android:summary="%s, default: 3 s"
  378. android:defaultValue="3"
  379. android:max="10"
  380. auto:minn="0"
  381. auto:resolution="0.1"
  382. auto:format="%.1f s"
  383. auto:scales="1000"
  384. />
  385. <SwitchPreference
  386. android:key="pref_pivlv"
  387. android:dependency="pref_pinbl"
  388. android:title="Close valve while paused"
  389. android:summary=""
  390. android:defaultValue="false" />
  391. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  392. android:id="@+id/pref_pi_pause"
  393. android:dependency="pref_pinbl"
  394. android:key="pref_piprd"
  395. android:defaultValue="3"
  396. android:dialogMessage="Please select pause time in seconds"
  397. android:max="10"
  398. android:title="Pause time"
  399. android:summary="%d seconds"
  400. / -->
  401. <net.jayschwa.android.preference.SliderPreference
  402. android:key="pref_piprd"
  403. android:dependency="pref_pinbl"
  404. android:title="Pause time"
  405. android:dialogMessage="Please select pause time in seconds"
  406. android:summary="%s, default: 3 s"
  407. android:defaultValue="3"
  408. android:max="10"
  409. auto:minn="0"
  410. auto:resolution="0.1"
  411. auto:format="%.1f s"
  412. auto:scales="1000"
  413. />
  414. <Preference android:title="Help" >
  415. <intent
  416. android:action="android.intent.action.VIEW"
  417. android:data="https://www.mecoffee.nl/mebarista/help/preinfusion/"
  418. />
  419. </Preference>
  420. </PreferenceScreen>
  421. <PreferenceScreen
  422. xmlns:android="http://schemas.android.com/apk/res/android"
  423. android:title="Timers"
  424. android:key="pref_timer">
  425. <net.jayschwa.android.preference.SliderPreference
  426. android:key="pref_tmrosd"
  427. android:title="Auto shutoff time"
  428. android:dialogMessage="Inactivity timer. 0 means no disactivity timer"
  429. android:summary="%s minutes, default: 60 minutes"
  430. android:defaultValue="60"
  431. android:max="120"
  432. auto:minn="0"
  433. auto:resolution="1"
  434. auto:format="%.0f minutes"
  435. auto:scales="1"
  436. />
  437. <SwitchPreference
  438. android:key="pref_tmrwnbl"
  439. android:title="Enable"
  440. android:summary="Automatically turn machine on at a certain time"
  441. android:defaultValue="false" />
  442. <nl.digitalthings.mebarista.TimePreference
  443. android:id="@+id/pref_tmron"
  444. android:dependency="pref_tmrwnbl"
  445. android:key="pref_tmron"
  446. android:dialogMessage="Please select the wakeup time"
  447. android:title="Wakeup time"
  448. />
  449. <SwitchPreference
  450. android:key="pref_tmrsnbl"
  451. android:title="Enable"
  452. android:summary="Automatically turn machine off at a certain time"
  453. android:enabled="true"
  454. android:defaultValue="false" />
  455. <nl.digitalthings.mebarista.TimePreference
  456. android:id="@+id/pref_tmroff"
  457. android:dependency="pref_tmrsnbl"
  458. android:key="pref_tmroff"
  459. android:defaultValue="3"
  460. android:dialogMessage="Please select the shutdown time"
  461. android:title="Shutdown time"
  462. android:summary=" seconds"
  463. android:enabled="true"
  464. />
  465. <Preference android:title="Help" >
  466. <intent
  467. android:action="android.intent.action.VIEW"
  468. android:data="https://www.mecoffee.nl/mebarista/help/timer/"
  469. />
  470. </Preference>
  471. </PreferenceScreen>
  472. <PreferenceScreen
  473. android:title="Bluetooth"
  474. android:key="pref_bt">
  475. <nl.digitalthings.mebarista.EditTextPreferenceWithSummary
  476. android:id="@+id/pref_bt_devicename"
  477. android:key="pref_btname"
  478. android:defaultValue="meCoffee"
  479. android:title="Device name"
  480. android:summary="Connected device has name '%s'"
  481. />
  482. <nl.digitalthings.mebarista.EditTextPreferenceWithSummary
  483. android:id="@+id/pref_bt_devicename_prefix"
  484. android:key="pref_bt_devicename_prefix"
  485. android:defaultValue="meCoffee"
  486. android:title="Device name prefix"
  487. android:summary="Devices wich names start with '%s' will be automatically connected"
  488. />
  489. <SwitchPreference
  490. android:key="pref_bt_bt2_enabled"
  491. android:title="Enable BT2 / Classic"
  492. android:summary="Scans for BT2 / Classic devices"
  493. android:defaultValue="true" />
  494. <SwitchPreference
  495. android:key="pref_bt_ble_enabled"
  496. android:title="Enable BLE / Bluetooth Low Energy"
  497. android:summary="Scans for BLE / Bluetooth Low Energy devices"
  498. android:defaultValue="false" />
  499. <SwitchPreference
  500. android:key="pref_bt_disable"
  501. android:title="Disable on close"
  502. android:summary="Disable Bluetooth adapter if App is closed"
  503. android:defaultValue="false" />
  504. <SwitchPreference
  505. android:key="pref_bt_keepdiscovering"
  506. android:title="Keep discovering"
  507. android:summary="Keep discovering devices when not connected"
  508. android:enabled="true"
  509. android:defaultValue="false" />
  510. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  511. android:id="@+id/pref_bt_scanlimit_minutes"
  512. android:dependency="pref_bt_scanlimit"
  513. android:key="pref_pt_scanlimit_minutes"
  514. android:defaultValue="3"
  515. android:dialogMessage="Please select scan time in minutues"
  516. android:max="10"
  517. android:title="Bluetooth scan time"
  518. android:enabled="false"
  519. android:summary=" minutes"
  520. / -->
  521. <Preference android:title="Help" >
  522. <intent
  523. android:action="android.intent.action.VIEW"
  524. android:data="https://www.mecoffee.nl/mebarista/help/bluetooth/"
  525. />
  526. </Preference>
  527. </PreferenceScreen>
  528. <PreferenceScreen
  529. android:title="User interface"
  530. android:key="pref_ui">
  531. <SwitchPreference
  532. android:key="pref_ui_graph_enable"
  533. android:title="Enable graph"
  534. android:summary="Show the temperature graph on the background"
  535. android:defaultValue="true" />
  536. <ListPreference
  537. android:key="pref_ui_graph_history"
  538. android:title="Graph history"
  539. android:dependency="pref_ui_graph_enable"
  540. android:entries="@array/graph_history"
  541. android:entryValues="@array/graph_history_alias"/>
  542. <SwitchPreference
  543. android:id="@+id/pref_ui_second_sensor"
  544. android:key="pref_ui_second_sensor"
  545. android:title="Show second sensor"
  546. android:summary=""
  547. android:defaultValue="false" />
  548. <CheckBoxPreference
  549. android:key="pref_ui_tempcontrol_enable"
  550. android:title="Enable temperature control"
  551. android:defaultValue="false" />
  552. <SwitchPreference
  553. android:id="@+id/pref_ui_background"
  554. android:key="pref_ui_background"
  555. android:title="Show background"
  556. android:summary=""
  557. android:defaultValue="true" />
  558. <SwitchPreference
  559. android:id="@+id/pref_ui_logging"
  560. android:key="pref_ui_logging"
  561. android:title="Show logging"
  562. android:summary=""
  563. android:defaultValue="false" />
  564. <SwitchPreference
  565. android:id="@+id/pref_ui_screenwake"
  566. android:key="pref_ui_screenwake"
  567. android:title="Prevent screen sleep"
  568. android:summary=""
  569. android:defaultValue="false" />
  570. <Preference android:title="Help" >
  571. <intent
  572. android:action="android.intent.action.VIEW"
  573. android:data="https://www.mecoffee.nl/mebarista/help/userinterface/"
  574. />
  575. </Preference>
  576. </PreferenceScreen>
  577. <!-- PreferenceScreen
  578. android:title="Statistics"
  579. android:key="pref_statistics">
  580. <nl.digitalthings.mebarista.PreferencesNumberPicker
  581. android:id="@+id/pref_grndr_cnt"
  582. android:key="pref_grndr_cnt"
  583. android:defaultValue="0"
  584. android:dialogMessage="The times the grinder has grinded!"
  585. android:enabled="false"
  586. android:selectable="false"
  587. android:shouldDisableView="false"
  588. android:title="Grinder counter"
  589. android:summary=" times"
  590. android:max="65000"
  591. />
  592. <Preference android:title="Help" >
  593. <intent
  594. android:action="android.intent.action.VIEW"
  595. android:data="https://www.mecoffee.nl/mebarista/help/statistics"
  596. />
  597. </Preference>
  598. </PreferenceScreen !-->
  599. <PreferenceScreen
  600. android:title="Hardware"
  601. android:key="pref_hardware">
  602. <ListPreference
  603. android:id="@+id/pref_hw_out0"
  604. android:key="pref_o0"
  605. android:title="Output 1"
  606. android:summary="%s, default: Pump"
  607. android:defaultValue="112"
  608. android:entries="@array/hw_out"
  609. android:entryValues="@array/hw_out_alias"/>
  610. <ListPreference
  611. android:id="@+id/pref_support_hw_out1"
  612. android:key="pref_o1"
  613. android:title="Output 2"
  614. android:summary="%s, default: Boiler"
  615. android:defaultValue="98"
  616. android:entries="@array/hw_out"
  617. android:entryValues="@array/hw_out_alias"/>
  618. <ListPreference
  619. android:id="@+id/pref_hw_out2"
  620. android:key="pref_o2"
  621. android:title="Output 3"
  622. android:summary="%s, default: Valve"
  623. android:defaultValue="118"
  624. android:entries="@array/hw_out"
  625. android:entryValues="@array/hw_out_alias"/>
  626. <SwitchPreference
  627. android:key="pref_tmrpwr"
  628. android:title="Installed as timer"
  629. android:summary="Prevent warmup after power outage or cold boot"
  630. android:enabled="true"
  631. android:defaultValue="false" />
  632. <SwitchPreference
  633. android:key="pref_pwrflp"
  634. android:title="Power button flips back"
  635. android:summary="Enable Silvia V5 power button or similar"
  636. android:enabled="true"
  637. android:defaultValue="false" />
  638. <!-- SwitchPreference
  639. android:key="pref_s1ad"
  640. android:title="Sensor 1 divide"
  641. android:summary="Do the sensor dance"
  642. android:enabled="true"
  643. android:defaultValue="false" / -->
  644. <PreferenceScreen
  645. android:title="Firmware"
  646. android:key="pref_firmware">
  647. <nl.digitalthings.mebarista.EditTextPreferenceWithSummary
  648. android:id="@+id/pref_uname"
  649. android:key="pref_uname"
  650. android:defaultValue=""
  651. android:title="Device firmware"
  652. android:summary="Running version: %s"
  653. />
  654. <!-- nl.digitalthings.mebarista.EditTextPreferenceWithSummary
  655. android:id="@+id/pref_fw_pin"
  656. android:key="pref_fw_pin"
  657. android:defaultValue=""
  658. android:title="Pin code required for flashing"
  659. android:summary="'%s'"
  660. / -->
  661. <SwitchPreference
  662. android:id="@+id/pref_support_fw_enable"
  663. android:key="pref_support_fw_enable"
  664. android:title="Enable"
  665. android:summary="Enable Flash Firmware button, make sure to read and understand the help section first."
  666. android:defaultValue="false" />
  667. <Preference android:title="Flash firmware V4 ( legacy )"
  668. android:summary="When selected, meBarista will reflash your espresso machine. Read help section first."
  669. android:dependency="pref_support_fw_enable"
  670. android:enabled="false">
  671. <intent android:targetPackage="nl.digitalthings.mebarista"
  672. android:targetClass="nl.digitalthings.mebarista.MainActivity"
  673. android:data="flashfirmware_V4"
  674. android:dependency="pref_support_fw_enable"
  675. />
  676. </Preference>
  677. <Preference android:title="Flash firmware V9 ( newest )"
  678. android:summary="When selected, meBarista will reflash your espresso machine. Read help section first."
  679. android:dependency="pref_support_fw_enable"
  680. android:enabled="false">
  681. <intent android:targetPackage="nl.digitalthings.mebarista"
  682. android:targetClass="nl.digitalthings.mebarista.MainActivity"
  683. android:data="flashfirmware_V9"
  684. android:dependency="pref_support_fw_enable"
  685. />
  686. </Preference>
  687. <Preference android:title="Flash firmware V10 ( newest )"
  688. android:summary="When selected, meBarista will reflash your espresso machine. Read help section first."
  689. android:dependency="pref_support_fw_enable"
  690. android:enabled="false">
  691. <intent android:targetPackage="nl.digitalthings.mebarista"
  692. android:targetClass="nl.digitalthings.mebarista.MainActivity"
  693. android:data="flashfirmware_V10"
  694. android:dependency="pref_support_fw_enable"
  695. />
  696. </Preference>
  697. <ListPreference
  698. android:key="pref_fw_timing"
  699. android:title="Flash timing"
  700. android:dependency="pref_support_fw_enable"
  701. android:defaultValue="250"
  702. android:entries="@array/fw_timing"
  703. android:entryValues="@array/fw_timing_alias"/>
  704. <Preference android:title="Help" >
  705. <intent
  706. android:action="android.intent.action.VIEW"
  707. android:data="https://www.mecoffee.nl/mebarista/help/hardware/firmware/"
  708. />
  709. </Preference>
  710. </PreferenceScreen>
  711. <Preference android:title="Help" >
  712. <intent
  713. android:action="android.intent.action.VIEW"
  714. android:data="https://www.mecoffee.nl/mebarista/help/hardware/"
  715. />
  716. </Preference>
  717. </PreferenceScreen>
  718. <PreferenceScreen
  719. android:title="Support"
  720. android:key="pref_support">
  721. <nl.digitalthings.mebarista.EditTextPreferenceWithSummary
  722. android:id="@+id/pref_support_email"
  723. android:key="pref_support_email"
  724. android:defaultValue="support@yourdealer.com"
  725. android:title="Helpdesk email address"
  726. android:summary="Support tickets are sent to '%s' by default"
  727. />
  728. <Preference android:title="Support ticket" >
  729. <intent android:targetPackage="nl.digitalthings.mebarista"
  730. android:targetClass="nl.digitalthings.mebarista.MainActivity"
  731. android:data="supportticket" />
  732. </Preference>
  733. <Preference android:title="Credits and Licenses" >
  734. <intent
  735. android:action="android.intent.action.VIEW"
  736. android:data="http://www.mecoffee.nl/mebarista/credits/"
  737. />
  738. </Preference>
  739. <Preference android:title="Help" >
  740. <intent
  741. android:action="android.intent.action.VIEW"
  742. android:data="http://www.mecoffee.nl/mebarista/help/support/"
  743. />
  744. </Preference>
  745. </PreferenceScreen>
  746. </PreferenceScreen>