@5minds/node-red-contrib-processcube-elasticsearch 1.0.1 → 1.0.2-develop-fb42d7-m6g9701a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
},
|
|
430
430
|
"@5minds/node-red-contrib-processcube-elasticsearch": {
|
|
431
431
|
"name": "@5minds/node-red-contrib-processcube-elasticsearch",
|
|
432
|
-
"version": "1.0.
|
|
432
|
+
"version": "1.0.2",
|
|
433
433
|
"local": false,
|
|
434
434
|
"user": false,
|
|
435
435
|
"nodes": {
|
|
@@ -460,8 +460,8 @@
|
|
|
460
460
|
"do-red": {
|
|
461
461
|
"name": "do-red",
|
|
462
462
|
"version": "1.0.7",
|
|
463
|
-
"local":
|
|
464
|
-
"user":
|
|
463
|
+
"local": false,
|
|
464
|
+
"user": false,
|
|
465
465
|
"nodes": {
|
|
466
466
|
"do": {
|
|
467
467
|
"name": "do",
|
|
@@ -469,10 +469,10 @@
|
|
|
469
469
|
"do"
|
|
470
470
|
],
|
|
471
471
|
"enabled": true,
|
|
472
|
-
"local":
|
|
472
|
+
"local": false,
|
|
473
473
|
"user": false,
|
|
474
474
|
"module": "do-red",
|
|
475
|
-
"file": "/
|
|
475
|
+
"file": "/usr/src/node-red/node_modules/do-red/src/do.js"
|
|
476
476
|
},
|
|
477
477
|
"do-return": {
|
|
478
478
|
"name": "do-return",
|
|
@@ -480,354 +480,10 @@
|
|
|
480
480
|
"do-return"
|
|
481
481
|
],
|
|
482
482
|
"enabled": true,
|
|
483
|
-
"local":
|
|
483
|
+
"local": false,
|
|
484
484
|
"user": false,
|
|
485
485
|
"module": "do-red",
|
|
486
|
-
"file": "/
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
},
|
|
490
|
-
"@flowfuse/node-red-dashboard": {
|
|
491
|
-
"name": "@flowfuse/node-red-dashboard",
|
|
492
|
-
"version": "1.22.0",
|
|
493
|
-
"local": true,
|
|
494
|
-
"user": true,
|
|
495
|
-
"nodes": {
|
|
496
|
-
"ui-base": {
|
|
497
|
-
"name": "ui-base",
|
|
498
|
-
"types": [
|
|
499
|
-
"ui-base"
|
|
500
|
-
],
|
|
501
|
-
"enabled": true,
|
|
502
|
-
"local": true,
|
|
503
|
-
"user": false,
|
|
504
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
505
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_base.js"
|
|
506
|
-
},
|
|
507
|
-
"ui-page": {
|
|
508
|
-
"name": "ui-page",
|
|
509
|
-
"types": [
|
|
510
|
-
"ui-page"
|
|
511
|
-
],
|
|
512
|
-
"enabled": true,
|
|
513
|
-
"local": true,
|
|
514
|
-
"user": false,
|
|
515
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
516
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_page.js"
|
|
517
|
-
},
|
|
518
|
-
"ui-link": {
|
|
519
|
-
"name": "ui-link",
|
|
520
|
-
"types": [
|
|
521
|
-
"ui-link"
|
|
522
|
-
],
|
|
523
|
-
"enabled": true,
|
|
524
|
-
"local": true,
|
|
525
|
-
"user": false,
|
|
526
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
527
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_link.js"
|
|
528
|
-
},
|
|
529
|
-
"ui-group": {
|
|
530
|
-
"name": "ui-group",
|
|
531
|
-
"types": [
|
|
532
|
-
"ui-group"
|
|
533
|
-
],
|
|
534
|
-
"enabled": true,
|
|
535
|
-
"local": true,
|
|
536
|
-
"user": false,
|
|
537
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
538
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_group.js"
|
|
539
|
-
},
|
|
540
|
-
"ui-theme": {
|
|
541
|
-
"name": "ui-theme",
|
|
542
|
-
"types": [
|
|
543
|
-
"ui-theme"
|
|
544
|
-
],
|
|
545
|
-
"enabled": true,
|
|
546
|
-
"local": true,
|
|
547
|
-
"user": false,
|
|
548
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
549
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_theme.js"
|
|
550
|
-
},
|
|
551
|
-
"ui-form": {
|
|
552
|
-
"name": "ui-form",
|
|
553
|
-
"types": [
|
|
554
|
-
"ui-form"
|
|
555
|
-
],
|
|
556
|
-
"enabled": true,
|
|
557
|
-
"local": true,
|
|
558
|
-
"user": false,
|
|
559
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
560
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_form.js"
|
|
561
|
-
},
|
|
562
|
-
"ui-text-input": {
|
|
563
|
-
"name": "ui-text-input",
|
|
564
|
-
"types": [
|
|
565
|
-
"ui-text-input"
|
|
566
|
-
],
|
|
567
|
-
"enabled": true,
|
|
568
|
-
"local": true,
|
|
569
|
-
"user": false,
|
|
570
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
571
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_text_input.js"
|
|
572
|
-
},
|
|
573
|
-
"ui-number-input": {
|
|
574
|
-
"name": "ui-number-input",
|
|
575
|
-
"types": [
|
|
576
|
-
"ui-number-input"
|
|
577
|
-
],
|
|
578
|
-
"enabled": true,
|
|
579
|
-
"local": true,
|
|
580
|
-
"user": false,
|
|
581
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
582
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_number_input.js"
|
|
583
|
-
},
|
|
584
|
-
"ui-file-input": {
|
|
585
|
-
"name": "ui-file-input",
|
|
586
|
-
"types": [
|
|
587
|
-
"ui-file-input"
|
|
588
|
-
],
|
|
589
|
-
"enabled": true,
|
|
590
|
-
"local": true,
|
|
591
|
-
"user": false,
|
|
592
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
593
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_file_input.js"
|
|
594
|
-
},
|
|
595
|
-
"ui-button": {
|
|
596
|
-
"name": "ui-button",
|
|
597
|
-
"types": [
|
|
598
|
-
"ui-button"
|
|
599
|
-
],
|
|
600
|
-
"enabled": true,
|
|
601
|
-
"local": true,
|
|
602
|
-
"user": false,
|
|
603
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
604
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_button.js"
|
|
605
|
-
},
|
|
606
|
-
"ui-button-group": {
|
|
607
|
-
"name": "ui-button-group",
|
|
608
|
-
"types": [
|
|
609
|
-
"ui-button-group"
|
|
610
|
-
],
|
|
611
|
-
"enabled": true,
|
|
612
|
-
"local": true,
|
|
613
|
-
"user": false,
|
|
614
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
615
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_button_group.js"
|
|
616
|
-
},
|
|
617
|
-
"ui-dropdown": {
|
|
618
|
-
"name": "ui-dropdown",
|
|
619
|
-
"types": [
|
|
620
|
-
"ui-dropdown"
|
|
621
|
-
],
|
|
622
|
-
"enabled": true,
|
|
623
|
-
"local": true,
|
|
624
|
-
"user": false,
|
|
625
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
626
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_dropdown.js"
|
|
627
|
-
},
|
|
628
|
-
"ui-radio-group": {
|
|
629
|
-
"name": "ui-radio-group",
|
|
630
|
-
"types": [
|
|
631
|
-
"ui-radio-group"
|
|
632
|
-
],
|
|
633
|
-
"enabled": true,
|
|
634
|
-
"local": true,
|
|
635
|
-
"user": false,
|
|
636
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
637
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_radio_group.js"
|
|
638
|
-
},
|
|
639
|
-
"ui-slider": {
|
|
640
|
-
"name": "ui-slider",
|
|
641
|
-
"types": [
|
|
642
|
-
"ui-slider"
|
|
643
|
-
],
|
|
644
|
-
"enabled": true,
|
|
645
|
-
"local": true,
|
|
646
|
-
"user": false,
|
|
647
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
648
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_slider.js"
|
|
649
|
-
},
|
|
650
|
-
"ui-spacer": {
|
|
651
|
-
"name": "ui-spacer",
|
|
652
|
-
"types": [
|
|
653
|
-
"ui-spacer"
|
|
654
|
-
],
|
|
655
|
-
"enabled": true,
|
|
656
|
-
"local": true,
|
|
657
|
-
"user": false,
|
|
658
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
659
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_spacer.js"
|
|
660
|
-
},
|
|
661
|
-
"ui-switch": {
|
|
662
|
-
"name": "ui-switch",
|
|
663
|
-
"types": [
|
|
664
|
-
"ui-switch"
|
|
665
|
-
],
|
|
666
|
-
"enabled": true,
|
|
667
|
-
"local": true,
|
|
668
|
-
"user": false,
|
|
669
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
670
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_switch.js"
|
|
671
|
-
},
|
|
672
|
-
"ui-text": {
|
|
673
|
-
"name": "ui-text",
|
|
674
|
-
"types": [
|
|
675
|
-
"ui-text"
|
|
676
|
-
],
|
|
677
|
-
"enabled": true,
|
|
678
|
-
"local": true,
|
|
679
|
-
"user": false,
|
|
680
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
681
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_text.js"
|
|
682
|
-
},
|
|
683
|
-
"ui-table": {
|
|
684
|
-
"name": "ui-table",
|
|
685
|
-
"types": [
|
|
686
|
-
"ui-table"
|
|
687
|
-
],
|
|
688
|
-
"enabled": true,
|
|
689
|
-
"local": true,
|
|
690
|
-
"user": false,
|
|
691
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
692
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_table.js"
|
|
693
|
-
},
|
|
694
|
-
"ui-chart": {
|
|
695
|
-
"name": "ui-chart",
|
|
696
|
-
"types": [
|
|
697
|
-
"ui-chart"
|
|
698
|
-
],
|
|
699
|
-
"enabled": true,
|
|
700
|
-
"local": true,
|
|
701
|
-
"user": false,
|
|
702
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
703
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_chart.js"
|
|
704
|
-
},
|
|
705
|
-
"ui-gauge": {
|
|
706
|
-
"name": "ui-gauge",
|
|
707
|
-
"types": [
|
|
708
|
-
"ui-gauge"
|
|
709
|
-
],
|
|
710
|
-
"enabled": true,
|
|
711
|
-
"local": true,
|
|
712
|
-
"user": false,
|
|
713
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
714
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_gauge.js"
|
|
715
|
-
},
|
|
716
|
-
"ui-notification": {
|
|
717
|
-
"name": "ui-notification",
|
|
718
|
-
"types": [
|
|
719
|
-
"ui-notification"
|
|
720
|
-
],
|
|
721
|
-
"enabled": true,
|
|
722
|
-
"local": true,
|
|
723
|
-
"user": false,
|
|
724
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
725
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_notification.js"
|
|
726
|
-
},
|
|
727
|
-
"ui-audio": {
|
|
728
|
-
"name": "ui-audio",
|
|
729
|
-
"types": [
|
|
730
|
-
"ui-audio"
|
|
731
|
-
],
|
|
732
|
-
"enabled": true,
|
|
733
|
-
"local": true,
|
|
734
|
-
"user": false,
|
|
735
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
736
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_audio.js"
|
|
737
|
-
},
|
|
738
|
-
"ui-markdown": {
|
|
739
|
-
"name": "ui-markdown",
|
|
740
|
-
"types": [
|
|
741
|
-
"ui-markdown"
|
|
742
|
-
],
|
|
743
|
-
"enabled": true,
|
|
744
|
-
"local": true,
|
|
745
|
-
"user": false,
|
|
746
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
747
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_markdown.js"
|
|
748
|
-
},
|
|
749
|
-
"ui-template": {
|
|
750
|
-
"name": "ui-template",
|
|
751
|
-
"types": [
|
|
752
|
-
"ui-template"
|
|
753
|
-
],
|
|
754
|
-
"enabled": true,
|
|
755
|
-
"local": true,
|
|
756
|
-
"user": false,
|
|
757
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
758
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_template.js"
|
|
759
|
-
},
|
|
760
|
-
"ui-event": {
|
|
761
|
-
"name": "ui-event",
|
|
762
|
-
"types": [
|
|
763
|
-
"ui-event"
|
|
764
|
-
],
|
|
765
|
-
"enabled": true,
|
|
766
|
-
"local": true,
|
|
767
|
-
"user": false,
|
|
768
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
769
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_event.js"
|
|
770
|
-
},
|
|
771
|
-
"ui-control": {
|
|
772
|
-
"name": "ui-control",
|
|
773
|
-
"types": [
|
|
774
|
-
"ui-control"
|
|
775
|
-
],
|
|
776
|
-
"enabled": true,
|
|
777
|
-
"local": true,
|
|
778
|
-
"user": false,
|
|
779
|
-
"module": "@flowfuse/node-red-dashboard",
|
|
780
|
-
"file": "/data/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_control.js"
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
},
|
|
784
|
-
"node-red-contrib-oauth2": {
|
|
785
|
-
"name": "node-red-contrib-oauth2",
|
|
786
|
-
"version": "6.2.1",
|
|
787
|
-
"local": true,
|
|
788
|
-
"user": true,
|
|
789
|
-
"nodes": {
|
|
790
|
-
"oauth2": {
|
|
791
|
-
"name": "oauth2",
|
|
792
|
-
"types": [
|
|
793
|
-
"oauth2",
|
|
794
|
-
"oauth2"
|
|
795
|
-
],
|
|
796
|
-
"enabled": true,
|
|
797
|
-
"local": true,
|
|
798
|
-
"user": false,
|
|
799
|
-
"module": "node-red-contrib-oauth2",
|
|
800
|
-
"file": "/data/node_modules/node-red-contrib-oauth2/src/oauth2.js"
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
},
|
|
804
|
-
"node-red-contrib-opentelemetry": {
|
|
805
|
-
"name": "node-red-contrib-opentelemetry",
|
|
806
|
-
"version": "1.6.2",
|
|
807
|
-
"local": true,
|
|
808
|
-
"user": true,
|
|
809
|
-
"nodes": {
|
|
810
|
-
"opentelemetry": {
|
|
811
|
-
"name": "opentelemetry",
|
|
812
|
-
"types": [
|
|
813
|
-
"OpenTelemetry"
|
|
814
|
-
],
|
|
815
|
-
"enabled": true,
|
|
816
|
-
"local": true,
|
|
817
|
-
"user": false,
|
|
818
|
-
"module": "node-red-contrib-opentelemetry",
|
|
819
|
-
"file": "/data/node_modules/node-red-contrib-opentelemetry/lib/opentelemetry-node.js"
|
|
820
|
-
},
|
|
821
|
-
"prometheus": {
|
|
822
|
-
"name": "prometheus",
|
|
823
|
-
"types": [
|
|
824
|
-
"Prometheus Exporter"
|
|
825
|
-
],
|
|
826
|
-
"enabled": true,
|
|
827
|
-
"local": true,
|
|
828
|
-
"user": false,
|
|
829
|
-
"module": "node-red-contrib-opentelemetry",
|
|
830
|
-
"file": "/data/node_modules/node-red-contrib-opentelemetry/lib/prometheus-node.js"
|
|
486
|
+
"file": "/usr/src/node-red/node_modules/do-red/src/do-return.js"
|
|
831
487
|
}
|
|
832
488
|
}
|
|
833
489
|
}
|
|
@@ -154,11 +154,12 @@
|
|
|
154
154
|
"443b329ab591c4dd",
|
|
155
155
|
"f4a0d7de5d04c121",
|
|
156
156
|
"946add545fa1db9f",
|
|
157
|
-
"0c15060915aac994"
|
|
157
|
+
"0c15060915aac994",
|
|
158
|
+
"e24afd410636eb66"
|
|
158
159
|
],
|
|
159
160
|
"x": 34,
|
|
160
161
|
"y": 19,
|
|
161
|
-
"w":
|
|
162
|
+
"w": 552,
|
|
162
163
|
"h": 202
|
|
163
164
|
},
|
|
164
165
|
{
|
|
@@ -188,7 +189,7 @@
|
|
|
188
189
|
"id": "e8672d361683672d",
|
|
189
190
|
"type": "elastic-search-logger",
|
|
190
191
|
"name": "Docker compose",
|
|
191
|
-
"url": "http://elasticsearch:9200",
|
|
192
|
+
"url": "http://elasticsearch:9200/",
|
|
192
193
|
"urlType": "str",
|
|
193
194
|
"usernameType": "str",
|
|
194
195
|
"passwordType": "str",
|
|
@@ -621,7 +622,9 @@
|
|
|
621
622
|
"x": 300,
|
|
622
623
|
"y": 120,
|
|
623
624
|
"wires": [
|
|
624
|
-
[
|
|
625
|
+
[
|
|
626
|
+
"e24afd410636eb66"
|
|
627
|
+
]
|
|
625
628
|
]
|
|
626
629
|
},
|
|
627
630
|
{
|
|
@@ -746,5 +749,22 @@
|
|
|
746
749
|
"x": 140,
|
|
747
750
|
"y": 300,
|
|
748
751
|
"wires": []
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"id": "e24afd410636eb66",
|
|
755
|
+
"type": "debug",
|
|
756
|
+
"z": "53b75a173ac5abcc",
|
|
757
|
+
"g": "38edcaecf5968ff5",
|
|
758
|
+
"name": "debug 6",
|
|
759
|
+
"active": true,
|
|
760
|
+
"tosidebar": true,
|
|
761
|
+
"console": false,
|
|
762
|
+
"tostatus": false,
|
|
763
|
+
"complete": "false",
|
|
764
|
+
"statusVal": "",
|
|
765
|
+
"statusType": "auto",
|
|
766
|
+
"x": 480,
|
|
767
|
+
"y": 120,
|
|
768
|
+
"wires": []
|
|
749
769
|
}
|
|
750
770
|
]
|
package/elastic-search-logger.js
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = function (RED) {
|
|
4
4
|
|
|
5
|
+
function removeLastSlash(str) {
|
|
6
|
+
// Überprüfen, ob das letzte Zeichen ein '/' ist
|
|
7
|
+
if (str.endsWith('/')) {
|
|
8
|
+
// Das letzte Zeichen entfernen
|
|
9
|
+
return str.slice(0, -1);
|
|
10
|
+
}
|
|
11
|
+
// Wenn kein '/' am Ende ist, den String unverändert zurückgeben
|
|
12
|
+
return str;
|
|
13
|
+
}
|
|
14
|
+
|
|
5
15
|
function raiseErrorAndSetNodeStatus(node, message) {
|
|
6
16
|
node.error(message, {});
|
|
7
17
|
node.status({
|
|
@@ -41,7 +51,12 @@ module.exports = function (RED) {
|
|
|
41
51
|
}
|
|
42
52
|
|
|
43
53
|
if (url) {
|
|
44
|
-
|
|
54
|
+
|
|
55
|
+
const finalUrl = removeLastSlash(url);
|
|
56
|
+
|
|
57
|
+
node._url = `${finalUrl}/${index}/_doc`;
|
|
58
|
+
|
|
59
|
+
RED.log.info(`Using elastic url: ${node._url}`);
|
|
45
60
|
|
|
46
61
|
if (user && password) {
|
|
47
62
|
node._credentials = Buffer.from(`${user}:${password}`).toString('base64');
|