a generative 10print-pattern banner for a (pleroma) fedi account
Find a file
2024-07-03 20:01:45 +02:00
examples Initial commit 2024-07-03 19:13:19 +02:00
generate_set_banner.py Initial commit 2024-07-03 19:13:19 +02:00
README.md added a line of content in readme 2024-07-03 20:01:45 +02:00
tenprint.py Initial commit 2024-07-03 19:13:19 +02:00
tenprint_gradient.py Initial commit 2024-07-03 19:13:19 +02:00

an autogenerated 10print pattern in blue

Generative Banner

a little fun thing i made back in early 2023

A bit of code that generates a 10 print pattern in one on the specified color palettes and sets the result as the banner on a Pleroma account. I made it run as a cronjob every day at midnight.

It required some reverse engineering of all the APIs, because at the time I was working on it, none of the documentation matched reality :)

You can see some generated examples in the examples folder.

Usage

In generate_set_banner.py:

  1. Set the OAuth token used to access the Pleroma API with privileges to edit your account. I used this site.
  2. Set the base url of the Pleroma instance.
OAUTH_TOKEN = 'OAUTH_TOKEN'
base_url = 'https://example.com'

Run

python3 generate_set_banner.py

This will generate a banner using a randomly picked color palette from a list in the code and set it as the banner on your fedi account.