定时开关机优化,支持三种模式
This commit is contained in:
@@ -3,4 +3,15 @@
|
||||
<string name="title_activity_building_dashboard">Building Dashboard</string>
|
||||
<string name="title_activity_settings">Settings</string>
|
||||
<string name="url_end_point_default_value" translatable="false">/</string>
|
||||
|
||||
<string-array name="power_control_mode_entries">
|
||||
<item>不控制</item>
|
||||
<item>根据服务器配置</item>
|
||||
<item>本地控制</item>
|
||||
</string-array>
|
||||
<string-array name="power_control_mode_values">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
@@ -29,6 +29,25 @@
|
||||
app:title="APP 启动时重启电源插座"
|
||||
app:summary="APP 启动时先关闭电源,5秒后再打开电源"
|
||||
app:defaultValue="true" />
|
||||
<ListPreference
|
||||
app:key="k_power_control_mode"
|
||||
app:title="电源开关方式"
|
||||
app:entries="@array/power_control_mode_entries"
|
||||
app:entryValues="@array/power_control_mode_values"
|
||||
app:defaultValue="1"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<EditTextPreference
|
||||
app:key="k_power_on_time"
|
||||
app:title="开电源时间"
|
||||
app:defaultValue="07:30"
|
||||
app:summary="设置自动开电源的时间,格式:HH:mm"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<EditTextPreference
|
||||
app:key="k_power_off_time"
|
||||
app:title="关电源时间"
|
||||
app:defaultValue="20:30"
|
||||
app:summary="设置自动关电源的时间,格式:HH:mm"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<Preference
|
||||
app:key="k_clear_device"
|
||||
app:title="串口设备路径"
|
||||
|
||||
Reference in New Issue
Block a user