Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I change Weather to Fahrenheit? Also, how do I change location? #4

Open
johnny69blaze opened this issue Jan 28, 2021 · 2 comments

Comments

@johnny69blaze
Copy link

No description provided.

@ghost
Copy link

ghost commented Jan 28, 2021

change that line:

const WEATHER_UNITS = 'metric';

to something like:

const WEATHER_UNITS = 'imperial';

??

@ajatkj
Copy link
Owner

ajatkj commented Jan 29, 2021

@johnny69blaze there is a bit of config that you have to do.

  1. Create a free OpenWeather account and get your API Key
  2. Copy this API key in the code const WEATHER_API_KEY = ''
  3. Change TESTING flag to false. I have set it to true by default so it shows some dummy data.
  4. As @misanthrophy mentioned above, change WEATHER_UNITS='imperial';

Also, note that I will be releasing an updated version today or over the weekend which will completely automate the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants