OK. Got it. Another issue is that $weather.forecast10day.forecast.simpleforecast.forecastday.high gives out results as [74, 54, 42, 61]. When I do avg(max,min) the results are 60423447. All the 4 temperature are combined a 1 number. My goal is to find avg(max, min) for next 3 days. Then find avg(day1,day2,day3) and then avg(day1,day2) And finally avg(avg (day1,day2,day3), avg(day1,day2)).
If I could get max/min of individual days that would fix my problem.
example:$weather.forecasttoday.forecast.simpleforecast.forecastday.high
$weather.forecasttomorrow.forecast.simpleforecast.forecastday.high