Wallpaper Wizard is a Java application that allows you to download NASA's Astronomy Picture of the Day (APOD) and set it as your wallpaper.
- Download NASA's Astronomy Picture of the Day.
- Set the downloaded image as your wallpaper.
To get started with Wallpaper Wizard, follow these steps:
- Java Development Kit (JDK 17) installed.
- Maven for building the project.
-
Clone or download the Wallpaper Wizard repository.
-
Obtain NASA API Key:
- Go to NASA API Portal .
- Sign up for an API key.
- Copy your API key.
-
Set up API Key in application.properties:
- Open the src/main/resources/application.properties file.
- Add your NASA API key:
application.properties user.nasa.api.key=YOUR_API_KEY_HERE
-
Build and Run the Application:
- Open a terminal in the project directory.
- Run mvn clean install to build the project.
- Run mvn spring-boot:run to start the application.
-
Setting Wallpaper:
- The application will download and set the image as your wallpaper automatically.
-
Access the downloaded image
- The downloaded image is saved in the path C:\Users\USER\Documents\Wallpapers.
- replace user with your user.
- Resize the image:
- optional: the application works even without resizing.
- lockScale params: true doesn't change the scale, false change the scale to match the screen sizes.
Main.java // Resize the image Resizer.resizeImage(imageSaver.getDownloadedImagePathString(), lockScale: false);
- Java
- Spring Boot
- Maven
- Java Native Access (JNA): provides Java programs easy access to native shared libraries without writing anything but Java code
- Give the possibility to choose the image of the day from multiple sites (example bing.com)
- Add a graphical interface to simplify user interaction
- Automate the application to change wallpaper every day