====== Read a parameter with variable Index and Subindex ====== This block lets you read a parameter based on Index/Subindex: {{:pinebox:examples:read-index-subindex.png?600&direct}} * Inject node * function: set Index and Subindex in the message: * http request: request on port 0 with the Index and Subindex from the function * json: to format a json object from the http request output * debug: to output the json object in the debug console [{"id":"14cd224bc09665e5","type":"http request","z":"c77f9caee36638f3","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://localhost:18080/0/parameter/get/{{{INDEX}}}/{{{SUBINDEX}}}","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":770,"y":280,"wires":[["81eed9cdd97ca775"]]},{"id":"1ecf95b463f6463d","type":"function","z":"c77f9caee36638f3","name":"Set Index+Subindex","func":"msg.INDEX = 16;\nmsg.SUBINDEX = 0;\nreturn msg;\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":520,"y":280,"wires":[["14cd224bc09665e5"]]},{"id":"f5453b550db965aa","type":"debug","z":"c77f9caee36638f3","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1140,"y":280,"wires":[]},{"id":"22711ce4e7519b7e","type":"inject","z":"c77f9caee36638f3","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":260,"y":280,"wires":[["1ecf95b463f6463d"]]},{"id":"81eed9cdd97ca775","type":"json","z":"c77f9caee36638f3","name":"","property":"payload","action":"","pretty":false,"x":950,"y":280,"wires":[["f5453b550db965aa"]]}]