Skip to content
Snippets Groups Projects
Commit 7f841b11 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Rename weather param 1001 to 1002 if provided, to adapt to HAPDMA

parent 88f2a754
Branches
No related tags found
No related merge requests found
......@@ -524,6 +524,11 @@
}
if(weatherData != null)
{
// HAPDMA only accepts average temp (code 1002), so we need to change the temp code if it's 1001
if(!weatherData.weatherParameters.includes(1002) && weatherData.weatherParameters.includes(1001))
{
weatherData.weatherParameters[weatherData.weatherParameters.indexOf(1001)] = 1002;
}
inputData["weatherData"] = weatherData;
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment