Commit d97fd106 authored by Spencer Williams's avatar Spencer Williams
Browse files

updated tutorial flow

parent d36cad28
[{"id":"154b249d.9fb09b","type":"noble-scan","z":"8c40adf9.46cfc","uuids":"","duplicates":true,"name":"","x":390,"y":320,"wires":[["6b675b91.b6a1c4"]]},
{"id":"816c8b40.34df78","type":"amazon dynamodb","z":"8c40adf9.46cfc","aws":"ee1aab34.94aab8","region":"","operation":"put","tablename":"BLEScanning","name":"BLEScanning","x":960,"y":220,"wires":[["4dbbaee5.8d501"]]},
{"id":"9de90f94.fae5b","type":"debug","z":"8c40adf9.46cfc","name":"","active":true,"console":"false","complete":"payload","x":930,"y":320,"wires":[]},
{"id":"b19270c8.e0a3b","type":"inject","z":"8c40adf9.46cfc","name":"Test","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":394.0000114440918,"y":220.00001525878906,"wires":[["a4a3b2b1.fad71"]]},
{"id":"6b675b91.b6a1c4","type":"function","z":"8c40adf9.46cfc","name":"Format PutItem","func":"msg.payload = {};\nif (msg.rssi) {\n msg.payload.date = {\"S\": msg.detectedAt.toString()};\n msg.payload.deviceID = {\"S\": msg.peripheralUuid};\n msg.payload.rssi = {\"N\": msg.rssi.toString()};\n msg.payload.detectedBy = {\"S\": msg.detectedBy};\nreturn msg;\n}\n return ;","outputs":1,"noerr":0,"x":565,"y":321,"wires":[["9b4beb13.575dd8"]]},
{"id":"4dbbaee5.8d501","type":"debug","z":"8c40adf9.46cfc","name":"","active":false,"console":"false","complete":"true","x":1145,"y":220,"wires":[]},
{"id":"283c2c99.fd3464","type":"inject","z":"8c40adf9.46cfc","name":"Start","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":118,"y":293,"wires":[["6cfffbdc.301b14"]]},
{"id":"822a054.fa366f8","type":"inject","z":"8c40adf9.46cfc","name":"Stop","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":116,"y":345,"wires":[["a376c877.568388"]]},
{"id":"a376c877.568388","type":"function","z":"8c40adf9.46cfc","name":"","func":"msg.payload= {};\nmsg.payload.scan=false;\nreturn msg;","outputs":1,"noerr":0,"x":246,"y":345,"wires":[["154b249d.9fb09b"]]},
{"id":"6cfffbdc.301b14","type":"function","z":"8c40adf9.46cfc","name":"","func":"msg.payload= {};\nmsg.payload.scan=true;\nreturn msg;","outputs":1,"noerr":0,"x":247,"y":295,"wires":[["154b249d.9fb09b"]]},
{"id":"a4a3b2b1.fad71","type":"template","z":"8c40adf9.46cfc","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n \"date\": {\"S\": \"{{payload}}\"}, \n \"deviceID\": {\"S\": \"546009f1c79d\"},\n \"rssi\": {\"N\": \"-83\"},\n \"detectedBy\": {\"S\": \"RigadoGateway-080300717-00055\"}\n}","x":589.8333358764648,"y":220.00001621246338,"wires":[["d3e6b956.8037e8"]]},
{"id":"d3e6b956.8037e8","type":"json","z":"8c40adf9.46cfc","name":"","pretty":false,"x":735.8333435058594,"y":219.3333339691162,"wires":[["816c8b40.34df78"]]},
{"id":"9b4beb13.575dd8","type":"delay","z":"8c40adf9.46cfc","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":750,"y":320,"wires":[["816c8b40.34df78","9de90f94.fae5b"]]},
{"id":"ee1aab34.94aab8","type":"aws-config","z":"","name":"AWS","region":"us-west-2"}]
[
{
"id": "155b7069.fcdeb",
"type": "tab",
"label": "BLEScan to DynamoDB"
},
{
"id": "3adf3b1b.929a34",
"type": "ui_base",
"theme": {
"name": "theme-dark",
"lightTheme": {
"default": "#0094CE",
"baseColor": "#0094CE",
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
"edited": true,
"reset": false
},
"darkTheme": {
"default": "#097479",
"baseColor": "#097479",
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
"edited": true,
"reset": false
},
"customTheme": {
"name": "Untitled Theme 1",
"default": "#4B7930",
"baseColor": "#4B7930",
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
},
"themeState": {
"base-color": {
"default": "#097479",
"value": "#097479",
"edited": false
},
"page-titlebar-backgroundColor": {
"value": "#097479",
"edited": false
},
"page-backgroundColor": {
"value": "#111111",
"edited": false
},
"page-sidebar-backgroundColor": {
"value": "#000000",
"edited": false
},
"group-textColor": {
"value": "#0eb8c0",
"edited": false
},
"group-borderColor": {
"value": "#555555",
"edited": false
},
"group-backgroundColor": {
"value": "#333333",
"edited": false
},
"widget-textColor": {
"value": "#eeeeee",
"edited": false
},
"widget-backgroundColor": {
"value": "#097479",
"edited": false
},
"widget-borderColor": {
"value": "#333333",
"edited": false
},
"base-font": {
"value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
}
}
},
"site": {
"name": "Node-RED Dashboard",
"hideToolbar": "false",
"allowSwipe": "false",
"dateFormat": "DD/MM/YYYY",
"sizes": {
"sx": 120,
"sy": 120,
"gx": 6,
"gy": 6,
"cx": 6,
"cy": 6,
"px": 0,
"py": 0
}
}
},
{
"id": "969e5968.4b6638",
"type": "aws-config",
"z": "",
"name": "AWS",
"region": "us-west-2"
},
{
"id": "6ed964e2.f1ac1c",
"type": "amazon dynamodb",
"z": "155b7069.fcdeb",
"aws": "969e5968.4b6638",
"region": "",
"operation": "put",
"tablename": "BLEScanning",
"name": "BLEScanning",
"x": 860,
"y": 140,
"wires": [
[
"c861b1d8.b18b"
]
]
},
{
"id": "d9f3bd72.536ff",
"type": "debug",
"z": "155b7069.fcdeb",
"name": "",
"active": false,
"console": "false",
"complete": "true",
"x": 830,
"y": 200,
"wires": []
},
{
"id": "94834d69.f17b3",
"type": "function",
"z": "155b7069.fcdeb",
"name": "Format PutItem",
"func": "msg.payload = {};\nif (msg.rssi) {\n msg.payload = {\n \"date\": {\"N\": msg.detectedAt.toString()},\n \"deviceID\": {\"S\": msg.peripheralUuid},\n \"rssi\": {\"N\": msg.rssi.toString()},\n \"detectedBy\": {\"S\": msg.detectedBy}\n };\n return msg;\n}\nreturn null;",
"outputs": 1,
"noerr": 0,
"x": 480,
"y": 140,
"wires": [
[
"d687f9ce.c7e508"
]
]
},
{
"id": "c861b1d8.b18b",
"type": "debug",
"z": "155b7069.fcdeb",
"name": "",
"active": true,
"console": "false",
"complete": "true",
"x": 1030,
"y": 140,
"wires": []
},
{
"id": "e615c165.ae88",
"type": "inject",
"z": "155b7069.fcdeb",
"name": "Start",
"topic": "",
"payload": "{\"scan\":true}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"x": 90,
"y": 120,
"wires": [
[
"aed3d6df.1a51d8"
]
]
},
{
"id": "5466597c.ea56b8",
"type": "inject",
"z": "155b7069.fcdeb",
"name": "Stop",
"topic": "",
"payload": "{\"scan\":false}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"x": 90,
"y": 160,
"wires": [
[
"aed3d6df.1a51d8"
]
]
},
{
"id": "d687f9ce.c7e508",
"type": "delay",
"z": "155b7069.fcdeb",
"name": "",
"pauseType": "rate",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": true,
"x": 670,
"y": 140,
"wires": [
[
"d9f3bd72.536ff",
"6ed964e2.f1ac1c"
]
]
},
{
"id": "aed3d6df.1a51d8",
"type": "noble-scan",
"z": "155b7069.fcdeb",
"uuids": "",
"duplicates": false,
"name": "",
"x": 290,
"y": 140,
"wires": [
[
"94834d69.f17b3"
]
]
}
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment