123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- /*
- * workflow_default.c
- *
- * Copyright (c) 2023 Thomas Buck (thomas@xythobuz.de)
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * See <http://www.gnu.org/licenses/>.
- */
-
- #include "config.h"
- #include "workflow.h"
-
- #define NOTIFY \
- { .op = OP_WAIT_TIME, .val = 1000 }, \
- { .op = OP_PUMP_TIME, .val = 1000 }
-
- #define NOTIFICATIONS NOTIFY, NOTIFY
- #define NOTIFICATIONS_LENGTH (2 * 2)
-
- const uint16_t wf_default_count = 5;
-
- const struct workflow wf_default_data[] = {
- {
- .name = "Default",
- .author = "xythobuz",
- .steps = {
- { .op = OP_WAIT_TEMPERATURE, .val = 1850 },
- { .op = OP_WAIT_TIME, .val = 10000 },
- { .op = OP_PUMP_TIME, .val = 5000 },
-
- { .op = OP_WAIT_TEMPERATURE, .val = 1950 },
- { .op = OP_WAIT_TIME, .val = 5000 },
- { .op = OP_PUMP_TIME, .val = 20000 },
-
- { .op = OP_WAIT_TEMPERATURE, .val = 2050 },
- { .op = OP_WAIT_TIME, .val = 5000 },
- { .op = OP_PUMP_TIME, .val = 20000 },
-
- NOTIFICATIONS,
-
- { .op = OP_SET_TEMPERATURE, .val = 1900 },
- },
- .count = 10 + NOTIFICATIONS_LENGTH,
- }, {
- .name = "XXL",
- .author = "xythobuz",
- .steps = {
- { .op = OP_WAIT_TEMPERATURE, .val = 1850 },
- { .op = OP_WAIT_TIME, .val = 10000 },
- { .op = OP_PUMP_TIME, .val = 8000 },
-
- { .op = OP_WAIT_TEMPERATURE, .val = 1950 },
- { .op = OP_WAIT_TIME, .val = 5000 },
- { .op = OP_PUMP_TIME, .val = 25000 },
-
- { .op = OP_WAIT_TEMPERATURE, .val = 2050 },
- { .op = OP_WAIT_TIME, .val = 5000 },
- { .op = OP_PUMP_TIME, .val = 25000 },
-
- NOTIFICATIONS,
-
- { .op = OP_SET_TEMPERATURE, .val = 1900 },
- },
- .count = 10 + NOTIFICATIONS_LENGTH,
- }, {
- .name = "Vorbi",
- .author = "Rinor",
- .steps = {
- { .op = OP_WAIT_TEMPERATURE, .val = 1760 },
- { .op = OP_WAIT_TIME, .val = 10000 },
- { .op = OP_PUMP_TIME, .val = 6000 },
-
- { .op = OP_WAIT_TEMPERATURE, .val = 1870 },
- { .op = OP_WAIT_TIME, .val = 5000 },
- { .op = OP_PUMP_TIME, .val = 10000 },
-
- { .op = OP_WAIT_TEMPERATURE, .val = 2040 },
- { .op = OP_WAIT_TIME, .val = 3000 },
- { .op = OP_PUMP_TIME, .val = 10000 },
-
- { .op = OP_WAIT_TEMPERATURE, .val = 2170 },
- { .op = OP_WAIT_TIME, .val = 5000 },
- { .op = OP_PUMP_TIME, .val = 10000 },
- },
- .count = 12,
- }, {
- .name = "Relaxo",
- .author = "xythobuz",
- .steps = {
- { .op = OP_WAIT_TEMPERATURE, .val = 1750 },
- { .op = OP_WAIT_TIME, .val = 10000 },
- { .op = OP_PUMP_TIME, .val = 5000 },
-
- { .op = OP_WAIT_TEMPERATURE, .val = 1850 },
- { .op = OP_WAIT_TIME, .val = 5000 },
- { .op = OP_PUMP_TIME, .val = 20000 },
-
- { .op = OP_WAIT_TEMPERATURE, .val = 1950 },
- { .op = OP_WAIT_TIME, .val = 5000 },
- { .op = OP_PUMP_TIME, .val = 20000 },
-
- NOTIFICATIONS,
-
- { .op = OP_SET_TEMPERATURE, .val = 1900 },
- },
- .count = 10 + NOTIFICATIONS_LENGTH,
- }, {
- .name = "Hotty",
- .author = "xythobuz",
- .steps = {
- { .op = OP_WAIT_TEMPERATURE, .val = 1900 },
- { .op = OP_WAIT_TIME, .val = 10000 },
- { .op = OP_PUMP_TIME, .val = 5000 },
-
- { .op = OP_WAIT_TEMPERATURE, .val = 2050 },
- { .op = OP_WAIT_TIME, .val = 5000 },
- { .op = OP_PUMP_TIME, .val = 20000 },
-
- { .op = OP_WAIT_TEMPERATURE, .val = 2200 },
- { .op = OP_WAIT_TIME, .val = 5000 },
- { .op = OP_PUMP_TIME, .val = 20000 },
-
- NOTIFICATIONS,
-
- { .op = OP_SET_TEMPERATURE, .val = 1900 },
- },
- .count = 10 + NOTIFICATIONS_LENGTH,
- },
- };
|