This little script will alternate between displaying the time, temperature and weather on a Pimoroni Micro Dot pHat.
You will need to install https://github.com/csparpa/pyowm as the script uses pyowm to query openweathermap. Create an account at https://openweathermap.org/ in order to get an API key.
The python script takes two parameters. -l is the location you want the weather of the -k is the open weather map key.
The included shell script demonstrates how to call the script and you can add your key to this to save having to enter is multiple times.
Simply edit the shell script and replace YOURKEYHERE with the key from your openweathermap account.
The script is currently set to refresh the weather data every 30 minutes but openweathermaps allows something like 60 requests a minute on a free account.