Hello!
I am trying to display data which is being choose through drop down node on the dashboard. I have tried this but it works ok for the first time and as I choose 2nd time it shows any value from the list. I have done as below. Kindly guide me.
before this I didn't use change node but then I added thinking that something can be done with the topic and payload to display selected value.
[{"id":"d499028f.0d59f","type":"ui_dropdown","z":"d5fb055e.9fec08","name":"","label":"","place":"Select option","group":"70709469.2c1bcc","order":0,"width":0,"singleBrowser":false,"height":0,"passthru":true,"options":[{"label":"Agg1_Current_Weight","value":"payload.Agg1","type":"str"},{"label":"Agg2_Current_Weight","value":"payload.Agg2","type":"str"},{"label":"Agg3_Current_Weight","value":"payload.Agg3","type":"str"},{"label":"Agg4_Current_Weight","value":"payload.Agg4","type":"str"},{"label":"Bitumen_Current_Weight","value":"payload.Bitumen","type":"str"},{"label":"Filler_Current_Weight","value":"payload.Filler","type":"str"}],"payload":"","topic":"","powerMode":false,"x":1120,"y":620,"wires":[["136118a6.b02817","38e85ae4.5c4686"]],"_type":"node"},{"id":"93a9b3ea.1e91d","type":"read timeseries","z":"d5fb055e.9fec08","name":"All 6 var read","topic":"1a655a707b4a445a98eb4f4e516b02a0/BatchMix_Current_Weight/Agg1_Current_Weight,Agg2_Current_Weight,Agg3_Current_Weight,Agg4_Current_Weight,Bitumen_Current_Weight,Filler_Current_Weight","topicLabel":"BatchMix/BatchMix_Current_Weight/Agg1_Current_Weight,Agg2_Current_Weight,Agg3_Current_Weight,Agg4_Current_Weight,Bitumen_Current_Weight,Filler_Current_Weight","topicData":"{\"asset\":\"1a655a707b4a445a98eb4f4e516b02a0\",\"assetName\":\"BatchMix\",\"aspects\":[{\"aspectId\":\"cde53ccd1ff84624af95951d5dc41188\",\"aspectName\":\"BatchMix_Current_Weight\",\"variables\":[{\"variableId\":\"te977db91a139c\",\"name\":\"Agg1_Current_Weight\"},{\"variableId\":\"tf977db91a139d\",\"name\":\"Agg2_Current_Weight\"},{\"variableId\":\"tg977db91a139e\",\"name\":\"Agg3_Current_Weight\"},{\"variableId\":\"th977db91a139f\",\"name\":\"Agg4_Current_Weight\"},{\"variableId\":\"ti977db91a13a0\",\"name\":\"Bitumen_Current_Weight\"},{\"variableId\":\"tj977db91a13a1\",\"name\":\"Filler_Current_Weight\"}]}]}","assetName":"","selectedTopics":"","period":"60","offset":"0","mode":"lastValue","from":"","datetimepickerFrom":"","to":"","datetimepickerTo":"","timezoneoffset":0,"x":270,"y":600,"wires":[["d0958e27.c7ed6","a8cd0226.a5993","4ec21130.a754","44eb1d46.840f94","b39f0773.b87d28","fc4bda16.832b88"]],"_type":"node"},{"id":"38e85ae4.5c4686","type":"ui_gauge","z":"d5fb055e.9fec08","name":"","group":"70709469.2c1bcc","order":0,"width":0,"singleBrowser":false,"height":0,"gtype":"gage","title":"gauge","label":"units","format":"{{msg.payload}}","min":0,"max":"500","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1410,"y":720,"wires":[],"_type":"node"},{"id":"c96e2f4c.82b9a","type":"ui_button","z":"d5fb055e.9fec08","name":"","group":"70709469.2c1bcc","order":0,"width":0,"singleBrowser":false,"height":0,"passthru":false,"label":"button","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"Current_Weight","powerMode":false,"x":110,"y":600,"wires":[["93a9b3ea.1e91d"]],"_type":"node"},{"id":"d0958e27.c7ed6","type":"extract parameter","z":"d5fb055e.9fec08","name":"Agg1_Current_Weight","topic":"1a655a707b4a445a98eb4f4e516b02a0/BatchMix_Current_Weight/Agg1_Current_Weight","topicData":"{\"asset\":\"1a655a707b4a445a98eb4f4e516b02a0\",\"assetName\":\"BatchMix\",\"aspect\":\"cde53ccd1ff84624af95951d5dc41188\",\"aspectName\":\"BatchMix_Current_Weight\",\"variable\":\"te977db91a139c\",\"variableName\":\"Agg1_Current_Weight\"}","parameter":"Agg1_Current_Weight","x":580,"y":440,"wires":[["e45338ad.d3f048"]],"_type":"node"},{"id":"a8cd0226.a5993","type":"extract parameter","z":"d5fb055e.9fec08","name":"Agg2_Current_Weight","topic":"1a655a707b4a445a98eb4f4e516b02a0/BatchMix_Current_Weight/Agg2_Current_Weight","topicData":"{\"asset\":\"1a655a707b4a445a98eb4f4e516b02a0\",\"assetName\":\"BatchMix\",\"aspect\":\"cde53ccd1ff84624af95951d5dc41188\",\"aspectName\":\"BatchMix_Current_Weight\",\"variable\":\"tf977db91a139d\",\"variableName\":\"Agg2_Current_Weight\"}","parameter":"Agg2_Current_Weight","x":587.49609375,"y":497.06640625,"wires":[["12dec0e5.0650af"]],"_type":"node"},{"id":"4ec21130.a754","type":"extract parameter","z":"d5fb055e.9fec08","name":"Agg3_Current_Weight","topic":"1a655a707b4a445a98eb4f4e516b02a0/BatchMix_Current_Weight/Agg3_Current_Weight","topicData":"{\"asset\":\"1a655a707b4a445a98eb4f4e516b02a0\",\"assetName\":\"BatchMix\",\"aspect\":\"cde53ccd1ff84624af95951d5dc41188\",\"aspectName\":\"BatchMix_Current_Weight\",\"variable\":\"tg977db91a139e\",\"variableName\":\"Agg3_Current_Weight\"}","parameter":"Agg3_Current_Weight","x":587.49609375,"y":559.06640625,"wires":[["7f2ae022.7d546"]],"_type":"node"},{"id":"44eb1d46.840f94","type":"extract parameter","z":"d5fb055e.9fec08","name":"Agg4_Current_Weight","topic":"1a655a707b4a445a98eb4f4e516b02a0/BatchMix_Current_Weight/Agg4_Current_Weight","topicData":"{\"asset\":\"1a655a707b4a445a98eb4f4e516b02a0\",\"assetName\":\"BatchMix\",\"aspect\":\"cde53ccd1ff84624af95951d5dc41188\",\"aspectName\":\"BatchMix_Current_Weight\",\"variable\":\"th977db91a139f\",\"variableName\":\"Agg4_Current_Weight\"}","parameter":"Agg4_Current_Weight","x":587.49609375,"y":619.06640625,"wires":[["778fea35.806834"]],"_type":"node"},{"id":"b39f0773.b87d28","type":"extract parameter","z":"d5fb055e.9fec08","name":"Bitumen_Current_Weight","topic":"1a655a707b4a445a98eb4f4e516b02a0/BatchMix_Current_Weight/Bitumen_Current_Weight","topicData":"{\"asset\":\"1a655a707b4a445a98eb4f4e516b02a0\",\"assetName\":\"BatchMix\",\"aspect\":\"cde53ccd1ff84624af95951d5dc41188\",\"aspectName\":\"BatchMix_Current_Weight\",\"variable\":\"ti977db91a13a0\",\"variableName\":\"Bitumen_Current_Weight\"}","parameter":"Bitumen_Current_Weight","x":590,"y":680,"wires":[["1090a631.5ac02a"]],"_type":"node"},{"id":"fc4bda16.832b88","type":"extract parameter","z":"d5fb055e.9fec08","name":"Filler_Current_Weight","topic":"1a655a707b4a445a98eb4f4e516b02a0/BatchMix_Current_Weight/Filler_Current_Weight","topicData":"{\"asset\":\"1a655a707b4a445a98eb4f4e516b02a0\",\"assetName\":\"BatchMix\",\"aspect\":\"cde53ccd1ff84624af95951d5dc41188\",\"aspectName\":\"BatchMix_Current_Weight\",\"variable\":\"tj977db91a13a1\",\"variableName\":\"Filler_Current_Weight\"}","parameter":"Filler_Current_Weight","x":587.49609375,"y":759.06640625,"wires":[["1c191cf6.f0add3"]],"_type":"node"},{"id":"e45338ad.d3f048","type":"change","z":"d5fb055e.9fec08","name":"set topic to agg1","rules":[{"t":"set","p":"topic","pt":"msg","to":"Agg1","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"payload[0]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":440,"wires":[["d499028f.0d59f"]],"_type":"node"},{"id":"12dec0e5.0650af","type":"change","z":"d5fb055e.9fec08","name":"set topic to agg2","rules":[{"t":"set","p":"topic","pt":"msg","to":"Agg2","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"payload[0]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":500,"wires":[["d499028f.0d59f"]],"_type":"node"},{"id":"7f2ae022.7d546","type":"change","z":"d5fb055e.9fec08","name":"set topic to agg3","rules":[{"t":"set","p":"topic","pt":"msg","to":"Agg3","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"payload[0]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":560,"wires":[["d499028f.0d59f"]],"_type":"node"},{"id":"778fea35.806834","type":"change","z":"d5fb055e.9fec08","name":"set topic to agg4","rules":[{"t":"set","p":"topic","pt":"msg","to":"Agg4","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"payload[0]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":620,"wires":[["d499028f.0d59f"]],"_type":"node"},{"id":"1090a631.5ac02a","type":"change","z":"d5fb055e.9fec08","name":"set topic to Bitumen","rules":[{"t":"set","p":"topic","pt":"msg","to":"Bitumen","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"payload[0]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":680,"wires":[["d499028f.0d59f"]],"_type":"node"},{"id":"1c191cf6.f0add3","type":"change","z":"d5fb055e.9fec08","name":"set topic to Filler","rules":[{"t":"set","p":"topic","pt":"msg","to":"Filler","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"payload[0]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":760,"wires":[["d499028f.0d59f"]],"_type":"node"},{"id":"136118a6.b02817","type":"debug","z":"d5fb055e.9fec08","name":"","active":true,"console":"false","xaxis":"","complete":"payload","x":1383.5,"y":627.97265625,"wires":[],"_type":"node"},{"id":"70709469.2c1bcc","type":"ui_group","z":"","name":"Position","tab":"71bf6668.e36f88","order":3,"disp":true,"width":"6","collapse":false,"_type":"config"},{"id":"71bf6668.e36f88","type":"ui_tab","z":"","name":"PLANT1","icon":"dashboard","publicAccess":"true","fmAccess":"default","fmAccessType":"private","assetType":"","asset":"","assetName":"","assetText":"","image":"","description":"","hideTitleBar":false,"_type":"config"}]
I think It passes on String value (Payload.Agg1 or..). Number value is not being passed to gauge.
If I set Value in numeric form and write 1,2,3,4,5,6. It give that 1,2 ,3,4,5,6 on the gauge as per option selected in drop down menu at dashboard.
How can I get variable value from there instead of constant number?