Make the world a better place
- Use as much renewable energy as possible
- As little movment as possivle for high priority tasks
Run the project:
git clone https://github.com/lennart1s/hackhpi-cleanware/
sudo docker-compose up
docker build -t weatherkw .
docker run -p 8000:8000 -t weatherkw -d
curl -X POST "http://localhost:8000/?days=1" -H 'Content-Type: application/json' -d '{"lat":"51.50","long":"-0.118","capacity":"23","turbines":"10"}' -v
Therefore, supply lat,lang,capacity,turbines
to the endpoint to get stats for the location. days=x
will output the forecast for x days, by default 4. Check the return status code for 200
, otherwise blame the user.