I would like to insert two variables into the node - change longitude and latitude so that I can then generate an http request and I get the weather according to location, but if I give two at once then it does not work for me
The messages do not wait for each other. If you want to combine 2 messages use a join node. Inject a payload to the join node with a topic lat and the other msg with a payload and a topic lon.