Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
160
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2. {
  3. "id": "646f35fa.2257bc",
  4. "type": "tab",
  5. "label": "Day8_UDPadc",
  6. "disabled": false,
  7. "info": ""
  8. },
  9. {
  10. "id": "cf022a51.4b462",
  11. "type": "udp in",
  12. "z": "646f35fa.2257bc",
  13. "name": "",
  14. "iface": "",
  15. "port": "55056",
  16. "ipv": "udp4",
  17. "multicast": "false",
  18. "group": "",
  19. "datatype": "utf8",
  20. "x": 80,
  21. "y": 40,
  22. "wires": [
  23. [
  24. "c26bde43.49f9c8"
  25. ]
  26. ]
  27. },
  28. {
  29. "id": "15a5801a.c8197",
  30. "type": "switch",
  31. "z": "646f35fa.2257bc",
  32. "name": "",
  33. "property": "payload.cmd",
  34. "propertyType": "msg",
  35. "rules": [
  36. {
  37. "t": "eq",
  38. "v": "adc",
  39. "vt": "str"
  40. },
  41. {
  42. "t": "eq",
  43. "v": "trigger",
  44. "vt": "str"
  45. }
  46. ],
  47. "checkall": "true",
  48. "repair": false,
  49. "outputs": 2,
  50. "x": 330,
  51. "y": 40,
  52. "wires": [
  53. [
  54. "5de40759.b1b24"
  55. ],
  56. [
  57. "df63fe54.ae01c8",
  58. "fd3353ba.e0936"
  59. ]
  60. ]
  61. },
  62. {
  63. "id": "51a50b88.ffc204",
  64. "type": "udp out",
  65. "z": "646f35fa.2257bc",
  66. "name": "",
  67. "addr": "192.168.43.211",
  68. "iface": "",
  69. "port": "55056",
  70. "ipv": "udp4",
  71. "outport": "",
  72. "base64": false,
  73. "multicast": "false",
  74. "x": 760,
  75. "y": 100,
  76. "wires": []
  77. },
  78. {
  79. "id": "8fccbe6f.3d758",
  80. "type": "ui_button",
  81. "z": "646f35fa.2257bc",
  82. "name": "",
  83. "group": "efd95665.2b8028",
  84. "order": 0,
  85. "width": 0,
  86. "height": 0,
  87. "passthru": false,
  88. "label": "Staircase Trigger",
  89. "tooltip": "",
  90. "color": "",
  91. "bgcolor": "",
  92. "icon": "",
  93. "payload": "{\"cmd\":\"trigger\"}",
  94. "payloadType": "json",
  95. "topic": "",
  96. "x": 110,
  97. "y": 100,
  98. "wires": [
  99. [
  100. "df63fe54.ae01c8",
  101. "fd3353ba.e0936"
  102. ]
  103. ]
  104. },
  105. {
  106. "id": "c26bde43.49f9c8",
  107. "type": "json",
  108. "z": "646f35fa.2257bc",
  109. "name": "",
  110. "property": "payload",
  111. "action": "",
  112. "pretty": false,
  113. "x": 210,
  114. "y": 40,
  115. "wires": [
  116. [
  117. "15a5801a.c8197"
  118. ]
  119. ]
  120. },
  121. {
  122. "id": "22568727.01d51",
  123. "type": "template",
  124. "z": "646f35fa.2257bc",
  125. "name": "Get Values",
  126. "field": "payload",
  127. "fieldType": "msg",
  128. "format": "handlebars",
  129. "syntax": "mustache",
  130. "template": "{{payload.value}}",
  131. "output": "str",
  132. "x": 650,
  133. "y": 40,
  134. "wires": [
  135. [
  136. "812fd013.05827"
  137. ]
  138. ]
  139. },
  140. {
  141. "id": "812fd013.05827",
  142. "type": "ui_gauge",
  143. "z": "646f35fa.2257bc",
  144. "name": "",
  145. "group": "efd95665.2b8028",
  146. "order": 0,
  147. "width": 0,
  148. "height": 0,
  149. "gtype": "gage",
  150. "title": "ADC Values",
  151. "label": "RAW",
  152. "format": "{{value}}",
  153. "min": 0,
  154. "max": "4096",
  155. "colors": [
  156. "#00b500",
  157. "#e6e600",
  158. "#ca3838"
  159. ],
  160. "seg1": "1500",
  161. "seg2": "3000",
  162. "x": 810,
  163. "y": 40,
  164. "wires": []
  165. },
  166. {
  167. "id": "4cebb362.1153fc",
  168. "type": "delay",
  169. "z": "646f35fa.2257bc",
  170. "name": "Delay delay ms",
  171. "pauseType": "delayv",
  172. "timeout": "4",
  173. "timeoutUnits": "seconds",
  174. "rate": "1",
  175. "nbRateUnits": "1",
  176. "rateUnits": "second",
  177. "randomFirst": "1",
  178. "randomLast": "5",
  179. "randomUnits": "seconds",
  180. "drop": false,
  181. "x": 520,
  182. "y": 200,
  183. "wires": [
  184. [
  185. "6e5787fb.b7ee1"
  186. ]
  187. ]
  188. },
  189. {
  190. "id": "6e5787fb.b7ee1",
  191. "type": "change",
  192. "z": "646f35fa.2257bc",
  193. "name": "setze cmd=light_off",
  194. "rules": [
  195. {
  196. "t": "set",
  197. "p": "payload.cmd",
  198. "pt": "msg",
  199. "to": "light_off",
  200. "tot": "str"
  201. }
  202. ],
  203. "action": "",
  204. "property": "",
  205. "from": "",
  206. "to": "",
  207. "reg": false,
  208. "x": 370,
  209. "y": 140,
  210. "wires": [
  211. [
  212. "2ee9c43c.225c74"
  213. ]
  214. ]
  215. },
  216. {
  217. "id": "df63fe54.ae01c8",
  218. "type": "change",
  219. "z": "646f35fa.2257bc",
  220. "name": "setze cmd=light_on",
  221. "rules": [
  222. {
  223. "t": "set",
  224. "p": "payload.cmd",
  225. "pt": "msg",
  226. "to": "light_on",
  227. "tot": "str"
  228. }
  229. ],
  230. "action": "",
  231. "property": "",
  232. "from": "",
  233. "to": "",
  234. "reg": false,
  235. "x": 370,
  236. "y": 100,
  237. "wires": [
  238. [
  239. "2ee9c43c.225c74"
  240. ]
  241. ]
  242. },
  243. {
  244. "id": "2ee9c43c.225c74",
  245. "type": "json",
  246. "z": "646f35fa.2257bc",
  247. "name": "",
  248. "property": "payload",
  249. "action": "",
  250. "pretty": false,
  251. "x": 570,
  252. "y": 100,
  253. "wires": [
  254. [
  255. "51a50b88.ffc204"
  256. ]
  257. ]
  258. },
  259. {
  260. "id": "fd3353ba.e0936",
  261. "type": "json",
  262. "z": "646f35fa.2257bc",
  263. "name": "",
  264. "property": "payload",
  265. "action": "",
  266. "pretty": false,
  267. "x": 90,
  268. "y": 200,
  269. "wires": [
  270. [
  271. "f8c8aac.c35abd8"
  272. ]
  273. ]
  274. },
  275. {
  276. "id": "f15d30c4.9239d",
  277. "type": "json",
  278. "z": "646f35fa.2257bc",
  279. "name": "",
  280. "property": "payload",
  281. "action": "",
  282. "pretty": false,
  283. "x": 370,
  284. "y": 200,
  285. "wires": [
  286. [
  287. "4cebb362.1153fc"
  288. ]
  289. ]
  290. },
  291. {
  292. "id": "f8c8aac.c35abd8",
  293. "type": "change",
  294. "z": "646f35fa.2257bc",
  295. "name": "retrieve delay",
  296. "rules": [
  297. {
  298. "t": "set",
  299. "p": "delay",
  300. "pt": "msg",
  301. "to": "delay",
  302. "tot": "global"
  303. }
  304. ],
  305. "action": "",
  306. "property": "",
  307. "from": "",
  308. "to": "",
  309. "reg": false,
  310. "x": 230,
  311. "y": 200,
  312. "wires": [
  313. [
  314. "f15d30c4.9239d"
  315. ]
  316. ]
  317. },
  318. {
  319. "id": "5de40759.b1b24",
  320. "type": "function",
  321. "z": "646f35fa.2257bc",
  322. "name": "store delay",
  323. "func": "global.set('delay',msg.payload.value);\nreturn msg;",
  324. "outputs": 1,
  325. "noerr": 0,
  326. "x": 490,
  327. "y": 40,
  328. "wires": [
  329. [
  330. "22568727.01d51"
  331. ]
  332. ]
  333. },
  334. {
  335. "id": "efd95665.2b8028",
  336. "type": "ui_group",
  337. "z": "",
  338. "name": "[Day 8] Staircase and ADC",
  339. "tab": "89b6cfa1.4c697",
  340. "order": 1,
  341. "disp": true,
  342. "width": "6",
  343. "collapse": false
  344. },
  345. {
  346. "id": "89b6cfa1.4c697",
  347. "type": "ui_tab",
  348. "z": "",
  349. "name": "Day8",
  350. "icon": "dashboard",
  351. "order": 4
  352. }
  353. ]
Advertisement
RAW Paste Data Copied
Advertisement