script for query data openweathermap api, normalize and inject into kafka topic
- Build docker image:
- git clone https://github.com/wjjpt/env2sensor.git
- cd src/
- docker build -t wjjpt/envsensor2k .
- Execute app using docker image:
docker run --env APIKEY="abc123abc123abc123" --env LONGITUDE="-6.025" --env LATITIDE="37.375" --env KAFKA_BROKER="127.0.0.1" --env KAFKA_PORT="9092" --env KAFKA_TOPIC="envsensor" -ti wjjpt/envsensor2k