Send the current temperature of a city to a Cisco Webex Teams space every morning

  1. Set up ‘Clock’ trigger

    Hover on the 'Start' icon, and click on the 'Settings' icon. Select the 'Clock' trigger. Enter value in the fields as per the instructions given below.

    Trigger type: Select 'Repeat from' option from the drop-down list. This instructs the trigger to repeat at regular intervals, starting from the specified date and time.

    Date: Select the date from which you wish to start the repeat trigger.

    Time: Enter the time from which you wish to start the repeat trigger.

    Timezone: Select the timezone for the trigger start time.

    Runs on every: Select the trigger interval. The trigger will be fired off every time after the interval specified here. Since we need to get the temperature every day, select '1 Day' from the drop-down list.

    clock_trigger.png


    Once you have entered all the details, click 'Done'. This will take you back to canvas.

  2. Add and configure Weather Underground ‘Get Weather Condition’ action

    Add Weather Underground ‘Get Weather Condition’ action to the canvas. Connect this action with the ‘Start’ icon (which now displays ‘Clock’ icon), and configure it.

    On the configuration page, you will notice a few fields. Enter values in the fields as per the instructions given below.

    Weather underground connection: In order to use this activity, you will have to first create a connection. Select 'Add new' , and fill in the required details. If you have already created a connection, select it from the drop-down list.

    State: Enter the name of the state.

    City: Enter the name of the city of which you wish to get the temperature.

    Get_Weather_Condition.png


    Once you have entered these details, click 'Next'. In the next window that appears, you will see a 'Test' button.

    Get_Weather_Condition_02.png


    Now, when you click on the 'Test' button, Built.io Flow will test the action and display the data in the 'Output' tab. Click on 'Done' to return back to the canvas.

  3. Add and configure Cisco Webex Teams ‘Post New Message’ action

    Add Cisco Webex Teams ‘Post New Message’ action to your canvas, and connect it with the previous action. Configure this action and enter value in the fields as per the instructions given below.

    Space ID: Select/specify the ID or name of the space to which you wish to post the message. Clicking the ‘Refresh’ icon will fetch the list of all rooms of your Cisco Webex Teams account—based on the access token selected—and display it in the drop-down list. You can then select the ID or name of the space. Alternatively, you can enter the space ID or space name manually.

    Message: Add {{$a1.temperature_string}} key listed under 'Current_Observation' output on the right-hand side of the configuration window as an input for this field.

    Cisco_Webex_Teams_Post_New_Message.png


    Once you have entered all the details, click on 'Next'. In the next window that appears, you will see a 'Test' button.

    Now, when you click on the 'Test' button, Built.io Flow will test the action and display the data in the 'Output' tab. Click on 'Done' to return back to the canvas. Connect this action to ‘Stop’ and 'Save' the workflow. Now, everyday at the defined time, this flow will be triggered. As a result, it will fetch the current temperature of the city, and send it to the specified Cisco Webex Teams space.

     output