The api returns a lot of data, not sure which one you need but this example makes request, extracts a summary for the next 6 hours, and saves into the variable. You need to set your coordinates in the request.
{
"Id": "Woot7h6vPXuKn3X",
"ClassId": "Woot7h6vPXuKn3X",
"Author": "",
"Version": 0,
"CreatedAt": "2021-04-05T20:43:44.385194+02:00",
"UpdatedAt": "2021-04-05T20:43:44.385194+02:00",
"Name": "Weather forecast",
"Group": "weather",
"Description": "Extracts weather forecast from api.met.no",
"Nodes": [
{
"Id": "1",
"Type": "trigger",
"Label": "Test trigger",
"SuccessTransition": "2",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:flow/ad:1/sv:out_bin_switch/ad:Woot7h6vPXuKn3X_0",
"Service": "out_bin_switch",
"ServiceInterface": "cmd.binary.set",
"Config": {
"Timeout": 0,
"ConnectorID": "",
"ValueFilter": {
"Value": null,
"ValueType": "bool"
},
"PropFilterName": "",
"PropFilterValue": "",
"ValueJPath": "",
"ValueJPathResultType": "",
"InputVariableType": "",
"IsValueFilterEnabled": false,
"RegisterAsVirtualService": false,
"LookupServiceNameAndLocation": false,
"VirtualServiceGroup": "",
"VirtualServiceProps": null
},
"Ui": {
"x": 291,
"y": 175,
"nodeType": ""
},
"TypeAlias": "Trigger",
"LastValue": true
},
{
"Id": "2",
"Type": "rest_action",
"Label": "Requesting from met.api.no",
"Address": "",
"Service": "",
"ServiceInterface": "",
"SuccessTransition": "",
"ErrorTransition": "",
"Config": {
"Url": "https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=51.5&lon=0",
"Method": "GET",
"RequestPayloadType": "json",
"RequestTemplate": "",
"LogResponse": false,
"Headers": [
{
"Name": "Content-type",
"Value": "application/json"
},
{
"Name": "User-Agent",
"Value": "tpflow/0.1"
}
],
"ResponseMapping": [
{
"Name": "",
"PathType": "json",
"Path": "$.properties.timeseries[0].data.next_6_hours.summary.symbol_code",
"TargetVariableName": "weather_summary",
"IsVariableGlobal": true,
"TargetVariableType": "string"
}
],
"Auth": {
"Enabled": false,
"GrantType": "password",
"Url": "http://",
"ClientID": "",
"ClientSecret": "",
"Scope": "",
"Username": "",
"Password": ""
}
},
"Ui": {
"x": 255,
"y": 446,
"nodeType": ""
},
"TypeAlias": "HTTP msg"
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": ""
}