Skip to content

Instantly share code, notes, and snippets.

@infosmick
Created December 23, 2016 22:19
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/6cb4f0c16a0596a3a89b9feba73793c8 to your computer and use it in GitHub Desktop.
Save infosmick/6cb4f0c16a0596a3a89b9feba73793c8 to your computer and use it in GitHub Desktop.
Smick_002_LED_dgital_v4

This flow builds a dashboard that contains a switch node to switch on or off the LED. The generated commands are sent to Smick through "console" flow.

[
{
"id": "f23f4fc9.6a061",
"type": "ui_switch",
"z": "d90580ea.d1f88",
"name": "",
"label": "Off/On",
"group": "bb1c62d4.4be11",
"order": 1,
"width": 0,
"height": 0,
"passthru": false,
"topic": "",
"style": "",
"onvalue": "D3=1",
"onvalueType": "str",
"onicon": "",
"oncolor": "",
"offvalue": "D3=0",
"offvalueType": "str",
"officon": "",
"offcolor": "",
"x": 170,
"y": 240,
"wires": [
[
"d8150a81.1ad1b8"
]
]
},
{
"id": "d8150a81.1ad1b8",
"type": "link out",
"z": "d90580ea.d1f88",
"name": "command",
"links": [
"3fc9a886.164328"
],
"x": 395,
"y": 240,
"wires": []
},
{
"id": "2a69668b.2c194a",
"type": "comment",
"z": "d90580ea.d1f88",
"name": "digital output",
"info": "",
"x": 170,
"y": 140,
"wires": []
},
{
"id": "8d8fe775.4e4d98",
"type": "comment",
"z": "d90580ea.d1f88",
"name": "Description",
"info": "Smick_002_LED_dgital\n_______________________________________________________________________________\nPackage : Smick v.1\nModule : LED digital\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.17 Curci genesis\n_______________________________________________________________________________\n\nDescription\n\nQuesto flow costruisce un cruscotto contenente un nodo switch per accendere o spegnere il LED.\nI comandi generati sono inviati a smick tramite il flow \"console\".\n\nThis flow builds a dashboard that contains a switch node to switch on or off the LED.\nThe generated commands are sent to Smick through \"console\" flow.\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 1 LED connected to smick \n\nHW Connections:\n\n Device pin Smick pin\n LED + D3\n LED - GND\n\nFlow Connections:\n\n Smick_001_console\n\nAccount:\n\n Wi-Fi router\n MQTT broker\n FRED\n",
"x": 160,
"y": 80,
"wires": []
},
{
"id": "bb1c62d4.4be11",
"type": "ui_group",
"z": "",
"name": "LED",
"tab": "7d2c5b9c.e03864",
"order": 1,
"disp": true,
"width": "6"
},
{
"id": "7d2c5b9c.e03864",
"type": "ui_tab",
"z": "",
"name": "LED",
"icon": "dashboard",
"order": 2
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment