Session 1 / 15๐Ÿ”Žืขื‘

How to work with the challenges

The challenges here are harder than the practice tasks, and are meant for those who finished and want to go deeper. Try on your own for at least 20 minutes before opening the hints, and the solution only after that. There is no single right solution: if your scenario meets the requirements, it is right.

Broken scenario โ€” find the bug

This is what real work looks like: something broke, and all you have is the History. Read the error, and pick the right fix.

Advanced: A smart umbrella alert

๐Ÿ”ฅ Advancedโฑ๏ธ ~40 min

๐ŸŽฌ The scenario

Instead of sending a forecast every morning, create a message only when rain is expected during active hours (09:00โ€“21:00), and say which hours.

๐ŸŽฏ The requirements

  1. A schedule every day at 06:30.
  2. A call to Open-Meteo with hourly=precipitation_probability and timezone=Asia/Jerusalem.
  3. Compute the maximum probability for hours 09โ€“21.
  4. Filter: continue only if the maximum is 60% or more.

๐ŸŽฏ The desired result โ€” how the scenario should look and work

Click Run once and then each module: you will see its settings, and on the last module โ€” the output you should get.

๐Ÿ“ค Example of the final output
{
  "maxRain": 80,
  "message_id": 4411
}

๐ŸŽฌ Stuck? To the guided solution with a click simulation โ†’

๐Ÿ’ก Hints (try without them first)
  • The answer comes as two parallel arrays: hourly.time and hourly.precipitation_probability.
  • slice(array; 9; 22) cuts hours 09โ€“21 (with forecast_days=1).
  • max() works on an array of numbers.
  1. HTTP: โ€ฆ&hourly=precipitation_probability&forecast_days=1&timezone=Asia/Jerusalem, Parse response.
  2. Tools โ†’ Set variable: maxRain = {{max(slice(1.data.hourly.precipitation_probability; 9; 22))}}.
  3. A filter on the next line: maxRain โ‰ฅ (Numeric) 60.
  4. Compose a string: "โ˜” Take an umbrella! Up to {{maxRain}}% chance of rain today".
  5. (Bonus) An Iterator over the array to list the hours โ€” we learn it in session 6.

๐ŸŽฌ The guided solution โ€” a click simulation

๐Ÿ“ธ The illustrated guide โ€” step by step, click by click

For every step: a screenshot of the (simulated) Make editor with the click spot marked, and below it exactly what to click and what to type. You can work from here next to an open Make window.

  1. 1
    New scenario and schedule
    Create a scenario and schedule it for every morning at 06:30.
    Marked screenshot โ€” step 1: New scenario and schedule
    ๐Ÿ“ธ Step 1.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 1: New scenario and schedule
    ๐Ÿ“ธ Step 1.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: C01 - Umbrella alert.
    3. Click the clock ๐Ÿ•’ in the bottom bar (next to the ON/OFF switch).
    4. In the schedule settings choose: Every day ยท Time 06:30 and click OK.
  2. 2
    Call Open-Meteo with an hourly forecast
    HTTP with hourly=precipitation_probability and timezone, and Parse response.
    Marked screenshot โ€” step 2: Call Open-Meteo with an hourly forecast
    ๐Ÿ“ธ Step 2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type HTTP and click the HTTP app.
    3. In the list of actions choose Make a request.
    4. In the URL field type: https://api.open-meteo.com/v1/forecast?latitude=32.08&longitude=34.78&hourly=precipitation_probability&forecast_days=1&timezone=Asia/Jerusalem
    5. In the Method field choose: GET
    6. In the Parse response field choose: Yes
    7. Click OK (or Save) to close the module window.
  3. 3
    Compute the maximum chance for 09โ€“21
    slice cuts the array to the active hours (index 9 to 22), and max returns the highest.
    Marked screenshot โ€” step 3: Compute the maximum chance for 09โ€“21
    ๐Ÿ“ธ Step 3 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Tools and click the Tools app.
    3. In the list of actions choose Set variable.
    4. In the Variable name field type: maxRain
    5. In the Variable value field map (drag from the panel or type): {{max(slice(1.data.hourly.precipitation_probability; 9; 22))}}
    6. Click OK (or Save) to close the module window.
  4. 4
    Filter: only at 60% or more
    A filter on the line after Set variable โ€” a message is sent only when rain is really expected.
    Marked screenshot โ€” step 4: Filter: only at 60% or more
    ๐Ÿ“ธ Step 4.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 4: Filter: only at 60% or more
    ๐Ÿ“ธ Step 4.2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Telegram Bot and click the Telegram Bot app.
    3. In the list of actions choose Send a Text Message or a Reply.
    4. In the Chat ID field map (drag from the panel or type): {{CHAT_ID}}
    5. In the Text field map (drag from the panel or type): โ˜” Take an umbrella! Up to {{2.maxRain}}% chance of rain today
    6. Click OK (or Save) to close the module window.
    7. Click the ๐Ÿ”ง icon on the line between the last two modules โ†’ Set up a filter.
    8. In the Label field type: Rain expected.
    9. In Condition set: maxRain โ‰ฅ 60 (Numeric) (pick the field from the panel, the operator from the list, and type a value).
    10. Click OK โ€” a funnel icon appears on the line.
  5. 5
    Run, save and turn on
    Run once to test, Save and ON.
    Marked screenshot โ€” step 5: Run, save and turn on
    ๐Ÿ“ธ Step 5 โ€” the red ring marks where to click
    1. Click โ–ถ Run once at the bottom left.
    2. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    3. The output should look roughly like this:
      {
       "maxRain": 80,
       "message_id": 4411
      }
    4. Click ๐Ÿ’พ Save in the bottom bar (or Ctrl+S / โŒ˜+S).
    5. Switch the toggle OFF โ†’ ON in the bottom bar so the scenario runs on its schedule.

Experts: A three-city report

๐Ÿ”ฅ๐Ÿ”ฅ Expertsโฑ๏ธ ~50 min

๐ŸŽฌ The scenario

Open-Meteo accepts several coordinates at once. Build a report for Tel Aviv, Jerusalem and Eilat in one call.

๐ŸŽฏ The requirements

  1. One call with latitude=32.08,31.77,29.56&longitude=34.78,35.21,34.95.
  2. Split the result into 3 bundles (one per city).
  3. One summary message with the three lines.

๐ŸŽฏ The desired result โ€” how the scenario should look and work

Click Run once and then each module: you will see its settings, and on the last module โ€” the output you should get.

๐Ÿ“ค Example of the final output
{
  "text": "Tel Aviv: 21.4ยฐ\nJerusalem: 16.9ยฐ\nEilat: 27.8ยฐ"
}

๐ŸŽฌ Stuck? To the guided solution with a click simulation โ†’

๐Ÿ’ก Hints (try without them first)
  • When you ask for several locations, the answer is an array โ€” an Iterator breaks an array into bundles.
  • A Text aggregator joins several bundles back into one text.
  1. HTTP with the multiple coordinates, Parse response.
  2. Flow Control โ†’ Iterator over {{1.data}} (the array).
  3. Set variable: the city name by get(split("Tel Aviv,Jerusalem,Eilat"; ","); 2.__IMTINDEX__).
  4. Tools โ†’ Text aggregator (Source: Iterator), Row separator: New row, Text: {{city}}: {{2.current.temperature_2m}}ยฐ.

Watch the Credits count: the Iterator and the modules after it run 3 times.

๐ŸŽฌ The guided solution โ€” a click simulation

๐Ÿ“ธ The illustrated guide โ€” step by step, click by click

For every step: a screenshot of the (simulated) Make editor with the click spot marked, and below it exactly what to click and what to type. You can work from here next to an open Make window.

  1. 1
    New scenario
    A scenario for a three-city report.
    Marked screenshot โ€” step 1: New scenario
    ๐Ÿ“ธ Step 1 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: C01 - Three-city report.
  2. 2
    One call for three cities
    Open-Meteo accepts a comma-separated list of coordinates and returns an array.
    Marked screenshot โ€” step 2: One call for three cities
    ๐Ÿ“ธ Step 2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type HTTP and click the HTTP app.
    3. In the list of actions choose Make a request.
    4. In the URL field type: https://api.open-meteo.com/v1/forecast?latitude=32.08,31.77,29.56&longitude=34.78,35.21,34.95&current=temperature_2m
    5. In the Parse response field choose: Yes
    6. Click OK (or Save) to close the module window.
  3. 3
    Split into three bundles
    An Iterator over the array โ€” each city becomes a separate bundle.
    Marked screenshot โ€” step 3: Split into three bundles
    ๐Ÿ“ธ Step 3 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Flow Control and click the Flow Control app.
    3. In the list of actions choose Iterator.
    4. In the Array field map (drag from the panel or type): {{1.data}}
    5. Click OK (or Save) to close the module window.
  4. 4
    The city name by position
    get + split pick a name by the bundle number (__IMTINDEX__).
    Marked screenshot โ€” step 4: The city name by position
    ๐Ÿ“ธ Step 4 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Tools and click the Tools app.
    3. In the list of actions choose Set variable.
    4. In the Variable name field type: city
    5. In the Variable value field map (drag from the panel or type): {{get(split("Tel Aviv,Jerusalem,Eilat"; ","); 2.__IMTINDEX__)}}
    6. Click OK (or Save) to close the module window.
  5. 5
    Combine into one message
    Text aggregator with Source = Iterator and a new-line separator.
    Marked screenshot โ€” step 5: Combine into one message
    ๐Ÿ“ธ Step 5 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Tools and click the Tools app.
    3. In the list of actions choose Text aggregator.
    4. In the Source Module field type: Flow Control - Iterator [2]
    5. In the Row separator field type: New row
    6. In the Text field map (drag from the panel or type): {{3.city}}: {{2.current.temperature_2m}}ยฐ
    7. Click OK (or Save) to close the module window.
  6. 6
    Run and check the Credits
    Note: the Iterator and the modules after it run 3 times.
    Marked screenshot โ€” step 6: Run and check the Credits
    ๐Ÿ“ธ Step 6 โ€” the red ring marks where to click
    1. Click โ–ถ Run once at the bottom left.
    2. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    3. The output should look roughly like this:
      {
       "text": "Tel Aviv: 21.4ยฐ\nJerusalem: 16.9ยฐ\nEilat: 27.8ยฐ"
      }

Boss challenge: An alert only when something changes

๐Ÿ‘‘ Boss challengeโฑ๏ธ ~60 min

๐ŸŽฌ The scenario

Send a message only if the temperature changed by more than 3 degrees since the previous run.

๐ŸŽฏ The requirements

  1. Keep the last temperature between runs.
  2. Compare it with the current value.
  3. Update the stored value on every run.

๐ŸŽฏ The desired result โ€” how the scenario should look and work

Click Run once and then each module: you will see its settings, and on the last module โ€” the output you should get.

๐Ÿ“ค Example of the final output
{
  "temp": 21.4,
  "note": "Run 2: no message sent โ€” no change"
}

๐ŸŽฌ Stuck? To the guided solution with a click simulation โ†’

๐Ÿ’ก Hints (try without them first)
  • Regular variables are erased at the end of a run. A data store keeps information between runs (session 8).
  • abs() gives an absolute difference.
  1. Create a data store named weather_state with a temp field (Number).
  2. HTTP โ†’ Data store: Get a record (key: tlv).
  3. Filter: abs(1.data.current.temperature_2m - 2.temp) > 3 โ€” before the message module.
  4. On a separate route (Router), always: Data store โ†’ Add/replace a record with the new temperature.

๐ŸŽฌ The guided solution โ€” a click simulation

๐Ÿ“ธ The illustrated guide โ€” step by step, click by click

For every step: a screenshot of the (simulated) Make editor with the click spot marked, and below it exactly what to click and what to type. You can work from here next to an open Make window.

  1. 1
    A data store for memory between runs
    Create a data store named weather_state with a temp field (Number).
    Marked screenshot โ€” step 1: A data store for memory between runs
    ๐Ÿ“ธ Step 1 โ€” the red ring marks where to click
    1. Open eu2.make.com/datastores in your browser (the โ€œData storesโ€ screen).
    2. On the screen you will see: + Add data store ยท Name: weather_state ยท Data structure: temp (Number)
    3. Click the Save button.
  2. 2
    HTTP + read the stored value
    Get the current temperature, then Get a record with key = tlv.
    Marked screenshot โ€” step 2: HTTP + read the stored value
    ๐Ÿ“ธ Step 2.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 2: HTTP + read the stored value
    ๐Ÿ“ธ Step 2.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: C01 - Change alert.
    3. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    4. In the search box type HTTP and click the HTTP app.
    5. In the list of actions choose Make a request.
    6. In the URL field type: https://api.open-meteo.com/v1/forecast?latitude=32.08&longitude=34.78&current=temperature_2m
    7. In the Parse response field choose: Yes
    8. Click OK (or Save) to close the module window.
    9. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    10. In the search box type Data store and click the Data store app.
    11. In the list of actions choose Get a record.
    12. In the Data store field type: weather_state
    13. In the Key field type: tlv
    14. Click OK (or Save) to close the module window.
  3. 3
    Router: an alert route and an update route
    A Router with two routes: one sends a message only when there is a change, the other always saves the new value.
    Marked screenshot โ€” step 3: Router: an alert route and an update route
    ๐Ÿ“ธ Step 3.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 3: Router: an alert route and an update route
    ๐Ÿ“ธ Step 3.2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Flow Control and click the Flow Control app.
    3. In the list of actions choose Router.
    4. Keep the defaults.
    5. Click OK (or Save) to close the module window.
    6. Click the small + coming out of the Router (to its right) to open a new route.
    7. In the search box type Telegram Bot and click the Telegram Bot app.
    8. In the list of actions choose Send a Text Message or a Reply.
    9. In the Text field map (drag from the panel or type): ๐ŸŒก๏ธ A change of more than 3ยฐ: now {{1.data.current.temperature_2m}}ยฐ
    10. Click OK (or Save) to close the module window.
    11. Click the ๐Ÿ”ง icon on the line between the last two modules โ†’ Set up a filter.
    12. In the Label field type: Change > 3ยฐ.
    13. In Condition set: abs(1.data.current.temperature_2m - 2.temp) > 3 (pick the field from the panel, the operator from the list, and type a value).
    14. Click OK โ€” a funnel icon appears on the line.
  4. 4
    Save the new value
    On the second route: Add/replace a record with the current temperature.
    Marked screenshot โ€” step 4: Save the new value
    ๐Ÿ“ธ Step 4 โ€” the red ring marks where to click
    1. Click the small + coming out of the Router (to its right) to open a new route.
    2. In the search box type Data store and click the Data store app.
    3. In the list of actions choose Add/replace a record.
    4. In the Key field type: tlv
    5. In the temp field map (drag from the panel or type): {{1.data.current.temperature_2m}}
    6. Click OK (or Save) to close the module window.
  5. 5
    Run twice to test
    Run twice: the second time no message should be sent (no change).
    Marked screenshot โ€” step 5: Run twice to test
    ๐Ÿ“ธ Step 5 โ€” the red ring marks where to click
    1. Click โ–ถ Run once at the bottom left.
    2. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    3. The output should look roughly like this:
      {
       "temp": 21.4,
       "note": "Run 2: no message sent โ€” no change"
      }
    4. Click ๐Ÿ’พ Save in the bottom bar (or Ctrl+S / โŒ˜+S).