disaply internal IP & mac address in device info, hardware: section (#148)

This commit is contained in:
Masoko
2024-10-25 00:03:01 +03:00
committed by GitHub
parent f29227d7ed
commit 2958227b91

View File

@@ -348,8 +348,9 @@ def config_json(what_config, device="0"):
"model": 'RPi MQTT Monitor ' + config.version, "model": 'RPi MQTT Monitor ' + config.version,
"name": hostname, "name": hostname,
"sw_version": os, "sw_version": os,
"hw_version": model_name + " by " + manufacturer, "hw_version": model_name + " by " + manufacturer + " IP:" + get_network_ip(),
"configuration_url": "https://github.com/hjelev/rpi-mqtt-monitor" "configuration_url": "https://github.com/hjelev/rpi-mqtt-monitor",
"connections": [["mac", get_mac_address()]]
} }
} }