Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion software/node-red-dashboard/adafruithat/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "planktoscope-node-red-dashboard",
"description": "PlanktoScope graphical user interface",
"version": "2024.0.0",
"dependencies": {
"@flowfuse/node-red-dashboard": "^1.22.1",
"@flowfuse/node-red-dashboard-2-ui-flowviewer": "^1.0.1",
Expand Down
214 changes: 0 additions & 214 deletions software/node-red-dashboard/planktoscopehat/flows.json
Original file line number Diff line number Diff line change
Expand Up @@ -631,16 +631,6 @@
"collapse": false,
"className": ""
},
{
"id": "fc5e4e6f.5b1c8",
"type": "ui_group",
"name": "GPS Status",
"tab": "737ec584.2eea2c",
"order": 6,
"disp": true,
"width": 10,
"collapse": false
},
{
"id": "f3ca28ef.4df0a8",
"type": "ui_group",
Expand Down Expand Up @@ -793,16 +783,6 @@
"width": 10,
"height": 1
},
{
"id": "d65a6ccdeb9d35d6",
"type": "ui_spacer",
"z": "b771c342.49603",
"name": "spacer",
"group": "fc5e4e6f.5b1c8",
"order": 3,
"width": 1,
"height": 1
},
{
"id": "0035a03e1490cd8c",
"type": "ui_group",
Expand Down Expand Up @@ -1991,31 +1971,6 @@
"error"
]
},
{
"id": "18f44504.cac66b",
"type": "gpsd",
"z": "b771c342.49603",
"name": "",
"hostname": "localhost",
"port": "2947",
"tpv": true,
"sky": false,
"info": false,
"device": false,
"gst": false,
"att": false,
"x": 250,
"y": 1240,
"wires": [
[
"258b4562.9f778a",
"54e37580.fdc31c",
"cc21ca16.b92928",
"4a4de52c.cf2884",
"73c4a14a.9b93c8"
]
]
},
{
"id": "726a7822.cd6298",
"type": "ui_ui_control",
Expand Down Expand Up @@ -2210,22 +2165,6 @@
[]
]
},
{
"id": "7116e906.9f50f",
"type": "ui_text",
"z": "b771c342.49603",
"group": "fc5e4e6f.5b1c8",
"order": 1,
"width": 10,
"height": 1,
"name": "GPS Status Display",
"label": "GPS Status:",
"format": "{{msg.payload}}",
"layout": "row-center",
"x": 740,
"y": 1080,
"wires": []
},
{
"id": "9c7f7fc9.c8d3a",
"type": "ui_text_input",
Expand Down Expand Up @@ -2750,141 +2689,6 @@
]
]
},
{
"id": "4fb4e0ad.c417c",
"type": "ui_text",
"z": "b771c342.49603",
"group": "fc5e4e6f.5b1c8",
"order": 6,
"width": 5,
"height": 1,
"name": "Latitude",
"label": "Latitude",
"format": "{{msg.payload.lat.deg}}&deg{{msg.payload.lat.min}}'{{msg.payload.lat.sec}}{{msg.payload.lat.dir}}",
"layout": "col-center",
"x": 700,
"y": 1120,
"wires": []
},
{
"id": "8d2b5026.13e6e8",
"type": "ui_text",
"z": "b771c342.49603",
"group": "fc5e4e6f.5b1c8",
"order": 7,
"width": 5,
"height": 1,
"name": "Longitude",
"label": "Longitude",
"format": "{{msg.payload.lon.deg}}&deg{{msg.payload.lon.min}}'{{msg.payload.lon.sec}}{{msg.payload.lon.dir}}",
"layout": "col-center",
"x": 700,
"y": 1160,
"wires": []
},
{
"id": "258b4562.9f778a",
"type": "function",
"z": "b771c342.49603",
"name": "Convert DD to DMS",
"func": "function ConvertDDToDMS(D, lng){\n // from https://stackoverflow.com/a/5786281/2108279\n return {\n dir : D<0?lng?'W':'S':lng?'E':'N',\n deg : 0|(D<0?D=-D:D),\n min : 0|D%1*60,\n sec :(0|D*60%1*6000)/100\n };\n}\n\nmsg.payload = {\n \"lat\":ConvertDDToDMS(msg.payload.lat, false),\n \"lon\":ConvertDDToDMS(msg.payload.lon, true)\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 490,
"y": 1140,
"wires": [
[
"4fb4e0ad.c417c",
"8d2b5026.13e6e8"
]
]
},
{
"id": "7c4ce5f3.62dd5c",
"type": "ui_text",
"z": "b771c342.49603",
"group": "fc5e4e6f.5b1c8",
"order": 4,
"width": 2,
"height": 1,
"name": "Speed",
"label": "Speed",
"format": "{{msg.payload}} kts",
"layout": "col-center",
"x": 690,
"y": 1200,
"wires": []
},
{
"id": "54e37580.fdc31c",
"type": "ui_text",
"z": "b771c342.49603",
"group": "fc5e4e6f.5b1c8",
"order": 5,
"width": 2,
"height": 1,
"name": "Direction",
"label": "Direction",
"format": "{{msg.payload.track}} °",
"layout": "col-center",
"x": 700,
"y": 1240,
"wires": []
},
{
"id": "cc21ca16.b92928",
"type": "function",
"z": "b771c342.49603",
"name": "GPS Mode",
"func": "switch (msg.payload.mode){\n case 1:msg.payload = \"No Fix\"; break\n case 2:msg.payload = \"2D Fix\"; break\n case 3:msg.payload = \"3D Fix\"; break\n default: msg.payload = \"No info\"\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 470,
"y": 1080,
"wires": [
[
"7116e906.9f50f"
]
]
},
{
"id": "4a4de52c.cf2884",
"type": "function",
"z": "b771c342.49603",
"name": "Speed conversion",
"func": "msg.payload = (0|msg.payload.speed) * 1.9438\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 490,
"y": 1200,
"wires": [
[
"7c4ce5f3.62dd5c"
]
]
},
{
"id": "35ad311f.344c76",
"type": "ui_text",
"z": "b771c342.49603",
"group": "fc5e4e6f.5b1c8",
"order": 2,
"width": 5,
"height": 1,
"name": "Time",
"label": "Time",
"format": "{{msg.payload.time}}",
"layout": "col-center",
"x": 690,
"y": 1280,
"wires": []
},
{
"id": "e73fd87d.d24e4",
"type": "function",
Expand Down Expand Up @@ -2923,24 +2727,6 @@
]
]
},
{
"id": "73c4a14a.9b93c8",
"type": "function",
"z": "b771c342.49603",
"name": "Convert time",
"func": "msg.payload.time = msg.payload.time.replace('T', ' ')\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 470,
"y": 1280,
"wires": [
[
"35ad311f.344c76"
]
]
},
{
"id": "58de1340.3cc354",
"type": "ui_text_input",
Expand Down
25 changes: 0 additions & 25 deletions software/node-red-dashboard/planktoscopehat/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions software/node-red-dashboard/planktoscopehat/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"name": "planktoscope-node-red-dashboard",
"description": "PlanktoScope graphical user interface",
"version": "2024.0.0",
"dependencies": {
"@flowfuse/node-red-dashboard": "^1.22.1",
"@flowfuse/node-red-dashboard-2-ui-flowviewer": "^1.0.1",
"node-red-contrib-cron-plus": "^2.1.0",
"node-red-contrib-dir2files": "^0.3.0",
"node-red-contrib-gpsd": "^1.0.4",
"node-red-contrib-python3-function": "^0.0.4",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused on the planktoscope flow

"node-red-contrib-ui-multistate-switch": "^1.2.2",
"node-red-dashboard": "^3.1.2",
"node-red-node-ui-list": "^0.3.6"
Expand Down