Hey, hope i am using this forum like it used to be.
At first english is not my first language
I am new to node red and programming.
I want to replace a word in a msg.payload with coordinates i get from an array.
msg.payload = "http://api.openweathermap.org/data/2.5/weather?lat=breite&lon=laenge&appid=xyz";
var url = msg.payload.replace("laenge",msg.payload).replace("breite",msg.payload);
msg.payload = url
so that he sends the url to a http request but with the coordinates.
If u need more information or something let me know! I didnt find a solution for this problem and with my bad knowledge about programming i am done and need 2 ask for help.