Skip to content

Instantly share code, notes, and snippets.

@infosmick
Created December 29, 2016 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infosmick/31f5aab188929a597adad7d40ecb18ad to your computer and use it in GitHub Desktop.
Save infosmick/31f5aab188929a597adad7d40ecb18ad to your computer and use it in GitHub Desktop.
Smick_02_status

Status example

[
{
"id": "31e0a7cd.fa3838",
"type": "tab",
"label": "status"
},
{
"id": "429b7532.4537cc",
"type": "ui_text",
"z": "31e0a7cd.fa3838",
"group": "8557c687.af1ee8",
"order": 1,
"width": 0,
"height": 0,
"name": "",
"label": "",
"format": "{{msg.payload}}",
"layout": "row-center",
"x": 730,
"y": 200,
"wires": []
},
{
"id": "6a993042.d9618",
"type": "switch",
"z": "31e0a7cd.fa3838",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "DISC",
"vt": "str"
},
{
"t": "else"
}
],
"checkall": "true",
"outputs": 2,
"x": 350,
"y": 180,
"wires": [
[
"f02fa603.561938",
"48210721.75ecf8"
],
[
"d85aa277.4e1b6"
]
]
},
{
"id": "f02fa603.561938",
"type": "change",
"z": "31e0a7cd.fa3838",
"name": "PING",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "PING",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 530,
"y": 120,
"wires": [
[
"881b41f1.88da6"
]
]
},
{
"id": "593d4ddb.8b7894",
"type": "link in",
"z": "31e0a7cd.fa3838",
"name": "event",
"links": [
"ca2d688.4211598"
],
"x": 195,
"y": 180,
"wires": [
[
"6a993042.d9618"
]
]
},
{
"id": "881b41f1.88da6",
"type": "link out",
"z": "31e0a7cd.fa3838",
"name": "command",
"links": [
"1096456f.bfc93b"
],
"x": 915,
"y": 120,
"wires": []
},
{
"id": "48210721.75ecf8",
"type": "change",
"z": "31e0a7cd.fa3838",
"name": "disconnected",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "disconnected",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 550,
"y": 180,
"wires": [
[
"429b7532.4537cc"
]
]
},
{
"id": "d85aa277.4e1b6",
"type": "change",
"z": "31e0a7cd.fa3838",
"name": "connected",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "connected",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 550,
"y": 240,
"wires": [
[
"429b7532.4537cc"
]
]
},
{
"id": "f5d2f0c4.a111f",
"type": "comment",
"z": "31e0a7cd.fa3838",
"name": "Description",
"info": "Smick_02_status\n_______________________________________________________________________________\nPackage : Smick v.1\nModule : status\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\ntodo\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 console\n\nAccount:\n\n Wi-Fi router\n MQTT broker\n FRED\n",
"x": 140,
"y": 60,
"wires": []
},
{
"id": "772a2c1a.7cc8a4",
"type": "ui_button",
"z": "31e0a7cd.fa3838",
"name": "",
"group": "8557c687.af1ee8",
"order": 2,
"width": 0,
"height": 0,
"label": "reset",
"color": "",
"icon": "",
"payload": "RESET",
"payloadType": "str",
"topic": "",
"x": 730,
"y": 260,
"wires": [
[
"881b41f1.88da6"
]
]
},
{
"id": "8557c687.af1ee8",
"type": "ui_group",
"z": "",
"name": "status",
"tab": "ab80aedb.3888e",
"order": 2,
"disp": true,
"width": "6"
},
{
"id": "ab80aedb.3888e",
"type": "ui_tab",
"z": "",
"name": "Console",
"icon": "dashboard",
"order": 1
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment