I am trying to use this node to display a chart that has my usage data but the chart displays nothing and i get the following message in the debug:
"Error: Invalid property expression: unexpected ' ' at position 14"
here is what I have for testing:
[
{
"id": "841f709cfbf9de7f",
"type": "inject",
"z": "f672d0ac69fd5b97",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 990,
"y": 380,
"wires": [
[
"fc4e0b59e0d7bd22"
]
]
},
{
"id": "4733e656fd184a6a",
"type": "inject",
"z": "f672d0ac69fd5b97",
"name": "start",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "set_meter_value 53.75",
"payloadType": "str",
"x": 1010,
"y": 440,
"wires": [
[
"fc4e0b59e0d7bd22"
]
]
},
{
"id": "1be6d39134f351ab",
"type": "debug",
"z": "f672d0ac69fd5b97",
"name": "debug 14",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 1180,
"y": 420,
"wires": []
},
{
"id": "c6b4d4dedbb755bf",
"type": "bar-chart-data",
"z": "f672d0ac69fd5b97",
"name": "bar-chart-data",
"x_interval": "minutes",
"x_size": "30",
"unit": "kwh",
"precision": "1",
"is_meter_reading": "True",
"agg_by": "sum",
"x": 1020,
"y": 480,
"wires": [
[
"0522bde4be469f65",
"1be6d39134f351ab"
]
]
},
{
"id": "0522bde4be469f65",
"type": "ui_chart",
"z": "f672d0ac69fd5b97",
"name": "",
"group": "8ee0bb75fa4e2113",
"order": 13,
"width": 0,
"height": 0,
"label": "Power usage",
"chartType": "bar",
"legend": "true",
"xformat": "D/M",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "0",
"ymax": "24",
"removeOlder": "30",
"removeOlderPoints": "",
"removeOlderUnit": "86400",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"className": "",
"x": 1030,
"y": 520,
"wires": [
[]
]
},
{
"id": "fc4e0b59e0d7bd22",
"type": "change",
"z": "f672d0ac69fd5b97",
"name": "topic",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "kwh",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 480,
"wires": [
[
"c6b4d4dedbb755bf"
]
]
},
{
"id": "8ee0bb75fa4e2113",
"type": "ui_group",
"name": "Main",
"tab": "9d03c9290d696c27",
"order": 1,
"disp": false,
"width": 6,
"collapse": false,
"className": ""
},
{
"id": "9d03c9290d696c27",
"type": "ui_tab",
"name": "Solar Power Stats",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]