ajatkj / scriptable

Scriptable scripts for iOS
308 stars 62 forks source link

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

Open johnny69blaze opened 3 years ago

ghost commented 3 years ago

change that line:

const WEATHER_UNITS = 'metric';

to something like:

const WEATHER_UNITS = 'imperial';

??

ajatkj commented 3 years ago

@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.