Somebody stole the API key to build their own app so now my API key has been blocked due to overuse. Going forward, you must register your own FREE account at openweathermap.org, and get your API key there. Then, simply go into the code and replace the key with your own. Each free API key is limited to 60 queries per minute.
No need to enter your location or edit the code; it will use your public IP address to determine your approximate location and pull weather data (in celsius) from openweathermap.org. This dynamic location capability is extremely useful if you travel a lot.
I've separated the code into 4 different geeklets so you can format the 4 elements independently:
- Current temperature and weather condition
- Daily low and high temperature
- Sunrise and sunset times
- Current city and country
23°C, scattered clouds -1°C, clear skies
Displaying and Editing Location
You can check the city and country that is being used (based on your public IP) by running the "citycountry.glet" geeklet. If the city/country displayed is not accurate, go into the code for any of the weather geeklets attached and look for the following two lines:
and manually replace them with numbers pertaining to your longitude and latitude. For example: