Average Bar node issues

Hello,

I have started using average bar node and found many issues,

1)When I choose "last month" in X axis and tried to push 4 values:
a) It shows minimum and average the same values without bar as shown in picture

Another time after deploying it without any changes it shows like this. So this node doesnt seems to be stable. Did someone ever worked with it??

[
    {
        "id": "bc6bf97a001539c8",
        "type": "average-bars",
        "z": "146ab432f501375f",
        "name": "average-bars",
        "title": "",
        "period": "week",
        "yMin": "auto",
        "yMax": "auto",
        "showBarsValue": true,
        "showScaleValue": true,
        "showLastValue": true,
        "showAverageValue": true,
        "showMinimumValue": true,
        "showMaximumValue": true,
        "maxBar": 30,
        "topColor": "#ff0000",
        "bottomColor": "#ffff00",
        "unit": "",
        "fontColor": "#aaaaaa",
        "barStyle": "Rectangle",
        "decimal": "2",
        "x": 790,
        "y": 4500,
        "wires": [
            [
                "827a0a7c30e1dddf",
                "a098a5951e098acc"
            ]
        ]
    },
    {
        "id": "827a0a7c30e1dddf",
        "type": "ui_template",
        "z": "146ab432f501375f",
        "group": "dfd1615b66a4acd3",
        "name": "",
        "order": 1,
        "width": 0,
        "height": 0,
        "format": "<div ng-bind-html=\"msg.payload\"></div>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "resendOnRefresh": true,
        "templateScope": "local",
        "className": "",
        "x": 1020,
        "y": 4520,
        "wires": [
            [
                "a098a5951e098acc"
            ]
        ]
    },
    {
        "id": "1b71e9fd46711d53",
        "type": "inject",
        "z": "146ab432f501375f",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "10",
        "payloadType": "num",
        "x": 490,
        "y": 4500,
        "wires": [
            [
                "bc6bf97a001539c8"
            ]
        ]
    },
    {
        "id": "4aad7abbfe808983",
        "type": "inject",
        "z": "146ab432f501375f",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "2",
        "payloadType": "num",
        "x": 490,
        "y": 4560,
        "wires": [
            [
                "bc6bf97a001539c8"
            ]
        ]
    },
    {
        "id": "be23e54eb2218f88",
        "type": "inject",
        "z": "146ab432f501375f",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "23",
        "payloadType": "num",
        "x": 490,
        "y": 4620,
        "wires": [
            [
                "bc6bf97a001539c8"
            ]
        ]
    },
    {
        "id": "c65b07f9a4a8d73e",
        "type": "inject",
        "z": "146ab432f501375f",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "38",
        "payloadType": "num",
        "x": 490,
        "y": 4680,
        "wires": [
            [
                "bc6bf97a001539c8"
            ]
        ]
    },
    {
        "id": "723ba1797d6c764f",
        "type": "inject",
        "z": "146ab432f501375f",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "clear",
        "payloadType": "str",
        "x": 680,
        "y": 4640,
        "wires": [
            [
                "bc6bf97a001539c8"
            ]
        ]
    },
    {
        "id": "a098a5951e098acc",
        "type": "debug",
        "z": "146ab432f501375f",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1030,
        "y": 4400,
        "wires": []
    },
    {
        "id": "dfd1615b66a4acd3",
        "type": "ui_group",
        "name": "chart",
        "tab": "6ea35cc8fc451d69",
        "order": 4,
        "disp": true,
        "width": "15",
        "collapse": false,
        "className": ""
    },
    {
        "id": "6ea35cc8fc451d69",
        "type": "ui_tab",
        "name": "UR mine",
        "icon": "dashboard",
        "order": 48,
        "disabled": false,
        "hidden": false
    }
]

Is that GitHub - nazcasun/node-red-contrib-dashboard-average-bars: Calculate and display the average values of msg.payload in a bar chart.?

If so, it has not been updated in 5 years and appears to be no longer supported by the author. It may be that it just does not work any more. Probably you should find a different solution.

Oh oke. Do you have any suggestions or an alternative solution to find min, max and avg value and to show it in a graph?

I monitoring temperatures from every joint(6 axis robot) and i have 5 robots.
So basically i need to monitor 30 values for a month.

I would store the data in Influxdb and then use Grafana for complex charts. Alternatively you could fetch it from influx in node-red and display it using the standard dashboard chart. Influx queries can give you the min, max and average values.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.