Skip to content

Colors, animations, moon phase... #16

@a7ypically

Description

@a7ypically

First, thank you for this project! This weather presentation is brilliant and a joy to watch every day!

I'm using a tablet with the MagicMirror project (https://github.com/MagicMirrorOrg/MagicMirror) and wanted to add some colors and animations. I did not write any code myself and just used mostly claude 3.7 asking to do some quick code changes. So, this is meant just as an idea or maybe some useful code examples. The code uses the original bitmaps and paints them on the fly as it generates the animated gif.

Image

Image

Image

I only modified run_test.py and it has some additional command line args.
usage: run_test.py [-h] [--animated] [--white-bg] [--black-bg] [--dynamic-bg] [--moon]

dynamic background just uses the current time of run and makes the background darker if the image is generated at night so it's nicer on a dimly lit room.

Moon phase requires the ephem python package and will draw the moon at sunset with the current phase.

options:
-h, --help show this help message and exit
--animated, -a Generate an animated GIF
--white-bg, -w Use white background
--black-bg, -b Use black background
--dynamic-bg, -d Use dynamic background that changes with time of day (default)
--moon, -m Draw moon phase in the animated GIF

https://github.com/a7ypically/weather_landscape

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions