Skip to content

Instantly share code, notes, and snippets.

@infosmick
Created December 29, 2016 12:37
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/21cf63e30ac371d3749a1b418d8b9dc6 to your computer and use it in GitHub Desktop.
Save infosmick/21cf63e30ac371d3749a1b418d8b9dc6 to your computer and use it in GitHub Desktop.
Smick_03_digital_output

Digital output example

[
{
"id": "c92818ac.b52cd8",
"type": "tab",
"label": "digital_output"
},
{
"id": "91906fbb.9ae2c",
"type": "ui_button",
"z": "c92818ac.b52cd8",
"name": "",
"group": "e0cb4cdb.63ad1",
"order": 1,
"width": "3",
"height": "1",
"label": "LED Off",
"color": "",
"icon": "",
"payload": "LED=0",
"payloadType": "str",
"topic": "",
"x": 240,
"y": 180,
"wires": [
[
"762ef096.45083"
]
]
},
{
"id": "d0804f0d.40e38",
"type": "ui_button",
"z": "c92818ac.b52cd8",
"name": "",
"group": "e0cb4cdb.63ad1",
"order": 2,
"width": "3",
"height": "1",
"label": "LED On",
"color": "",
"icon": "",
"payload": "LED=1",
"payloadType": "str",
"topic": "",
"x": 240,
"y": 260,
"wires": [
[
"762ef096.45083"
]
]
},
{
"id": "762ef096.45083",
"type": "link out",
"z": "c92818ac.b52cd8",
"name": "",
"links": [
"1096456f.bfc93b"
],
"x": 465,
"y": 260,
"wires": []
},
{
"id": "590dc6a1.d29938",
"type": "ui_switch",
"z": "c92818ac.b52cd8",
"name": "",
"label": "D2 Off/On",
"group": "e0cb4cdb.63ad1",
"order": 0,
"width": 0,
"height": 0,
"passthru": true,
"topic": "",
"style": "",
"onvalue": "D2=1",
"onvalueType": "str",
"onicon": "",
"oncolor": "",
"offvalue": "D2=0",
"offvalueType": "str",
"officon": "",
"offcolor": "",
"x": 250,
"y": 340,
"wires": [
[
"762ef096.45083"
]
]
},
{
"id": "59f636e9.386df8",
"type": "comment",
"z": "c92818ac.b52cd8",
"name": "Description",
"info": "Smick_000_console_v10\n_______________________________________________________________________________\nPackage : Smick v.1\nModule : digital output\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 None\n\nAccount:\n\n Wi-Fi router\n MQTT broker\n FRED\n",
"x": 140,
"y": 80,
"wires": []
},
{
"id": "e0cb4cdb.63ad1",
"type": "ui_group",
"z": "",
"name": "digital",
"tab": "f142a68c.ec9b78",
"order": 2,
"disp": true,
"width": "6"
},
{
"id": "f142a68c.ec9b78",
"type": "ui_tab",
"z": "",
"name": "Output",
"icon": "dashboard",
"order": 2
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment