We will use the Dark Sky Weather API to get our weather data. Based on that we will make a prediction on what the attire should for a comfortable outdoor activity.
-
- Get your own DarkSkey API Key
-
-
Get the application code
yum -y install git git clone https://github.com/miztiik/predict-attire-for-weather.git
-
Update your API key
In the file
src/config/prod_config.json
update yourapi key
-
-
-
Get the application code from git (from the previous step)
cd /var/predict-attire-for-weather gunicorn --bind 0.0.0.0:80 wsgi:application --access-logfile - --error-logfile - --capture-output --enable-stdio-inheritance
-
-
Assuming you have docker host ready, Run the Setting up the environment instructions, and then execute the below,
cd /var/predict-attire-for-weather ### Build the image docker build --tag="predict-attire-for-weather" . ### Run the Image docker run -dti -p 80:80 --name attire_recommender predict-attire-for-weather
-
Access the linux server IP/Docker Host IP in your browser, you should be seeing something like this,
Buy me a coffee โ through Paypal, or You can reach out to get more details through here.
Level: 300