Skip to content

Commit eb81c11

Browse files
committed
Biased png needle, improved "No data" handling
1 parent 4b43629 commit eb81c11

File tree

5 files changed

+260
-38
lines changed

5 files changed

+260
-38
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ Added wind velocity labels
1515
## 2.1.1
1616

1717
Updated links on README pages
18+
19+
## 2.1.2
20+
21+
Updated "No data" behaviors
22+
Biased png needle image to better indicate which end of the needle is the front.

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "compass-panel",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"scripts": {
55
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
66
"dev": "webpack -w -c ./.config/webpack/webpack.config.ts --env development",
@@ -13,8 +13,8 @@
1313
"server": "docker compose up --build",
1414
"sign": "npx --yes @grafana/sign-plugin@latest"
1515
},
16-
"author": "Ocean data tools",
17-
"license": "Apache-2.0",
16+
"author": "OceanDataTools.org",
17+
"license": "MIT",
1818
"devDependencies": {
1919
"@grafana/eslint-config": "^8.2.0",
2020
"@grafana/plugin-e2e": "^2.2.3",

provisioning/dashboards/dashboard.json

Lines changed: 223 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"trueWindSpdField": "",
6565
"trueWindSpdUom": "kts"
6666
},
67-
"pluginVersion": "2.0.0",
67+
"pluginVersion": "2.1.0",
6868
"targets": [
6969
{
7070
"datasource": {
@@ -128,7 +128,7 @@
128128
"trueWindSpdField": "",
129129
"trueWindSpdUom": "kts"
130130
},
131-
"pluginVersion": "2.0.0",
131+
"pluginVersion": "2.1.0",
132132
"targets": [
133133
{
134134
"datasource": {
@@ -232,7 +232,7 @@
232232
"trueWindSpdField": "D-series",
233233
"trueWindSpdUom": "kts"
234234
},
235-
"pluginVersion": "2.0.0",
235+
"pluginVersion": "2.1.0",
236236
"targets": [
237237
{
238238
"datasource": {
@@ -336,7 +336,7 @@
336336
"trueWindSpdField": "",
337337
"trueWindSpdUom": "kts"
338338
},
339-
"pluginVersion": "2.0.0",
339+
"pluginVersion": "2.1.0",
340340
"targets": [
341341
{
342342
"alias": "",
@@ -362,7 +362,7 @@
362362
},
363363
"gridPos": {
364364
"h": 8,
365-
"w": 6,
365+
"w": 4,
366366
"x": 0,
367367
"y": 6
368368
},
@@ -394,7 +394,7 @@
394394
"trueWindSpdField": "",
395395
"trueWindSpdUom": "kts"
396396
},
397-
"pluginVersion": "2.0.0",
397+
"pluginVersion": "2.1.0",
398398
"targets": [
399399
{
400400
"datasource": {
@@ -466,8 +466,8 @@
466466
},
467467
"gridPos": {
468468
"h": 8,
469-
"w": 6,
470-
"x": 6,
469+
"w": 4,
470+
"x": 4,
471471
"y": 6
472472
},
473473
"id": 8,
@@ -498,7 +498,7 @@
498498
"trueWindSpdField": "D-series",
499499
"trueWindSpdUom": "kts"
500500
},
501-
"pluginVersion": "2.0.0",
501+
"pluginVersion": "2.1.0",
502502
"targets": [
503503
{
504504
"datasource": {
@@ -559,6 +559,214 @@
559559
"title": "Wind w/spd - Bow Up",
560560
"type": "oceandatatools-compass-panel"
561561
},
562+
{
563+
"datasource": {
564+
"type": "grafana-testdata-datasource",
565+
"uid": "trlxrdZVk"
566+
},
567+
"fieldConfig": {
568+
"defaults": {},
569+
"overrides": []
570+
},
571+
"gridPos": {
572+
"h": 8,
573+
"w": 4,
574+
"x": 8,
575+
"y": 6
576+
},
577+
"id": 11,
578+
"options": {
579+
"apparentWindColor": "yellow",
580+
"apparentWindDirField": "C-series",
581+
"apparentWindField": "C-series",
582+
"apparentWindSpdField": "E-series",
583+
"apparentWindSpdUom": "kts",
584+
"bezelColor": "#c6c6c6",
585+
"dialColor": "dark-blue",
586+
"headingField": "heading",
587+
"needleColor": "red",
588+
"needlePng": "https://soi-vessel-tracker.web.app/static/Illustration.png",
589+
"needleSvg": "",
590+
"needleType": "png",
591+
"rotationMode": "rotate-dial",
592+
"seriesCountSize": "sm",
593+
"showHeadingValue": true,
594+
"showLabels": true,
595+
"showSeriesCount": false,
596+
"tailColor": "gray",
597+
"text": "Default value of text input option",
598+
"textColor": "#000000",
599+
"trueWindColor": "blue",
600+
"trueWindDirField": "B-series",
601+
"trueWindField": "B-series",
602+
"trueWindSpdField": "D-series",
603+
"trueWindSpdUom": "kts"
604+
},
605+
"pluginVersion": "2.1.0",
606+
"targets": [
607+
{
608+
"datasource": {
609+
"type": "grafana-testdata-datasource",
610+
"uid": "trlxrdZVk"
611+
},
612+
"refId": "A",
613+
"scenarioId": "simulation",
614+
"sim": {
615+
"key": {
616+
"tick": 1,
617+
"type": "flight"
618+
},
619+
"stream": true
620+
}
621+
},
622+
{
623+
"datasource": {
624+
"type": "grafana-testdata-datasource",
625+
"uid": "db84e60d-b92a-4089-82cb-34842fb1754b"
626+
},
627+
"hide": false,
628+
"refId": "B",
629+
"scenarioId": "csv_metric_values",
630+
"stringInput": "150"
631+
},
632+
{
633+
"datasource": {
634+
"type": "grafana-testdata-datasource",
635+
"uid": "db84e60d-b92a-4089-82cb-34842fb1754b"
636+
},
637+
"hide": false,
638+
"refId": "C",
639+
"scenarioId": "csv_metric_values",
640+
"stringInput": "140"
641+
},
642+
{
643+
"datasource": {
644+
"type": "grafana-testdata-datasource",
645+
"uid": "db84e60d-b92a-4089-82cb-34842fb1754b"
646+
},
647+
"hide": false,
648+
"refId": "D",
649+
"scenarioId": "csv_metric_values",
650+
"stringInput": "25.014"
651+
},
652+
{
653+
"datasource": {
654+
"type": "grafana-testdata-datasource",
655+
"uid": "db84e60d-b92a-4089-82cb-34842fb1754b"
656+
},
657+
"hide": false,
658+
"refId": "E",
659+
"scenarioId": "csv_metric_values",
660+
"stringInput": "22.503"
661+
}
662+
],
663+
"title": "Wind w/spd - PNG Needle",
664+
"type": "oceandatatools-compass-panel"
665+
},
666+
{
667+
"datasource": {
668+
"type": "grafana-testdata-datasource",
669+
"uid": "trlxrdZVk"
670+
},
671+
"fieldConfig": {
672+
"defaults": {},
673+
"overrides": []
674+
},
675+
"gridPos": {
676+
"h": 8,
677+
"w": 4,
678+
"x": 12,
679+
"y": 6
680+
},
681+
"id": 12,
682+
"options": {
683+
"apparentWindColor": "yellow",
684+
"apparentWindDirField": "C-series",
685+
"apparentWindField": "C-series",
686+
"apparentWindSpdField": "E-series",
687+
"apparentWindSpdUom": "kts",
688+
"bezelColor": "#c6c6c6",
689+
"dialColor": "white",
690+
"headingField": "heading",
691+
"needleColor": "red",
692+
"needlePng": "",
693+
"needleSvg": "",
694+
"needleType": "ship",
695+
"rotationMode": "rotate-needle",
696+
"seriesCountSize": "sm",
697+
"showHeadingValue": true,
698+
"showLabels": true,
699+
"showSeriesCount": false,
700+
"tailColor": "gray",
701+
"text": "Default value of text input option",
702+
"textColor": "#111827",
703+
"trueWindColor": "blue",
704+
"trueWindDirField": "B-series",
705+
"trueWindField": "B-series",
706+
"trueWindSpdField": "D-series",
707+
"trueWindSpdUom": "kts"
708+
},
709+
"pluginVersion": "2.1.0",
710+
"targets": [
711+
{
712+
"datasource": {
713+
"type": "grafana-testdata-datasource",
714+
"uid": "trlxrdZVk"
715+
},
716+
"refId": "A",
717+
"scenarioId": "simulation",
718+
"sim": {
719+
"key": {
720+
"tick": 1,
721+
"type": "flight"
722+
},
723+
"stream": true
724+
}
725+
},
726+
{
727+
"datasource": {
728+
"type": "grafana-testdata-datasource",
729+
"uid": "db84e60d-b92a-4089-82cb-34842fb1754b"
730+
},
731+
"hide": true,
732+
"refId": "B",
733+
"scenarioId": "csv_metric_values",
734+
"stringInput": "150"
735+
},
736+
{
737+
"datasource": {
738+
"type": "grafana-testdata-datasource",
739+
"uid": "db84e60d-b92a-4089-82cb-34842fb1754b"
740+
},
741+
"hide": true,
742+
"refId": "C",
743+
"scenarioId": "csv_metric_values",
744+
"stringInput": "140"
745+
},
746+
{
747+
"datasource": {
748+
"type": "grafana-testdata-datasource",
749+
"uid": "db84e60d-b92a-4089-82cb-34842fb1754b"
750+
},
751+
"hide": true,
752+
"refId": "D",
753+
"scenarioId": "csv_metric_values",
754+
"stringInput": "25.014"
755+
},
756+
{
757+
"datasource": {
758+
"type": "grafana-testdata-datasource",
759+
"uid": "db84e60d-b92a-4089-82cb-34842fb1754b"
760+
},
761+
"hide": true,
762+
"refId": "E",
763+
"scenarioId": "csv_metric_values",
764+
"stringInput": "22.503"
765+
}
766+
],
767+
"title": "Wind w/spd - North Up",
768+
"type": "oceandatatools-compass-panel"
769+
},
562770
{
563771
"datasource": {
564772
"type": "grafana-testdata-datasource",
@@ -602,7 +810,7 @@
602810
"trueWindSpdField": "",
603811
"trueWindSpdUom": "kts"
604812
},
605-
"pluginVersion": "2.0.0",
813+
"pluginVersion": "2.1.0",
606814
"targets": [
607815
{
608816
"datasource": {
@@ -660,7 +868,7 @@
660868
"trueWindSpdField": "",
661869
"trueWindSpdUom": "kts"
662870
},
663-
"pluginVersion": "2.0.0",
871+
"pluginVersion": "2.1.0",
664872
"targets": [
665873
{
666874
"datasource": {
@@ -738,7 +946,7 @@
738946
"trueWindSpdField": "",
739947
"trueWindSpdUom": "kts"
740948
},
741-
"pluginVersion": "2.0.0",
949+
"pluginVersion": "2.1.0",
742950
"targets": [
743951
{
744952
"datasource": {
@@ -796,7 +1004,7 @@
7961004
"trueWindSpdField": "",
7971005
"trueWindSpdUom": "kts"
7981006
},
799-
"pluginVersion": "2.0.0",
1007+
"pluginVersion": "2.1.0",
8001008
"targets": [
8011009
{
8021010
"datasource": {
@@ -847,5 +1055,5 @@
8471055
"timezone": "",
8481056
"title": "Provisioned compass-panel dashboard",
8491057
"uid": "a538aeff-5a8a-42a5-901c-938d896fdd6f",
850-
"version": 7
851-
}
1058+
"version": 11
1059+
}

0 commit comments

Comments
 (0)