Smick_000_console_v6
Smick console subflows
[{"id":"1e5cebf8.63b0e4","type":"subflow","name":"Smick status","info":"Detect Smick connection status.","in":[{"x":320,"y":460,"wires":[{"id":"6684eb9d.cd94d4"}]}],"out":[{"x":760,"y":400,"wires":[{"id":"9ec3d763.d8a078","port":0}]}]},{"id":"98a8c7ee.c3e178","type":"ui_text","z":"1e5cebf8.63b0e4","group":"245023ac.a36b5c","order":0,"width":0,"height":0,"name":"","label":"status: ","format":"{{msg.payload}}","layout":"row-center","x":830,"y":460,"wires":[]},{"id":"6684eb9d.cd94d4","type":"switch","z":"1e5cebf8.63b0e4","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"DISC","vt":"str"},{"t":"else"}],"checkall":"true","outputs":2,"x":450,"y":460,"wires":[["2958a92e.904256","9ec3d763.d8a078"],["837ced7a.3664c"]]},{"id":"2958a92e.904256","type":"change","z":"1e5cebf8.63b0e4","name":"disconnected","rules":[{"t":"set","p":"payload","pt":"msg","to":"disconnected","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":460,"wires":[["98a8c7ee.c3e178"]]},{"id":"837ced7a.3664c","type":"change","z":"1e5cebf8.63b0e4","name":"connected","rules":[{"t":"set","p":"payload","pt":"msg","to":"connected","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":520,"wires":[["98a8c7ee.c3e178"]]},{"id":"9ec3d763.d8a078","type":"change","z":"1e5cebf8.63b0e4","name":"PING","rules":[{"t":"set","p":"payload","pt":"msg","to":"PING","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":400,"wires":[[]]},{"id":"245023ac.a36b5c","type":"ui_group","z":"","name":"console","tab":"cabede28.f03c7","order":1,"disp":true,"width":"6"},{"id":"cabede28.f03c7","type":"ui_tab","z":"","name":"Console","icon":"dashboard","order":1},{"id":"bab24c3f.657cd","type":"subflow","name":"Smick","info":"Receive command responses or events from Smick.","in":[],"out":[{"x":660,"y":180,"wires":[{"id":"4ade3be9.032e54","port":0}]}]},{"id":"8dc7c0f2.464e3","type":"ui_text","z":"bab24c3f.657cd","group":"245023ac.a36b5c","order":2,"width":"0","height":"0","name":"","label":"response/event","format":"{{msg.payload}}","layout":"col-center","x":460,"y":240,"wires":[]},{"id":"4ade3be9.032e54","type":"mqtt in","z":"bab24c3f.657cd","name":"mqtt res/eve","topic":"borot/feeds/O3300460880","qos":"0","broker":"f1f7b732.115e58","x":210,"y":180,"wires":[["8dc7c0f2.464e3","261715f8.531c3a"]]},{"id":"261715f8.531c3a","type":"debug","z":"bab24c3f.657cd","name":"response/event","active":true,"console":"false","complete":"payload","x":460,"y":120,"wires":[]},{"id":"245023ac.a36b5c","type":"ui_group","z":"","name":"console","tab":"cabede28.f03c7","order":1,"disp":true,"width":"6"},{"id":"f1f7b732.115e58","type":"mqtt-broker","z":"","broker":"io.adafruit.com","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"300","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"cabede28.f03c7","type":"ui_tab","z":"","name":"Console","icon":"dashboard","order":1},{"id":"7f26cf1d.c50a1","type":"subflow","name":"Smick","info":"Send commands to Smick.","in":[{"x":160,"y":120,"wires":[{"id":"78310b18.fcebe4"}]}],"out":[]},{"id":"98f5a073.8e6b6","type":"mqtt out","z":"7f26cf1d.c50a1","name":"smick cmd","topic":"borot/feeds/I3300460880","qos":"0","retain":"true","broker":"f1f7b732.115e58","x":610,"y":160,"wires":[]},{"id":"67664aa9.d45a74","type":"debug","z":"7f26cf1d.c50a1","name":"command","active":true,"console":"false","complete":"payload","x":600,"y":80,"wires":[]},{"id":"78310b18.fcebe4","type":"ui_text_input","z":"7f26cf1d.c50a1","name":"","label":"command","group":"245023ac.a36b5c","order":1,"width":"0","height":"0","passthru":true,"mode":"text","delay":"0","topic":"","x":360,"y":120,"wires":[["98f5a073.8e6b6","67664aa9.d45a74"]]},{"id":"64cfa6ca.f24ee8","type":"comment","z":"7f26cf1d.c50a1","name":"Description","info":"Smick_001_console_v4\n_______________________________________________________________________________\nPackage : Smick v.1\nModule : console\nAuthor : Curci\nLicence : (CC) BY-NC-SA\n\nThis work is licensed under a Creative Commons \nAttribution-NonCommercial-ShareAlike \n4.0 International License.\n\nHistory\n\nDate Author Description\n2016.12.26 Curci genesis\n_______________________________________________________________________________\n\nDescription\n\nQuesto flusso costruisce un cruscotto console per interagire con smick tramite feed mqtt.\nSi possono inviare comandi sul feed di input di smick e ricevere risposte o eventi dal feed di output di smick.\nContiene inoltre un nodo link di input per consentire ad altri flussi l'invio di comandi e un nodo link di output per smistare risposte/eventi ricevuti ad altri flussi.\nInfine i messaggi inviati e le risposte / eventi ricevuti sono elencati su debug tab mediante nodi debug.\n\n\nThis flow builds a dashboard console to interact with Smick through MQTT feed.\nYou can send commands on Smick input feed and receive answers or events from Smick output feed.\nIt also contains an input node link to allow other flows sending commands and an output node link to direct responses / events received to other flows.\nFinally sent messages and replies / received events are listed on debug tab using debug nodes.\n\n_______________________________________________________________________________\n\nBill Of Material\n\nHardware:\n\n 1 Human internet terminal (PC, tablet or smartphone) connected to the internet\n 1 Smick Wi-Fi connected to the internet\n\nHW Connections:\n\n None.\n\nFlow Connections:\n\n None\n\nAccount:\n\n Wi-Fi router\n MQTT broker\n FRED\n","x":140,"y":40,"wires":[]},{"id":"f1f7b732.115e58","type":"mqtt-broker","z":"","broker":"io.adafruit.com","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"300","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"245023ac.a36b5c","type":"ui_group","z":"","name":"console","tab":"cabede28.f03c7","order":1,"disp":true,"width":"6"},{"id":"cabede28.f03c7","type":"ui_tab","z":"","name":"Console","icon":"dashboard","order":1},{"id":"7cafe723.50d538","type":"subflow:7f26cf1d.c50a1","z":"4913b9c6.f83e88","name":"","x":990,"y":260,"wires":[]},{"id":"742ac07a.4ed96","type":"subflow:bab24c3f.657cd","z":"4913b9c6.f83e88","name":"","x":290,"y":260,"wires":[["a79e5dbe.f3298"]]},{"id":"a79e5dbe.f3298","type":"subflow:1e5cebf8.63b0e4","z":"4913b9c6.f83e88","name":"","x":630,"y":260,"wires":[["7cafe723.50d538"]]}]