gen_template.py - 生成模板和物模型配置
update.py - 运行在网关上，用于更新网关上现有的模板和物模型
templates.json - 需要生成多个模板以及物模型时，采用这个文件配置xlsl和template id信息
当有多个模板需要生成时，配置该文件
例如：

```json
{
	"templates": [{
			"file": "bms-ems_pack-1.xlsx",
			"template_id": "215144440"
		},
		{
			"file": "bms-ems_pack-2.xlsx",
			"template_id": "219439778"
		},
		{
			"file": "bms-ems_pack-3.xlsx",
			"template_id": "219465059"
		},
		{
			"file": "bms-ems_pack-4.xlsx",
			"template_id": "219466023"
		},
		{
			"file": "bms-ems_pack-5.xlsx",
			"template_id": "219466688"
		},
		{
			"file": "bms-ems_pack-6.xlsx",
			"template_id": "231788616"
		},
		{
			"file": "bms-ems_pack-7.xlsx",
			"template_id": "231788945"
		},
		{
			"file": "bms-ems_pack-8.xlsx",
			"template_id": "231789217"
		},
		{
			"file": "bms-ems_rack.xlsx",
			"template_id": "215131053"
		},
		{
			"file": "PCSModbusTCP_PCS30KW.xlsx",
			"template_id": "210295042"
		},
		{
			"file": "bms-ems_cluster1-12021-6-10.xlsx",
			"template_id": "215036828"
		}
	]
}
```
然后执行 python gen_template.py -i templates.json -m batch 一次生成多个模板配置文件


*.xlsx - 模板配置
xlsx格式为：
![image-20220117202350946](image-20220117202350946.png)
![image-20220117202633910](image-20220117202633910.png)

