Compatible with shared node Id and Emoncms v5.0

- Updated query to be compatible with Emoncms v5.0
- If shared node ID detected, will append the node secondary id to the variable name. For example, if node Id is 11 and secondary node Id is 3, the variables will appear in Emoncms under Inputs for Node 11 as variable1_3, variable2_3,...