CloudBot

From Woozle Writes Code
Jump to navigation Jump to search

About

CloudBot is a bot for posting clouds[1]... or posting images to the cloud (fedi), anyway.

The basic idea is that there will be a folder containing images to post, and at some regular interval the bot will choose one image from that folder, post it, and remove it from the folder.

Features

Version 1

  • automatic resizing of images
    • we don't need to be taking up space on everyone's servers with high-resolution originals
    • some creators may want to offer higher-resolution versions for download in some form
  • automatic captioning of images
    • default is a generic description ("an original photograph of clouds, taken $date/$time")
    • specific image descriptions entered by the creator could be in a meta-file or something, and would override or supplement the default

For planned features, see future.

Configuration

It should be possible to configure the bot in at least these particular ways:

  • connection details (host and API key, I think) for fedi account to use
  • file-path for source folder(s)
  • file-path for where to move the images afterwards
  • (handled by cron) time-interval for posting
  • maximum height or width of image as posted
  • default text to accompany each image

Footnote

  1. That's where the name originally came from, anyway: I have a lot of photos of clouds, and wanted a way to automatically post them to fedi. I also have other photos I want to automatically post, so I decided to retro-canon the name as being about where the images are posted rather than the specific type of image.