|
Task | Actor | Description |
|
Poll sensors and record timestamp, current, and battery level. | Smart device | This task records the current timestamp and polls the sensor embedded on the device. For the missing sensors, a null value or zero value is recorded. Furthermore, the average current, voltage, and battery level are also recorded. |
Access weather service | The weather service is accessed using latitude and longitude provided by the GPS sensor. |
Receive weather data | The weather information is received and appended to the recorded sensor data. This includes the current weather report. |
Access map service | The location service is accessed using latitude and longitude provided by the GPS sensor. |
Receive map data | The location information is received and appended to the recorded contextual information. This includes the current location. |
Record timestamp, current, and battery level | The timestamp is recorded again so that elapsed time can be measured. The average current and battery level are again recorded. It has been observed that for the latest smartphones and using newer batteries, the battery level remains unchanged. Also, the average current is the same because the elapsed time is a fraction of seconds. |
Get user label | The user types in the activity label to complete the context record. The record is then appended to the context file, which can be shared through email, messaging, or file transfer for postprocessing. |
Weather service | OpenWeatherMap | This is a free and online web service that provides the current weather report based on latitude and longitude. The weather report includes weather outlook, temperature, precipitation chances forecast, and other attributes. The service is accessed using the HTTPS/GET method. |
MAP service | MAPQUEST | This is a free and online web service that provides location information based on latitude and longitude. The information includes nearby places as well as location tags including street name, locality, and city. This service is accessed using the HTTPS/GET method. |
|