-
Notifications
You must be signed in to change notification settings - Fork 0
Editing and customising
This page is made of edits to the program that can easily be made to the program to change or add values and should work with the release version of both Weather_display.py and Weather_display_gif.py
The background colour is determined on the Weather_display_config.py (as of release 1.0.1) and is easily replace with either a hex value or a colour
A full list of compatible colours can be found on the Tkinter wiki
Changing the images is rather simple but requires the images to be the right size (if someone more knowledgable than me knows that this isn't the case then please contact me or submit a PR), for this, ImageMagick or any other image editor can be used. The sizes of the files is listed below:
- Images folder - 160x160
- Images_small folder (excluding sunrise and sunset) - 64x64
- Images_small sunrise and sunset - 51x21
This can be done with one of the following commands (assuming that ImageMagick is installed):
- Change size of all images in the current folder while preserving original
convert *.png -resize [Size_X]x[Size_Y]\!
- Change the size of a single image in the current folder while preserving original
convert sun-set.png -resize [Size_X]x[Size_Y]\!
- Change the size of all images in the current folder while replacing original
mogrify *.png -resize [Size_X]x[Size_Y]\!
- Change the size of a single image in the current folder while replacing original
mogrify sun-set.png -resize [Size_X]x[Size_Y]\!
NOTE: replace .png with .gif if the images are being used for the gif version and change the file name to which image is being edited
After this, name the images appropriately similarly to the image below (Shown is the images_small folder, the images folder should be the same without the sun-rise and sun-set images)