TinyForest system front-end written with ReactJS
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.

133 lines
3.4 KiB

  1. {
  2. "id": "Valkosipuli1",
  3. "type": "mountainplant",
  4. "description": "Desc: Valkosibable",
  5. "imagefile": "public/Photos/valkosipuli1.jpeg",
  6. "logfile_output": "/path/to/plant/log/file.log",
  7. "sensor": {
  8. "waterpump_1": {
  9. "pin": 23,
  10. "pindirection": "out",
  11. "friendly_name": "Water pump (1)"
  12. },
  13. "nutrientpump_1": {
  14. "pin": 24,
  15. "pindirection": "out",
  16. "friendly_name": "Nutrient pump (1)"
  17. },
  18. "lightbulb_1": {
  19. "pin": 18,
  20. "pindirection": "out",
  21. "friendly_name": "Light bulb (1)"
  22. },
  23. "moisturedetect_1": {
  24. "pin": 16,
  25. "pindirection": "in",
  26. "friendly_name": "Moisture sensor (1)",
  27. "data": {
  28. "type": "pindata",
  29. "path": "",
  30. "parser": ""
  31. }
  32. },
  33. "aciddetect_1": {
  34. "pin": 26,
  35. "pindirection": "in",
  36. "friendly_name": "pH sensor (1)",
  37. "data": {
  38. "type": "file",
  39. "path": "/path/to/raw/device/data",
  40. "parser": "name-of-internal-python-parser-function"
  41. }
  42. },
  43. "tempdetect_1": {
  44. "friendly_name": "Temperature sensor (1)"
  45. },
  46. "lightdetect_1": {
  47. "pin": 8,
  48. "pindirection": "in",
  49. "friendly_name": "Light detection sensor (1)",
  50. "data": {
  51. "type": "file",
  52. "path": "/path/to/raw/device/data",
  53. "parser": "name-of-internal-python-parser-function"
  54. }
  55. }
  56. },
  57. "feedplant": {
  58. "light": {
  59. "time": {
  60. "dates": ["mon, tue, wed, thu, fri, sat, sun"],
  61. "clock": ["06.30-12.00","14.00-19.00"],
  62. "clock_reverserange": false
  63. },
  64. "sensors": [ {
  65. "trigger_sensor": {
  66. "name": "lightdetect_1",
  67. "trigger_min": 5,
  68. "trigger_max": 10
  69. },
  70. "activate_sensor": {
  71. "name": "lightbulb_1",
  72. "ignoretrigger": false,
  73. "ignoredates": false,
  74. "ignoreclock": false,
  75. "minkeepalivetime": 5,
  76. "maxkeepalivetime": 0
  77. }
  78. } ]
  79. },
  80. "nutrient": {
  81. "time": {
  82. "dates": ["mon, tue, wed, thu, fri, sat, sun"],
  83. "clock": ["00.00-23.59"],
  84. "clock_reverserange": false
  85. },
  86. "sensors": [ {
  87. "trigger_sensor": {
  88. "name": "aciddetect_1",
  89. "trigger_min": 0.9,
  90. "trigger_max": 1.6
  91. },
  92. "activate_sensor": {
  93. "name": "nutrientpump_1",
  94. "ignoretrigger": false,
  95. "ignoredates": false,
  96. "ignoreclo¿ck": false,
  97. "minkeepalivetime": 0.25,
  98. "maxkeepalivetime": 5
  99. }
  100. } ]
  101. },
  102. "moisture": {
  103. "time": {
  104. "dates": ["mon, tue, wed, thu, fri, sat, sun"],
  105. "clock": ["00.00-23.59"],
  106. "clock_reverserange": false
  107. },
  108. "sensors": [ {
  109. "trigger_sensor": {
  110. "name": "moisturedetect_1",
  111. "trigger_min": 0,
  112. "trigger_max": 1
  113. },
  114. "activate_sensor": {
  115. "name": "waterpump_1",
  116. "ignoretrigger": false,
  117. "ignoredates": false,
  118. "ignoreclock": false,
  119. "minkeepalivetime": 0.25,
  120. "maxkeepalivetime": 5
  121. }
  122. } ]
  123. },
  124. "temperature": {
  125. "format": "celcius",
  126. "baselinevalue": 22,
  127. "threshold": 4,
  128. "decimals": 3,
  129. "loglevel": 0
  130. }
  131. }
  132. }