Skip to content

Live Weather Mode

Greg edited this page Mar 17, 2021 · 8 revisions

Show a wallpaper that reflects the current weather conditions outside.

Live Weather

Additional Dependencies

  • an openweather free api key (details below)
  • wget

This only works with Corporate-Synergy theme so make sure it's already set as your theme choice.
wallpaperPath="$HOME/sunpaper/images/Corporate-Synergy"

Enable the live weather mode with:
weather_enable="true"

We're using an API from openweathermap.org to get your local weather conditions. You'll need to sign up for a free API Key:
https://openweathermap.org/price

Set your API key in the sunpaper.sh config here:
weather_api_key=""

We need to set your location with a city id from openweather. You can search for your city id number here:
http://openweathermap.org/find

Then set that location number in the sunpaper.sh configuration here:
weather_city_id="4140963"