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.

135 lines
3.7 KiB

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