This is a Scriptable widget that lets you display battery (optional), greetings (optional), weather temprature, condition, events and supports custome widget background as well.
Copy the code in Prime-Weather.js.
Paste the code into a new Scriptable script. This is the widget script.
Create your ID on openweathermap and get an API_KEY from there and update API_WEATHER
Due to limitation with scriptable auto update location not possible. So get the city ID for your location.
Use web address to get your location City ID ---> https://gist.github.com/sharn25/3f62e1969d7eaec22bd6b5f923651a0d
Get your city ID use link by putting your longitude, latitude and API_KEY ---> http://api.openweathermap.org/data/2.5/weather?lat=19.034103202555187&lon=73.07745084021239&appid=API_KEY&units=metric
Update CITY_WEATHER with City ID