Skip to content

This repository contains programs in python. In which I have used a weather API call to retrieve weather information and food database API to fetch dietary suggestions based on it.

License

Notifications You must be signed in to change notification settings

krishnapatel18/Weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

For Weatherv1.0

This file contains my first program, In which I used a weather API call to retrieve weather information and provided manual dietary suggestions based on the weather.

INSTRUCTIONS:

-> To execute this code first you need to give your API key as value for weather_api_key. Note that I have used api from 'openweathermap.org'.

-> If you encounter ModuleNotFoundError: No module named 'requests' error, You need to install requests module. You can do it by running pip install requests command in your Terminal.

-> To get information of your desired city you can change value of city_id.

{ To find a city ID in the OpenWeatherMap API, you can:

Step 1: Go to openweathermap.org

Step 2: Enter the name of the desired city or town in the search field

Step 3: Click the Search button

Step 4: Find your city in the results and click on its name

Step 5: The city ID will be in your browser's address bar }

For Weatherv2.0

This file contains modified version of my first program, In this I have used a weather API call to retrieve weather information and food database API to give recipe suggestions based on the weather. (Which can be later modified to fetch recipes )

INSTRUCTIONS:

-> To execute this code first you need to replace your API key as value for weather_api_key and nutrition_api_key. Note that I have used api from 'openweathermap.org' to fetch weather information and api from 'edamam.com' to fetch recipe suggestions.

-> If you encounter ModuleNotFoundError: No module named 'requests' error, You need to install requests module. You can do it by running pip install requests command in your Terminal.

-> To get information of your desired city you can change value of city_id.

{ To find a city ID in the OpenWeatherMap API, you can:

Step 1: Go to openweathermap.org

Step 2: Enter the name of the desired city or town in the search field

Step 3: Click the Search button

Step 4: Find your city in the results and click on its name

Step 5: The city ID will be in your browser's address bar }

-> Happy learning....

About

This repository contains programs in python. In which I have used a weather API call to retrieve weather information and food database API to fetch dietary suggestions based on it.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages