This project is part of the final mark assignment for Web Data using XML and JSON module - Birkbeck university 2018.
To build the UK weather application for this part of the FMA, you will use
the OpenWeatherMap API. To use this API
you will first need to register
and get yourself an API
key. There are detailed instructions on the
OpenWeatherMap API help page on how to work with the API
(e.g. how to
create a request URL).
The application should work as follows. Users should be able to choose a UK country (England, Scotland, Wales, or Northern Ireland) from a menu on a HTML page.
Depending on which country the user chooses,
corresponding city name data for the chosen country should be
dynamically loaded into a second menu.The user should then be able to
select a city name from the second menu. Upon selection, the weather for
the selected city should be retrieved from the API
, and displayed as
HTML.
UK city data for the menus is provided in the FMA resources folder in Moodle. The following weather data items should be displayed for a selected city:
No. | Data |
---|---|
1 | Ciy name |
2 | Date |
3 | Weather conditions |
4 | Temperature |
5 | Wind speed |
6 | Wind direction |
6 | Weather icon |
The following display requirements should apply:
- Temperature must be displayed in Celsius.
- Wind speed must be displayed in miles-per-hour.
- Wind direction must be displayed as a textual description (Acceptable output would be Southerly, South Westerly, Westerly, North Westerly, Northerly, North Easterly, Easterly, South Easterly).
- The date must be displayed in standard date format (e.g. 2-10- 2015).
Presentation of the application must be to professional standard.