Issue in split list


i want this image to be displayed like this
dryer n handling 636
finish line 81.82
mixer 146.25

whether its possible in my script?

In that case, you would need to construct you data lists of lists as you go.

Trimming out the unused portions of the original script would yield something like this:

excl= ["Device Info"]

header = ['Label', 'Value']
data = []

def browse(path, filter):
		results = system.tag.browse(path, filter)
		return results
	
res = browse('[MQTT Engine]Edge Nodes/Robertsbridge/Energy/Electric/Compressors',{'tagType': 'Folder'})
#print res
for result in res.getResults():
	if result.get("name") not in excl:
		x = result['name']
		server = ''.join([x])
		dat = system.tag.read('[MQTT Engine]Edge Nodes/Robertsbridge/Energy/Electric/Compressors/'+server+'/Total_Consumption/Total_Consumption_kW').value
		test.append(dat)
		data.append([str(x), dat])

out = system.dataset.toDataSet(header,data)

i am getting this error which i have mentioned in image
![image|690x184](upload://qWFlFNILzHD8umQ8EXhdYykh1BW.png)

Looks like you’re not getting any results from your browse.

I just closed the project and opened now working fine

1 Like