S&B Volcano vaporizer remote control with Pi Pico W
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

workflow_default.c 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /*
  2. * workflow_default.c
  3. *
  4. * Copyright (c) 2023 Thomas Buck (thomas@xythobuz.de)
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * See <http://www.gnu.org/licenses/>.
  17. */
  18. #include "config.h"
  19. #include "workflow.h"
  20. #define NOTIFY \
  21. { .op = OP_WAIT_TIME, .val = 1000 }, \
  22. { .op = OP_PUMP_TIME, .val = 1000 }
  23. #define NOTIFICATIONS NOTIFY, NOTIFY
  24. #define NOTIFICATIONS_LENGTH (2 * 2)
  25. const uint16_t wf_default_count = 5;
  26. const struct workflow wf_default_data[] = {
  27. {
  28. .name = "Default",
  29. .author = "xythobuz",
  30. .steps = {
  31. { .op = OP_WAIT_TEMPERATURE, .val = 1850 },
  32. { .op = OP_WAIT_TIME, .val = 10000 },
  33. { .op = OP_PUMP_TIME, .val = 5000 },
  34. { .op = OP_WAIT_TEMPERATURE, .val = 1950 },
  35. { .op = OP_WAIT_TIME, .val = 5000 },
  36. { .op = OP_PUMP_TIME, .val = 20000 },
  37. { .op = OP_WAIT_TEMPERATURE, .val = 2050 },
  38. { .op = OP_WAIT_TIME, .val = 5000 },
  39. { .op = OP_PUMP_TIME, .val = 20000 },
  40. NOTIFICATIONS,
  41. { .op = OP_SET_TEMPERATURE, .val = 1900 },
  42. },
  43. .count = 10 + NOTIFICATIONS_LENGTH,
  44. }, {
  45. .name = "XXL",
  46. .author = "xythobuz",
  47. .steps = {
  48. { .op = OP_WAIT_TEMPERATURE, .val = 1850 },
  49. { .op = OP_WAIT_TIME, .val = 10000 },
  50. { .op = OP_PUMP_TIME, .val = 8000 },
  51. { .op = OP_WAIT_TEMPERATURE, .val = 1950 },
  52. { .op = OP_WAIT_TIME, .val = 5000 },
  53. { .op = OP_PUMP_TIME, .val = 25000 },
  54. { .op = OP_WAIT_TEMPERATURE, .val = 2050 },
  55. { .op = OP_WAIT_TIME, .val = 5000 },
  56. { .op = OP_PUMP_TIME, .val = 25000 },
  57. NOTIFICATIONS,
  58. { .op = OP_SET_TEMPERATURE, .val = 1900 },
  59. },
  60. .count = 10 + NOTIFICATIONS_LENGTH,
  61. }, {
  62. .name = "Vorbi",
  63. .author = "Rinor",
  64. .steps = {
  65. { .op = OP_WAIT_TEMPERATURE, .val = 1760 },
  66. { .op = OP_WAIT_TIME, .val = 10000 },
  67. { .op = OP_PUMP_TIME, .val = 6000 },
  68. { .op = OP_WAIT_TEMPERATURE, .val = 1870 },
  69. { .op = OP_WAIT_TIME, .val = 5000 },
  70. { .op = OP_PUMP_TIME, .val = 10000 },
  71. { .op = OP_WAIT_TEMPERATURE, .val = 2040 },
  72. { .op = OP_WAIT_TIME, .val = 3000 },
  73. { .op = OP_PUMP_TIME, .val = 10000 },
  74. { .op = OP_WAIT_TEMPERATURE, .val = 2170 },
  75. { .op = OP_WAIT_TIME, .val = 5000 },
  76. { .op = OP_PUMP_TIME, .val = 10000 },
  77. },
  78. .count = 12,
  79. }, {
  80. .name = "Relaxo",
  81. .author = "xythobuz",
  82. .steps = {
  83. { .op = OP_WAIT_TEMPERATURE, .val = 1750 },
  84. { .op = OP_WAIT_TIME, .val = 10000 },
  85. { .op = OP_PUMP_TIME, .val = 5000 },
  86. { .op = OP_WAIT_TEMPERATURE, .val = 1850 },
  87. { .op = OP_WAIT_TIME, .val = 5000 },
  88. { .op = OP_PUMP_TIME, .val = 20000 },
  89. { .op = OP_WAIT_TEMPERATURE, .val = 1950 },
  90. { .op = OP_WAIT_TIME, .val = 5000 },
  91. { .op = OP_PUMP_TIME, .val = 20000 },
  92. NOTIFICATIONS,
  93. { .op = OP_SET_TEMPERATURE, .val = 1900 },
  94. },
  95. .count = 10 + NOTIFICATIONS_LENGTH,
  96. }, {
  97. .name = "Hotty",
  98. .author = "xythobuz",
  99. .steps = {
  100. { .op = OP_WAIT_TEMPERATURE, .val = 1900 },
  101. { .op = OP_WAIT_TIME, .val = 10000 },
  102. { .op = OP_PUMP_TIME, .val = 5000 },
  103. { .op = OP_WAIT_TEMPERATURE, .val = 2050 },
  104. { .op = OP_WAIT_TIME, .val = 5000 },
  105. { .op = OP_PUMP_TIME, .val = 20000 },
  106. { .op = OP_WAIT_TEMPERATURE, .val = 2200 },
  107. { .op = OP_WAIT_TIME, .val = 5000 },
  108. { .op = OP_PUMP_TIME, .val = 20000 },
  109. NOTIFICATIONS,
  110. { .op = OP_SET_TEMPERATURE, .val = 1900 },
  111. },
  112. .count = 10 + NOTIFICATIONS_LENGTH,
  113. },
  114. };