[
{
"id": "f9bd4af7.04b678",
"type": "ui_template",
"z": "c54ebe65.60eaa",
"group": "5bb4f73c.9bae28",
"name": "Red Starter",
"order": 10,
"width": "2",
"height": "2",
"format": "\n<md-button class=\"vibrate filled touched bigfont rounded\" style=\"background-color:#333333\" ng-click=\"send({payload: msg.payload })\"> \n\n<svg width=\"105px\" height=\"105px\" version=\"1.1\" \nviewBox=\"0 0 76 76\">\n <g id=\"Button_1\">\n <rect fill=\"#4B4B4D\" width=\"76\" height=\"76\"/>\n\n <g ng-style=\"{fill: (msg.payload || 0) % 2 === 0 ? '#848688' : '#1A1A1A'}\">\n <polygon stroke=\"black\" stroke-width=\"0.380524\" points=\"72,72 4,72 0,76 76,76 76,0 72,4 \"/>\n </g>\n <g ng-style=\"{fill: (msg.payload || 0) % 2 === 0 ? '#1A1A1A' : '#848688'}\">\n <polygon points=\"4,4 72,4 76,0 0,0 0,76 4,72 \"/>\n </g>\n <g ng-style=\"{stroke: (msg.payload || 0) % 2 === 0 ? 'black' : '#E6E7E8'}\">\n <line fill=\"none\" stroke-width=\"0.380524\" x1=\"0\" y1=\"0\" x2=\"4\" y2= \"4\" />\n </g>\n\n <circle fill=\"none\" stroke=\"red\" stroke-width=\"1.8\" cx=\"38\" cy=\"38\" r=\"29\"/>\n <g ng-style=\"{fill: (msg.payload || 0) % 2 === 0 ? 'red' : 'none'}\">\n <circle cx=\"38\" cy=\"38\" r=\"26\" />\n </g>\n <polyline fill=\"none\" stroke=\"#D2D3D5\" stroke-width=\"0.380524\" points=\"4,72 4,4 72,4 \"/>\n\n\n <g ng-style=\"{fill: (msg.payload || 0) % 2 === 0 ? 'none' : '#FEFEFE'}\">\n <text x=\"37\" y=\"44\" style=\"text-anchor:middle\" font-weight=\"normal\" font-size=\"19.0185\" font-family=\"Droid Sans\">OFF</text>\n </g>\n <g ng-style=\"{fill: (msg.payload || 0) % 2 === 0 ? '#FEFEFE' : 'none'}\">\n <text x=\"37\" y=\"44\" style=\"text-anchor:middle\" font-weight=\"normal\" font-size=\"19.0185\" font-family=\"Droid Sans\">OFF</text>\n </g>\n </g>\n</svg>\n</md-button>\n",
"storeOutMessages": false,
"fwdInMessages": false,
"templateScope": "local",
"x": 1197.8333129882812,
"y": 644.3334350585938,
"wires": [
[
"7bb19ce8.de00d4"
]
]
},
{
"id": "6f65141e.9bc96c",
"type": "ui_template",
"z": "c54ebe65.60eaa",
"group": "5bb4f73c.9bae28",
"name": "Green Starter",
"order": 9,
"width": "2",
"height": "2",
"format": "\n<md-button class=\"vibrate filled touched bigfont rounded\" style=\"background-color:#333333\" ng-click=\"send({payload: msg.payload })\"> \n\n<svg width=\"105px\" height=\"105px\" version=\"1.1\" \nviewBox=\"0 0 76 76\">\n <g id=\"Button_1\">\n <rect fill=\"#4B4B4D\" width=\"76\" height=\"76\"/>\n\n <g ng-style=\"{fill: (msg.payload || 0) % 2 === 0 ? '#1A1A1A' : '#848688'}\">\n <polygon stroke=\"black\" stroke-width=\"0.380524\" points=\"72,72 4,72 0,76 76,76 76,0 72,4 \"/>\n </g>\n <g ng-style=\"{fill: (msg.payload || 0) % 2 === 0 ? '#848688' : '#1A1A1A'}\">\n <polygon points=\"4,4 72,4 76,0 0,0 0,76 4,72 \"/>\n </g>\n <g ng-style=\"{stroke: (msg.payload || 0) % 2 === 0 ? '#E6E7E8' : 'black'}\">\n <line fill=\"none\" stroke-width=\"0.380524\" x1=\"0\" y1=\"0\" x2=\"4\" y2= \"4\" />\n </g>\n\n <circle fill=\"none\" stroke=\"green\" stroke-width=\"1.8\" cx=\"38\" cy=\"38\" r=\"29\"/>\n <g ng-style=\"{fill: (msg.payload || 0) % 2 === 0 ? 'none' : 'green'}\">\n <circle cx=\"38\" cy=\"38\" r=\"26\" />\n </g>\n <polyline fill=\"none\" stroke=\"#D2D3D5\" stroke-width=\"0.380524\" points=\"4,72 4,4 72,4 \"/>\n\n\n <g ng-style=\"{fill: (msg.payload || 0) % 2 === 0 ? 'none' : '#FEFEFE'}\">\n <text x=\"37\" y=\"44\" style=\"text-anchor:middle\" font-weight=\"normal\" font-size=\"19.0185\" font-family=\"Droid Sans\">RUN</text>\n </g>\n <g ng-style=\"{fill: (msg.payload || 0) % 2 === 0 ? '#FEFEFE' : 'none'}\">\n <text x=\"37\" y=\"44\" style=\"text-anchor:middle\" font-weight=\"normal\" font-size=\"19.0185\" font-family=\"Droid Sans\">RUN</text>\n </g>\n </g>\n</svg>\n</md-button>\n\n\n",
"storeOutMessages": false,
"fwdInMessages": false,
"templateScope": "local",
"x": 1196.9999389648438,
"y": 513.0000610351562,
"wires": [
[
"195de874.b07b58"
]
]
},
{
"id": "195de874.b07b58",
"type": "function",
"z": "c54ebe65.60eaa",
"name": "",
"func": "\nif (msg.payload === false ){\n msg.payload = true;\n}\nelse { msg.payload = true;\n}\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"x": 1194.8333740234375,
"y": 447,
"wires": [
[
"6f65141e.9bc96c",
"f9bd4af7.04b678"
]
]
},
{
"id": "7bb19ce8.de00d4",
"type": "function",
"z": "c54ebe65.60eaa",
"name": "",
"func": "\nif (msg.payload === true ){\n msg.payload = false;\n}\nelse { msg.payload = false;\n}\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"x": 1188.8333740234375,
"y": 574.0001525878906,
"wires": [
[
"f9bd4af7.04b678",
"6f65141e.9bc96c"
]
]
},
{
"id": "5bb4f73c.9bae28",
"type": "ui_group",
"z": "",
"name": "Starter",
"tab": "f71dee08.232e9",
"order": 4,
"disp": true,
"width": "2"
},
{
"id": "f71dee08.232e9",
"type": "ui_tab",
"z": "",
"name": "Button Panel",
"icon": "dashboard"
}
]well worth putting on flows.nodered.org

--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/taA7-XZ96JE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/add5c8cd-62c4-4844-818e-5e50f02fec11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
David Caparros
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.

To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/74fe3a57-4120-4c79-a64d-76c338e703fb%40googlegroups.com.