You are given the task of implementing an IoT service by gathering real-world data from actual IoT sensors. This scenario will be explained further in your tutorial tasks.
You have recently been appointed to the Bureau of Meteorology (BOM).
You have been asked to write a piece of software using Python to gather data from the Coolangatta (QLD) IoT sensor. The BOM makes all data available via a standardized web interface. In the case of the Coolangatta (QLD) sensor, this data can be found at
[login to view URL]
The data returned through this API represents the last three days of sensor data, collected at appropriate intervals by the BOM Fog environment.
Your job is to review how the BOM gathers and presents this data at
[login to view URL]
You will be most interested in understanding the data gathered from individual stations. Once you have done this you are to perform the following tasks.
Part A (2 marks)
Install a Linux environment on your workstation, using a suitable hypervisor e.g. VirtualBox. Be sure to install the Apache Web Server and the Python programming language. If you prefer you can build this server on any Cloud computing environment such as AWS.
Part B (4 marks)
Write a Python Script which uses the Python Requests and JSON module to download the JSON object outlined before. The program MUST process the 3 days of data from this stream and report:
[login to view URL] maximum, minimum and average pressure
[login to view URL] maximum, minimum and average temperature
Part C (4 marks)
Modify your Python Program so that it produces a simple web page as its output. Once that is done, place the script in the CGI-BIN directory so that when it is accessed, it provides the user with a web page containing the above information.
When completed, you must prepare a document with screenshots outlining the process you have taken to implement the above. You must include a copy of the script used in Part 2 and you must demonstrate your program working.