Set Drink Water Reminder

Menu: DrinkWaterReminder 【setNoReminderOnDrinkReminder,setDrinkWaterAddNotifyFlag】

Flutter Example:

/// Set drink water reminder event number
setDrinkWaterRemind(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.app_set_drink_water_reminder),

/// Set drink water reminder
libManager.send(evt: CmdEvtType.setDrinkWaterRemind, json: jsonEncode(json));

JSON fields sent by the App:

Field Name Field Type Field Description
on_off int Switch
0: Off
1: On
start_hour int Start time
Hour
start_minute int Start time
Minute
end_hour int End time
Hour
end_minute int End time
Minute
repeat int Repeat
bit0: Invalid
(bit1 - bit7): For Monday to Sunday, value 0 not repeat, value 1 repeat
interval int Reminder interval
in minutes
notify_flag int Notification type
0: Invalid
1: Allow notification
2: Silent notification
3: Notification off
Need to open firmware table support setDrinkWaterAddNotifyFlag
do_not_disturb_on_off int Do not disturb switch
00: Off
01: On
Need to open firmware table support setNoReminderOnDrinkReminder
no_disturb_start_hour int Do not disturb start time
Hour
Need to open firmware table support setNoReminderOnDrinkReminder
no_disturb_start_minute int Do not disturb start time
Minute
Need to open firmware table support setNoReminderOnDrinkReminder
no_disturb_end_hour int Do not disturb end time
Hour
Need to open firmware table support setNoReminderOnDrinkReminder
no_disturb_end_minute int Do not disturb end time
Minute
Need to open firmware table support setNoReminderOnDrinkReminder

Example:

{
   "on_off":1,
   "start_hour":18,
   "start_minute":7,
   "end_hour":23,
   "end_minute":12,
   "repeat":127,
   "interval":20,
   "notify_flag":1,
   "do_not_disturb_on_off":1,
   "no_disturb_start_hour":9,
   "no_disturb_start_minute":0,
   "no_disturb_end_hour":12,
   "no_disturb_end_minute":0
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2023-10-24 16:05:53

results matching ""

    No results matching ""