Skip to content

Picture of the day on your desktop. Bing, NASA, AstroBin, Wikipedia, Copernicus, Elementy, NatGeoTV

License

Notifications You must be signed in to change notification settings

nikvoronin/LastWallpaper

Repository files navigation

The Last Wallpaper

Picture Of The Day (POTD) on desktop.
-- Bing, NASA, Wikipedia, Elementy, AstroBin, NatGeoTV, Copernicus

20240603_212225

System requirements: Windows 10 x64, .NET Desktop Runtime 8.0.

There are at least two others developer versions in branches: one is cross-platform app written under the AvaloniaUI /develop-cs-xplatform and another one /develop-fs-win written in F#. Both are workable but abandoned and obsolete.

What's New

13 Nov 2024

  • Improve validating of wikipedia media types.
  • Rebuild mosaic in tray icon on user click (see tray_icon:mosaic option).

Not so far

  • Control manual change of system wallpaper.
  • Add NASA.gov POD loader, general image-of-the-day page.
  • Add Copernicus POD, a gallery containing the newest Copernicus Sentinel images.
  • Add NatGeoTV POD.

See also Release Notes chapter.

Documentation

TODO? how to create a custom POD loader.

Sources

Application Settings

See appsettings.json file in the application folder.

Format for date-time options (periods/timeout/etc) is: days.hours:minutes:seconds.milliseconds.
For ex.: 5 days 4 hour 3 minutes 2 seconds and 789 milliseconds = "5.04:03:02.789".

  • update_every - check pod updates every.
  • update_timeout - timeout for updating all pods.
  • toast_expire_in - toast message will disappear after this period of time.
  • tray_icon - what will the tray icon look like:
    • replica - a tiny replica of desktop image.
    • mosaic - nine tiles with main accent colors of desktop image.
  • wallpaper_fit - specifies how the desktop wallpaper should be displayed.
    • default - the best fit. It is equal to "fill".
    • center - center the image; do not stretch.
    • tile - tile the image across all monitors.
    • stretch - stretch the image to exactly fit on the monitor, without maintain aspect ratio.
    • span - spans a single image across all monitors attached to the system.
    • fit - stretch the image to exactly the height or width of the monitor without changing its aspect ratio or cropping the image. This can result in colored letterbox bars on either side or on above and below of the image.
    • fill - stretch the image to fill the screen, cropping the image as necessary to avoid letterbox bars. This one is used as "default".
  • active_pods - active pods list. Will updated in appear order. The first one with positive result become a wallpaper.
    • bing - bing.com
    • wikipedia - Wikipedia POTD.
    • apod - NASA APOD.
    • elementy - Elementy (science picture of the day).
    • astrobin - AstroBin IOTD.
    • natgeotv - NatGeoTV POD.
    • copernicus - Copernicus IOTD.
    • nasa - NASA.gov POTD.
  • bing
    • resolution - resolution of the picture:
      • UltraHD or UHD - 4K, 3840x2160 px
      • FullHD or FHD - 1920x1080 px
      • HD - 1280x720 px
  • apod
    • throttling_hours - next update will happen after this period. Be aware that APOD free but limited with 50 requests per IP address per day.
    • api_key - if you have your own paid API key.
{
  "update_every": "00:57:00",
  "update_timeout": "00:05:00",
  "toast_expire_in": "2.00:00:00",
  "tray_icon": "replica",
  "wallpaper_fit": "fill",

  "active_pods": [ 
    "bing", 
    "apod",
    "elementy",
    "wikipedia"
  ],
  
  "bing": {
    "resolution": "UHD"
  },

  "apod": {
    "throttling_hours": "23:00:00",
    "api_key": "DEMO_KEY"
  },

  "user_agent": "LastWallpaper/4.6.23 (Windows NT 10.0; Win64; x64)"
}

Release Notes

4.11.13 --fix

  • Fix tray icon mouse click.

4.11.12

  • Improve validating of wikipedia media types.
  • Rebuild mosaic in tray icon on user click (see tray_icon:mosaic option).

4.9.30 --fix

  • Fix using of universal datetime, local one used instead.

4.9.21

  • Control manual change of system wallpaper.
  • Add NASA.gov POD loader, general image-of-the-day page.
  • Add Copernicus POD, a gallery containing the newest Copernicus Sentinel images.
  • Add NatGeoTV POD.

4.8.18

  • Add mosaic tray icon.
  • Add AstroBin - home of astrophotography.
  • Add configurable wallpaper fit parameter.
  • Add Elementy (science picture of the day).

4.6.24

  • Add application settings file.
  • Remember the last wallpaper and recall it after the app restarts.

4.6.10

  • Wikipedia POTD loader added

4.6.5

  • NASA APOD loader added

4.6.3

  • Bing POD loader is ready

4.5.29-alpha

  • C#, switched back to csharp + winforms

3.6.19-alpha

  • Windows toast notifications

3.6.18-alpha

  • F#, Bing POD. Changes tray icon according to the new image of the day

2.11.22-alpha

  • C#, cross-platform version with Avalonia UI.