This Go web service simulates a taco spinning in the wind of Chicago. The spin rate is derived from the current wind speed using a windmill RPM approximation.
/start: Starts tracking taco spins/stop: Stops tracking/spins: Returns total spins since start
- Create a
.envfile in thesrc/directory or setOPENWEATHER_API_KEYin the environment. This key should actually be an https://aprs.fi api token owned by the user. - Build and run:
docker-compose up --build
curl -X POST localhost:8080/start
curl localhost:8080/spins
curl -X POST localhost:8080/stopEnjoy your wind-powered taco! 🌮💨