Hi,
no i am using simple dashboard, join and change modules. Dashboard Date and Numberinput, Change Topicnames, Join, cause the Inputs need to come in one Time. The Join change the Input to: {“date”:1643590800000,“state”:8913} and send it to mqtt.
The Timestamp Date is unix-ms i think. But i have no idea to parse it in Telegraf for InfluxDB and Grafana. Without the Timestamp the Data will not be on the right Place.
[
{
"id": "a3601b868b3443f7",
"type": "comment",
"z": "e954db9cd434d6f3",
"name": "Zählerstand",
"info": "",
"x": 310,
"y": 1680,
"wires": []
},
{
"id": "96841b65b8917f41",
"type": "ui_date_picker",
"z": "e954db9cd434d6f3",
"name": "",
"label": "Datum des Zählerstandes",
"group": "5934e2670cdcc8dc",
"order": 8,
"width": 0,
"height": 0,
"passthru": true,
"topic": "date",
"topicType": "msg",
"className": "",
"x": 350,
"y": 1740,
"wires": [
[
"339f4f1f01f6db42"
]
]
},
{
"id": "74c6308e0d42c692",
"type": "join",
"z": "e954db9cd434d6f3",
"name": "",
"mode": "custom",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": true,
"timeout": "",
"count": "2",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 710,
"y": 1760,
"wires": [
[
"fc60cb31e8c418a5",
"5f6eb6e898ee9859"
]
]
},
{
"id": "daeca697d0b28a24",
"type": "ui_text_input",
"z": "e954db9cd434d6f3",
"name": "",
"label": "Zählerstand",
"tooltip": "",
"group": "5934e2670cdcc8dc",
"order": 8,
"width": 0,
"height": 0,
"passthru": true,
"mode": "number",
"delay": 300,
"topic": "state",
"sendOnBlur": true,
"className": "",
"topicType": "msg",
"x": 310,
"y": 1780,
"wires": [
[
"26b3f992110a2ef1"
]
]
},
{
"id": "339f4f1f01f6db42",
"type": "change",
"z": "e954db9cd434d6f3",
"name": "date",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "date",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 550,
"y": 1740,
"wires": [
[
"74c6308e0d42c692"
]
]
},
{
"id": "26b3f992110a2ef1",
"type": "change",
"z": "e954db9cd434d6f3",
"name": "state",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "state",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 550,
"y": 1780,
"wires": [
[
"74c6308e0d42c692"
]
]
},
{
"id": "5f6eb6e898ee9859",
"type": "mqtt out",
"z": "e954db9cd434d6f3",
"name": "",
"topic": "manually/zahlstand",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "8aa7c4c7.b6d308",
"x": 930,
"y": 1760,
"wires": []
},
{
"id": "fc60cb31e8c418a5",
"type": "debug",
"z": "e954db9cd434d6f3",
"name": "Debug Join",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 910,
"y": 1720,
"wires": []
},
{
"id": "5934e2670cdcc8dc",
"type": "ui_group",
"name": "Stromzähler",
"tab": "7c6fa6e7.e5b808",
"order": 7,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "8aa7c4c7.b6d308",
"type": "mqtt-broker",
"name": "Mosquitto",
"broker": "172.50.0.5",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"compatmode": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"sessionExpiry": ""
},
{
"id": "7c6fa6e7.e5b808",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"order": 1,
"disabled": false,
"hidden": false
}
]