config.json 2.8 KB

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