Feed hourly MetOffice observation data into Kafka
Queries the MetOffice API for observation data from all available locations across the UK every hour. This is the max frequency that the data is made available.
The data is processed into individual readings per location/time and each of these is sent to Kafka using the standard Java driver. The MetOffice only provides the last 24 hours of data, but by saving it into Kafka we can analyse longer periods of time.
The application needs the following configuration settings, which should be set in environment variables:
The project uses gradle, so install this, add it to the path, CD into the project directory and type:
gradle build
java -jar build/libs/WmProducer-1.0-SNAPSHOT.jar
Application will run until stopped, querying the API every hour.