def insert_rule(cls, filename, id_, rule, rulev): standard = 'UTC' if rule['rule'] == 'occur_regularly_UTC' else 'local' values = cls._compute_values(standard, rulev) label = cls._make_label( values['reference_start'], values['end_relative_time'], values['alarm_relative_time'], values['end_type'], values['alarm_type'], values['end_relative_number'], values['end_relative_unit'], values['alarm_relative_number'], values['alarm_relative_unit'], values['time_standard']) wxscheduler_api.insert_rule(filename, id_, rule, label)
def insert_rule(cls, filename, id_, rule, rulev): standard = 'UTC' if rule['rule'] == 'except_once_UTC' else 'local' values = cls._compute_values(standard, rulev) label = cls._make_label(values['start_unix_time'], values['end_unix_time'], values['inclusive'], values['end_type'], values['end_relative_number'], values['end_relative_unit'], values['time_standard']) wxscheduler_api.insert_rule(filename, id_, rule, label)
def insert_rule(cls, filename, id_, rule, rulev): standard = 'UTC' if rule['rule'] == 'occur_monthly_number_direct_UTC' \ else 'local' values = cls._compute_values(standard, rulev) label = cls._make_label( values['selected_months'], values['start_day'], values['start_hour'], values['start_minute'], values['end_hour'], values['end_minute'], values['alarm_hour'], values['alarm_minute'], values['end_relative_number'], values['end_relative_unit'], values['alarm_relative_number'], values['alarm_relative_unit'], values['end_type'], values['alarm_type'], values['end_next_day'], values['alarm_previous_day'], values['time_standard']) wxscheduler_api.insert_rule(filename, id_, rule, label)
def insert_rule(cls, filename, id_, rule, rulev): standard = 'UTC' if rule['rule'] == 'occur_regularly_UTC' else 'local' values = cls._compute_values(standard, rulev) label = cls._make_label(values['reference_start'], values['end_relative_time'], values['alarm_relative_time'], values['end_type'], values['alarm_type'], values['end_relative_number'], values['end_relative_unit'], values['alarm_relative_number'], values['alarm_relative_unit'], values['time_standard']) wxscheduler_api.insert_rule(filename, id_, rule, label)
def insert_rule(cls, filename, id_, rule, rulev): standard = "UTC" if rule["rule"] == "occur_regularly_UTC" else "local" values = cls._compute_values(standard, rulev) label = cls._make_label( values["reference_start"], values["end_relative_time"], values["alarm_relative_time"], values["end_type"], values["alarm_type"], values["end_relative_number"], values["end_relative_unit"], values["alarm_relative_number"], values["alarm_relative_unit"], values["time_standard"], ) wxscheduler_api.insert_rule(filename, id_, rule, label)
def insert_rule(cls, filename, id_, rule, rulev): standard = 'UTC' if rule['rule'] == 'occur_regularly_UTC' else 'local' values = cls._compute_values(standard, rulev) label = cls._make_label(values['start_weekday'], values['start_hour'], values['start_minute'], values['end_hour'], values['end_minute'], values['alarm_hour'], values['alarm_minute'], values['end_relative_number'], values['end_relative_unit'], values['alarm_relative_number'], values['alarm_relative_unit'], values['end_type'], values['alarm_type'], values['end_next_day'], values['alarm_previous_day'], values['time_standard']) wxscheduler_api.insert_rule(filename, id_, rule, label)
def insert_rule(cls, filename, id_, rule, rulev): standard = "UTC" if rule["rule"] == "occur_monthly_number_direct_UTC" else "local" values = cls._compute_values(standard, rulev) label = cls._make_label( values["start_day"], values["start_hour"], values["start_minute"], values["end_hour"], values["end_minute"], values["alarm_hour"], values["alarm_minute"], values["end_relative_number"], values["end_relative_unit"], values["alarm_relative_number"], values["alarm_relative_unit"], values["end_type"], values["alarm_type"], values["end_next_day"], values["alarm_previous_day"], values["time_standard"], ) wxscheduler_api.insert_rule(filename, id_, rule, label)