Help with average of tempreature

:bullseye: What is your goal?

learn

:thinking: What is the problem?

using average

:test_tube: What have you tried so far?

I tried using average(1.temperature.maximum; 1.temperature.minimum)

:link: Create public scenario page

Hello,
I’d like to discuss this in more detail.
Thanks

Hi @Asami, welcome to the Make Community :slight_smile:

Do you mind please being a little bit more specific? What exactly would you like to discuss in more detail – how can the community help you? :pray:

You will probably need a functions module or do the averages in the google sheet with a google sheet formula and then watch the google sheet with another module if you want to integrate the average into another module as an input. The module you have in the scenario you shared is just current weather, so you need to determine over what period you calculate the averages and how frequent you want the weather module to return temperatures.

Hello, thanks for your support.
I will explain better my problem, I am trying to use the average function to get the average of maximum and minimum temperature. The following picture shows how I am using the function in a Google Sheets Add Row. But my return on my sheet is always NaN.

Yeah it doesn’t work like that- .maximum and .minimum are just text string there and completely break the function. Can you show a screenshot of what the input looks like? Most likely you need to map something different there.

The input comes from Weather>Get Current weather as shown in the next picture:

There is no temperature min or max in this screenshot, only what I assume is current temperature.

Yes you are right, but the tutorial of MAKE shows to make the excersize on this way:

You are using the wrong module mate, you need Get daily weather forecast.

Great, all of you are amazing. thank you very much