I have added:
var HttpGet = Java.type(“org.openhab.core.model.script.actions.HTTP”);
and put in:
var DATA = HttpGet.sendHttpGetRequest(“https://api.weather.bom.gov.au/v1/locations/r3fgmyd/forecasts/daily”, 2000).replace(/icon_descriptor…\w+/g,input);
That works as well.
Thanks