My desktop application in C# that changes the background windows depending on the time and the weather
All background images have to be in data/images/ and they have do be JPG. In the same folder put a deafult background named void.jpg, this image will be used when is not defined a exact image for actual time and weather.
Wallpaper-Dynamic makes weather requests each 10 minutes, this way your background will approch to reality and API's limit won't be exceeded. Each weather will be your own folder named with the weather, there you'll be able to put images to be your background in repective weather. Ex: If the wheather is Rain, you have to put images in data/images/Rain.
The aplication are using weather data from OpenWeatherMap API. API link: https://openweathermap.org/api
To it works, you have to create a file in data/config named weatherAPI.json.
{
"key": "your key provided by weather api",
"cityId": "city that you want to get data"
}
Wallpaper-Dynamic uses 8 periods, the period defined which image will be used:
- 00:00 by 03:00 - 1th image
- 03:00 by 06:00 - 2th image
- 06:00 by 09:00 - 3th image
- 09:00 by 12:00 - 4th image
- 12:00 by 15:00 - 5th image
- 15:00 by 18:00 - 6th image
- 18:00 by 21:00 - 7th image
- 21:00 by 00:00 - 8th image
Therefore, make sure all images are in the order that you want.