pi@raspberrypi:~ $ bash -x /home/pi/bin/read_send_meters_mqtt.sh
+ ADDRESS_FILE=/home/pi/addresses.txt
+ BAUDRATE=2400
+ DEVICE=/dev/ttyUSB0
+ MQTT_HOST=192.168.0.34
+ MQTT_Port=1883
+ MQTT_USER=mqtt_user
+ MQTT_PASS=floete123
+ MQTT_TOPIC=mbusmeters
+ '[' '!' -f /home/pi/addresses.txt ']'
++ date
+ echo -e '\n Sun 2 Jan 10:44:04 GMT 2022'
Sun 2 Jan 10:44:04 GMT 2022
+ echo 'Sending data to host 192.168.0.34 as user '\''mqtt_user'\'' using topic '\''mbusmeters/'\''.'
Sending data to host 192.168.0.34 as user 'mqtt_user' using topic 'mbusmeters/'.
+ read -r ameter
++ cat /home/pi/addresses.txt
+ echo -n 'Getting data from 00101362434C2402...'
Getting data from 00101362434C2402...++ mbus-serial-request-data -b 2400 /dev/ttyUSB0 00101362434C2402
++ xq .
++ sed -e s/@/_/
+ METER_DATA='{
"MBusData": {
"SlaveInformation": {
"Id": "101362",
"Manufacturer": "SBC",
"Version": "36",
"ProductName": null,
"Medium": "Electricity",
"AccessNumber": "68",
"Status": "00",
"Signature": "0000"
},
"DataRecord": [
{
"_id": "0",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "69610",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "1",
"Function": "Instantaneous value",
"StorageNumber": "2",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "69610",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "2",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "229",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "3",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "0",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "4",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "5",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:05Z"
}
]
}
}'
+ /usr/bin/mosquitto_pub -h 192.168.0.34 -p 1883 -u mqtt_user -P floete123 -t mbusmeters/00101362434C2402 -m '{
"MBusData": {
"SlaveInformation": {
"Id": "101362",
"Manufacturer": "SBC",
"Version": "36",
"ProductName": null,
"Medium": "Electricity",
"AccessNumber": "68",
"Status": "00",
"Signature": "0000"
},
"DataRecord": [
{
"_id": "0",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "69610",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "1",
"Function": "Instantaneous value",
"StorageNumber": "2",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "69610",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "2",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "229",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "3",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "0",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "4",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "5",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:05Z"
}
]
}
}'
++ echo '{
"MBusData": {
"SlaveInformation": {
"Id": "101362",
"Manufacturer": "SBC",
"Version": "36",
"ProductName": null,
"Medium": "Electricity",
"AccessNumber": "68",
"Status": "00",
"Signature": "0000"
},
"DataRecord": [
{
"_id": "0",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "69610",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "1",
"Function": "Instantaneous value",
"StorageNumber": "2",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "69610",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "2",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "229",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"++ wc -c
_id": "3",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "0",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "4",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "5",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:05Z"
}
]
}
}'
+ BYTCNT=1674
+ echo ' 1674 bytes sent'
1674 bytes sent
+ echo '{
"MBusData": {
"SlaveInformation": {
"Id": "101362",
"Manufacturer": "SBC",
"Version": "36",
"ProductName": null,
"Medium": "Electricity",
"AccessNumber": "68",
"Status": "00",
"Signature": "0000"
},
"DataRecord": [
{
"_id": "0",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "69610",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "1",
"Function": "Instantaneous value",
"StorageNumber": "2",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "69610",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "2",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "229",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_+ jq '{ id : .MBusData.SlaveInformation.Id, manufacturer: .MBusData.SlaveInformation.Manufacturer, medium : .MBusData.SlaveInformation.Medium, records : .MBusData.DataRecord | length }'
id": "3",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "0",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "4",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:05Z"
},
{
"_id": "5",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:05Z"
}
]
}
}'
{
"id": "101362",
"manufacturer": "SBC",
"medium": "Electricity",
"records": 6
}
+ read -r ameter
+ echo -n 'Getting data from 20000247434C1702...'
Getting data from 20000247434C1702...++ mbus-serial-request-data -b 2400 /dev/ttyUSB0 20000247434C1702
++ sed -e s/@/_/
++ xq .
+ METER_DATA='{
"MBusData": {
"SlaveInformation": {
"Id": "20000247",
"Manufacturer": "SBC",
"Version": "23",
"ProductName": null,
"Medium": "Electricity",
"AccessNumber": "66",
"Status": "00",
"Signature": "0000"
},
"DataRecord": [
{
"_id": "0",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "1659203",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "1",
"Function": "Instantaneous value",
"StorageNumber": "2",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "1659203",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "2",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "2",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "3",
"Function": "Instantaneous value",
"StorageNumber": "2",
"Tariff": "2",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "4",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "231",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "5",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "2",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "6",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "1",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "7",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "-3",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "8",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "232",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "9",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "10",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "11",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "12",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "243",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "13",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "14",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "15",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "3",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "16",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Manufacturer specific",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "17",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "1",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "18",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "19",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Manufacturer specific",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
}
]
}
}'
+ /usr/bin/mosquitto_pub -h 192.168.0.34 -p 1883 -u mqtt_user -P floete123 -t mbusmeters/20000247434C1702 -m '{
"MBusData": {
"SlaveInformation": {
"Id": "20000247",
"Manufacturer": "SBC",
"Version": "23",
"ProductName": null,
"Medium": "Electricity",
"AccessNumber": "66",
"Status": "00",
"Signature": "0000"
},
"DataRecord": [
{
"_id": "0",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "1659203",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "1",
"Function": "Instantaneous value",
"StorageNumber": "2",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "1659203",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "2",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "2",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "3",
"Function": "Instantaneous value",
"StorageNumber": "2",
"Tariff": "2",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "4",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "231",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "5",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "2",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "6",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "1",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "7",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "-3",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "8",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "232",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "9",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "10",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "11",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "12",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "243",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "13",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "14",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "15",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "3",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "16",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Manufacturer specific",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "17",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "1",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "18",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "19",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Manufacturer specific",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
}
]
}
}'
++ echo '{
"MBusData": {
"SlaveInformation": {
"Id": "20000247",
"Manufacturer": "SBC",
"Version": "23",
"ProductName": null,
"Medium": "Electricity",
"AccessNumber": "66",
"Status": "00",
"Signature": "0000"
},
"DataRecord": [
{
"_id": "0",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "1659203",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "1",
"Function": "Instantaneous value",
"StorageNumber": "2",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "1659203",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "2",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "2",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "0",
++ wc -c
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "3",
"Function": "Instantaneous value",
"StorageNumber": "2",
"Tariff": "2",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "4",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "231",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "5",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "2",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "6",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "1",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "7",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "-3",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "8",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "232",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "9",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "10",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "11",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "12",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "243",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "13",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "14",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "15",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "3",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "16",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Manufacturer specific",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "17",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "1",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "18",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "19",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Manufacturer specific",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
}
]
}
}'
+ BYTCNT=4827
+ echo ' 4827 bytes sent'
4827 bytes sent
+ jq '{ id : .MBusData.SlaveInformation.Id, manufacturer: .MBusData.SlaveInformation.Manufacturer, medium : .MBusData.SlaveInformation.Medium, records : .MBusData.DataRecord | length }'
+ echo '{
"MBusData": {
"SlaveInformation": {
"Id": "20000247",
"Manufacturer": "SBC",
"Version": "23",
"ProductName": null,
"Medium": "Electricity",
"AccessNumber": "66",
"Status": "00",
"Signature": "0000"
},
"DataRecord": [
{
"_id": "0",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "1659203",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "1",
"Function": "Instantaneous value",
"StorageNumber": "2",
"Tariff": "1",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "1659203",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "2",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "2",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "3",
"Function": "Instantaneous value",
"StorageNumber": "2",
"Tariff": "2",
"Device": "0",
"Unit": "Energy (10 Wh)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "4",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "231",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "5",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "2",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "6",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "1",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "7",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "-3",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "8",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "232",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "9",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "10",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "11",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "12",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "V",
"Value": "243",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "13",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "1e-1 A",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "14",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "15",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "3",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "16",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Manufacturer specific",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "17",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Power (10 W)",
"Value": "1",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "18",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Tariff": "0",
"Device": "1",
"Unit": "Power (10 W)",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
},
{
"_id": "19",
"Function": "Instantaneous value",
"StorageNumber": "0",
"Unit": "Manufacturer specific",
"Value": "0",
"Timestamp": "2022-01-02T10:44:18Z"
}
]
}
}'
{
"id": "20000247",
"manufacturer": "SBC",
"medium": "Electricity",
"records": 20
}
+ read -r ameter
Alles anzeigen
Bei 5 min ändert sich von sich aus auch nichts. Menge bleibt viel zu klein.