Skip to content

My desktop application in C# that changes the background windows depending on the time and the weather

Notifications You must be signed in to change notification settings

Guilherme-SG/Wallpaper-Dynamic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wallpaper-Dynamic - Windows 7

My desktop application in C# that changes the background windows depending on the time and the weather

How it works

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.

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"
}

Time

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.

About

My desktop application in C# that changes the background windows depending on the time and the weather

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages