8. Introduction to Apache OpenWhisk
Activity 8: Receive Daily Weather Updates via Email
Steps to create an OpenWeather and SendGrid account:
- Create an OpenWeather account at https://home.openweathermap.org/users/sign_up:
Figure 8.72: Creating an OpenWeather account
- Once you have signed up to OpenWeather, an API key will be generated automatically for you. Go to the API keys tab (https://home.openweathermap.org/api_keys) and save the API key because this key is required to fetch the data from OpenWeather API:
Figure 8.73: OpenWeather API key
- Test the OpenWeather API using
https://api.openweathermap.org/data/2.5/weather?q=London&appid=<YOUR-API-KEY>
in a web browser. Please note that you need to replace<YOUR-API-KEY>
with your API Key from step 2:Note
It may take a few minutes to get your API key activated. Wait for a few minutes and retry if you receive Invalid API key. Please see http://openweathermap.org/faq#error401 for more info. error while invoking...