Maintenance update

This commit is contained in:
2025-03-17 08:17:51 +01:00
parent a1fd3c455a
commit f5e0ceb3b7
2 changed files with 3 additions and 67 deletions

View File

@@ -40,7 +40,7 @@ allowed_name_characters.append('.')
logging.basicConfig(format='%(asctime)s %(levelname)-8s %(message)s', filename='data_config_debug.log', filemode='w', level=logging.DEBUG, datefmt='%Y%m%d%H%M%S')
dir_name = 'I-Sight_Generated_Files'
input_datamodel = 'DATAMODEL_1.0.6_DANISH.xlsx'
input_datamodel = 'DATAMODEL_1.0.6_BEI.xlsx'
shell_script_name = dir_name + '/I-Sight_Configuration_'
global_shell_script_name = dir_name + '/I-Sight_Global_Configuration.sh'
@@ -204,7 +204,7 @@ def jq_filter(current_device, dsh, dsh_global, row_device):
if filter in jq_filter_set and filter != "bitfield":
logging.debug("Creating standard telemetry topic " + filter + ".")
jq_data = {}
jq_data["enable"] = False
jq_data["enable"] = True
jq_data["properties"] = [{"key": "deviceType", "value": "AC_GATEWAY"}, {"key": "cdid", "value": current_device}]
jq_data["outputTopic"] = filter
jq_data["sendOutThreshold"] = {"mode": "bySize", "size": int(128000), "time": int(30), "sizeIdleTimer": {"enable": True, "time": int(30)}}
@@ -505,4 +505,4 @@ if __name__ == "__main__":
main()
logging.shutdown()
shutil.move("data_config_debug.log", dir_name + "/data_config_debug.log")