config.json 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. "app": {
  3. "name": "Getränkeautomat Feuerwehr Monitor",
  4. "timezone": "Europe/Berlin",
  5. "dashboard_refresh_seconds": 15,
  6. "default_from_email": "automat@med0.de",
  7. "base_path": "/automat"
  8. },
  9. "api": {
  10. "bearer_token": "demo-esp32-token"
  11. },
  12. "admin": {
  13. "username": "admin",
  14. "password_hash": "$2b$10$ZhLCvESv2BmGzGd185Je2.kNU3d9hxQzmSbR1gR5uKxBMC2hVL40m"
  15. },
  16. "alerts": {
  17. "webhooks": [
  18. {
  19. "label": "lager-webhook",
  20. "name": "Lager Webhook",
  21. "type": "generic",
  22. "url": "https://tool.medowar.de/webhook-debug/webhook.php?key=3c282522940cb045",
  23. "enabled": false,
  24. "headers": {
  25. "X-App-Token": "replace-me"
  26. }
  27. },
  28. {
  29. "label": "telegram-alerts",
  30. "name": "Telegram Alerts",
  31. "type": "telegram",
  32. "url": "https://api.telegram.org/bot<YOUR_BOT_TOKEN>/sendMessage",
  33. "enabled": false,
  34. "headers": [],
  35. "bot_token": "<YOUR_BOT_TOKEN>",
  36. "chat_id": "<YOUR_CHAT_ID>"
  37. }
  38. ],
  39. "emails": [
  40. {
  41. "label": "lager-team",
  42. "name": "Lager Team",
  43. "address": "lager@example.com",
  44. "enabled": true
  45. }
  46. ]
  47. },
  48. "machines": [
  49. {
  50. "id": "automat-lobby",
  51. "name": "Lobby Automat",
  52. "location": "Erdgeschoss",
  53. "slots": [
  54. {
  55. "sensor_id": "fach-a1",
  56. "label": "A1",
  57. "product_name": "Cola 0,5l",
  58. "full_distance_mm": 80,
  59. "empty_distance_mm": 360,
  60. "distance_per_unit": 40,
  61. "alert_below_units": 2
  62. },
  63. {
  64. "sensor_id": "fach-a2",
  65. "label": "A2",
  66. "product_name": "Wasser still",
  67. "full_distance_mm": 75,
  68. "empty_distance_mm": 355,
  69. "distance_per_unit": 35,
  70. "alert_below_units": 3
  71. }
  72. ]
  73. },
  74. {
  75. "id": "automat-kantine",
  76. "name": "Kantinen Automat",
  77. "location": "1. Stock",
  78. "slots": [
  79. {
  80. "sensor_id": "fach-b1",
  81. "label": "B1",
  82. "product_name": "Apfelschorle",
  83. "full_distance_mm": 90,
  84. "empty_distance_mm": 390,
  85. "distance_per_unit": 43,
  86. "alert_below_units": 2
  87. }
  88. ]
  89. }
  90. ]
  91. }