From 2958227b910a2a3691b2f497582fb09fc18d971a Mon Sep 17 00:00:00 2001 From: Masoko Date: Fri, 25 Oct 2024 00:03:01 +0300 Subject: [PATCH] disaply internal IP & mac address in device info, hardware: section (#148) --- src/rpi-cpu2mqtt.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rpi-cpu2mqtt.py b/src/rpi-cpu2mqtt.py index 8c565e9..e8f0c1c 100644 --- a/src/rpi-cpu2mqtt.py +++ b/src/rpi-cpu2mqtt.py @@ -348,8 +348,9 @@ def config_json(what_config, device="0"): "model": 'RPi MQTT Monitor ' + config.version, "name": hostname, "sw_version": os, - "hw_version": model_name + " by " + manufacturer, - "configuration_url": "https://github.com/hjelev/rpi-mqtt-monitor" + "hw_version": model_name + " by " + manufacturer + " IP:" + get_network_ip(), + "configuration_url": "https://github.com/hjelev/rpi-mqtt-monitor", + "connections": [["mac", get_mac_address()]] } }