diff --git a/flows/main.json b/flows/main.json index 7e6b27b..5bc15f3 100644 --- a/flows/main.json +++ b/flows/main.json @@ -720,15 +720,6 @@ "width": "12", "collapse": true }, - { - "id": "537a50c5.f6f428", - "type": "ui_spacer", - "name": "spacer", - "group": "3ca00bf9.e5cac4", - "order": 2, - "width": 1, - "height": 1 - }, { "id": "9e409235.73cd7", "type": "ui_group", @@ -771,51 +762,6 @@ "disabled": false, "hidden": false }, - { - "id": "dcb4c0a9.288b38", - "type": "ui_spacer", - "name": "spacer", - "group": "1be83144.4fe4bf", - "order": 2, - "width": 3, - "height": 1 - }, - { - "id": "778e749.ced338c", - "type": "ui_spacer", - "name": "spacer", - "group": "1be83144.4fe4bf", - "order": 4, - "width": 3, - "height": 1 - }, - { - "id": "e7b7752b.d85918", - "type": "ui_spacer", - "name": "spacer", - "group": "1be83144.4fe4bf", - "order": 5, - "width": 4, - "height": 1 - }, - { - "id": "8bc9bd19.816888", - "type": "ui_spacer", - "name": "spacer", - "group": "1be83144.4fe4bf", - "order": 7, - "width": 4, - "height": 1 - }, - { - "id": "165dcd04.e6d253", - "type": "ui_spacer", - "name": "spacer", - "group": "1be83144.4fe4bf", - "order": 9, - "width": 8, - "height": 1 - }, { "id": "b0fb559a.6966a8", "type": "ui_tab", @@ -984,6 +930,69 @@ "width": 4, "height": 1 }, + { + "id": "7da406a5.27eb4", + "type": "ui_spacer", + "name": "spacer", + "group": "1be83144.4fe4bf", + "order": 4, + "width": 3, + "height": 1 + }, + { + "id": "77f746b.53f1538", + "type": "ui_spacer", + "name": "spacer", + "group": "1be83144.4fe4bf", + "order": 6, + "width": 3, + "height": 1 + }, + { + "id": "d85ab67c.dc7a9", + "type": "ui_spacer", + "name": "spacer", + "group": "1be83144.4fe4bf", + "order": 7, + "width": 3, + "height": 1 + }, + { + "id": "5bbb684a.85e138", + "type": "ui_spacer", + "name": "spacer", + "group": "1be83144.4fe4bf", + "order": 9, + "width": 3, + "height": 1 + }, + { + "id": "11b62f82.d3965", + "type": "ui_spacer", + "name": "spacer", + "group": "1be83144.4fe4bf", + "order": 10, + "width": 4, + "height": 1 + }, + { + "id": "d160563f.c1a0e8", + "type": "ui_spacer", + "name": "spacer", + "group": "1be83144.4fe4bf", + "order": 12, + "width": 4, + "height": 1 + }, + { + "id": "ff30b2d8.51102", + "type": "ui_spacer", + "name": "spacer", + "group": "1be83144.4fe4bf", + "order": 14, + "width": 8, + "height": 1 + }, { "id": "4e78af2d.90be7", "type": "ui_ui_control", @@ -1431,12 +1440,13 @@ "label": "Fan", "tooltip": "", "group": "3ca00bf9.e5cac4", - "order": 3, - "width": 1, + "order": 2, + "width": 2, "height": 1, "passthru": true, "decouple": "false", "topic": "", + "topicType": "str", "style": "", "onvalue": "on", "onvalueType": "str", @@ -1446,6 +1456,7 @@ "offvalueType": "str", "officon": "", "offcolor": "", + "animate": true, "x": 940, "y": 40, "wires": [ @@ -3329,11 +3340,10 @@ "payload": "start", "payloadType": "str", "x": 130, - "y": 580, + "y": 620, "wires": [ [ - "452af41c.43940c", - "b3c21aa9.8c06c" + "452af41c.43940c" ] ] }, @@ -3834,45 +3844,6 @@ [] ] }, - { - "id": "b3c21aa9.8c06c", - "type": "exec", - "z": "1371dec5.76e671", - "command": "git --git-dir /home/pi/PlanktonScope/.git/ rev-parse --short master", - "addpay": false, - "append": "", - "useSpawn": "false", - "timer": "", - "oldrc": false, - "name": "git rev", - "x": 310, - "y": 540, - "wires": [ - [ - "3e64877a.9684b" - ], - [], - [] - ] - }, - { - "id": "3e64877a.9684b", - "type": "function", - "z": "1371dec5.76e671", - "name": "store version", - "func": "msg.payload = \"PlanktoScope v2.2-\"+msg.payload.trim()\n\nglobal.set(\"acq_software\",msg.payload);\n\nreturn msg\n", - "outputs": 1, - "noerr": 0, - "initialize": "", - "finalize": "", - "x": 590, - "y": 520, - "wires": [ - [ - "8343fa69.49339" - ] - ] - }, { "id": "68fa1227.dbdd5c", "type": "function", @@ -4020,22 +3991,6 @@ "y": 600, "wires": [] }, - { - "id": "8343fa69.49339", - "type": "ui_text", - "z": "1371dec5.76e671", - "group": "ce9e278.781eed8", - "order": 3, - "width": 0, - "height": 0, - "name": "", - "label": "Software version", - "format": "{{msg.payload}}", - "layout": "row-spread", - "x": 840, - "y": 520, - "wires": [] - }, { "id": "f783aefd.c3bfd8", "type": "ui_text", @@ -6136,7 +6091,7 @@ "z": "9daf9e2b.019fc", "name": "", "group": "1be83144.4fe4bf", - "order": 15, + "order": 13, "width": 2, "height": 1, "passthru": false, @@ -6148,6 +6103,7 @@ "payload": "reboot", "payloadType": "str", "topic": "reboot", + "topicType": "str", "x": 420, "y": 680, "wires": [ @@ -6181,7 +6137,7 @@ "z": "9daf9e2b.019fc", "name": "", "group": "1be83144.4fe4bf", - "order": 17, + "order": 15, "width": 2, "height": 1, "passthru": false, @@ -6193,6 +6149,7 @@ "payload": "shutdown", "payloadType": "str", "topic": "shutdown", + "topicType": "str", "x": 410, "y": 760, "wires": [ @@ -6208,8 +6165,8 @@ "name": "action", "func": "#!/usr/bin/python\nimport smbus\n\nbus = smbus.SMBus(1)\n#turn off LED\nbus.write_byte_data(0x0d, 0x07, 0x00)\n#turn off Fan\nbus.write_byte_data(0x0d, 0x08, 0x00)\n\n#msg[\"payload\"] = str(msg[\"topic\"])+' now'\nreturn msg", "outputs": 1, - "x": 690, - "y": 460, + "x": 590, + "y": 720, "wires": [ [ "611a8b1c.a829b4" @@ -6227,7 +6184,7 @@ "timer": "", "oldrc": false, "name": "", - "x": 1120, + "x": 1090, "y": 600, "wires": [ [], @@ -6266,7 +6223,7 @@ "z": "9daf9e2b.019fc", "name": "Restart Python", "group": "1be83144.4fe4bf", - "order": 12, + "order": 11, "width": 4, "height": 1, "passthru": true, @@ -6383,7 +6340,7 @@ "payload": "", "payloadType": "str", "topic": "", - "x": 1340, + "x": 1260, "y": 720, "wires": [ [ @@ -6515,7 +6472,7 @@ "level": "1", "freq": "", "out": "out", - "x": 420, + "x": 410, "y": 80, "wires": [] }, @@ -6570,7 +6527,7 @@ "timer": "1", "oldrc": false, "name": "git user.name", - "x": 1140, + "x": 1150, "y": 60, "wires": [ [], @@ -6626,7 +6583,7 @@ "timer": "1", "oldrc": false, "name": "git user.email", - "x": 1130, + "x": 1150, "y": 140, "wires": [ [], @@ -6659,7 +6616,7 @@ "z": "9daf9e2b.019fc", "name": "Update", "group": "1be83144.4fe4bf", - "order": 9, + "order": 8, "width": 6, "height": 1, "passthru": false, @@ -6672,7 +6629,7 @@ "payloadType": "str", "topic": "update", "topicType": "str", - "x": 440, + "x": 300, "y": 460, "wires": [ [ @@ -6691,15 +6648,16 @@ "timer": "", "oldrc": false, "name": "Update", - "x": 720, + "x": 480, "y": 460, "wires": [ [ "64f61762.68c788", - "8b511c2b.9c24c8" + "8b511c2b.9c24c8", + "83c5a708.a5715", + "d334d264.8a7728" ], [ - "64f61762.68c788", "8b511c2b.9c24c8" ], [] @@ -6714,13 +6672,13 @@ "order": 1, "width": 12, "height": 2, - "format": "