config.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. "app": {
  3. "name": "Getraenkeautomat Monitor",
  4. "timezone": "Europe/Berlin",
  5. "dashboard_refresh_seconds": 15,
  6. "default_from_email": "monitor@example.local"
  7. },
  8. "api": {
  9. "bearer_token": "demo-esp32-token"
  10. },
  11. "admin": {
  12. "username": "admin",
  13. "password_hash": "$2y$10$LEpUKAxrLjJ3NOWridmw0.1D5JxnKvNONi9IkU5y4e6fPvO85/0em"
  14. },
  15. "alerts": {
  16. "webhooks": [
  17. {
  18. "id": "lager-webhook",
  19. "name": "Lager Webhook",
  20. "url": "https://example.com/hooks/lager",
  21. "enabled": false,
  22. "headers": {
  23. "X-App-Token": "replace-me"
  24. }
  25. }
  26. ],
  27. "emails": [
  28. {
  29. "id": "lager-team",
  30. "name": "Lager Team",
  31. "address": "lager@example.com",
  32. "enabled": true
  33. }
  34. ]
  35. },
  36. "machines": [
  37. {
  38. "id": "automat-lobby",
  39. "name": "Lobby Automat",
  40. "location": "Erdgeschoss",
  41. "slots": [
  42. {
  43. "sensor_id": "fach-a1",
  44. "label": "A1",
  45. "product_name": "Cola 0,5l",
  46. "full_distance_mm": 80,
  47. "empty_distance_mm": 360,
  48. "distance_per_unit": 40,
  49. "alert_below_units": 2,
  50. "webhook_ids": [
  51. "lager-webhook"
  52. ],
  53. "email_ids": [
  54. "lager-team"
  55. ]
  56. },
  57. {
  58. "sensor_id": "fach-a2",
  59. "label": "A2",
  60. "product_name": "Wasser still",
  61. "full_distance_mm": 75,
  62. "empty_distance_mm": 355,
  63. "distance_per_unit": 35,
  64. "alert_below_units": 3,
  65. "webhook_ids": [],
  66. "email_ids": [
  67. "lager-team"
  68. ]
  69. }
  70. ]
  71. },
  72. {
  73. "id": "automat-kantine",
  74. "name": "Kantinen Automat",
  75. "location": "1. Stock",
  76. "slots": [
  77. {
  78. "sensor_id": "fach-b1",
  79. "label": "B1",
  80. "product_name": "Apfelschorle",
  81. "full_distance_mm": 90,
  82. "empty_distance_mm": 390,
  83. "distance_per_unit": 43,
  84. "alert_below_units": 2,
  85. "webhook_ids": [
  86. "lager-webhook"
  87. ],
  88. "email_ids": []
  89. }
  90. ]
  91. }
  92. ]
  93. }