Skip to main content

REST API to get a picture of the day. This fetches photos from a Nextcloud Photos / Memories album. It let you specify to deliver a specific photo for a specific day, for unspecified days it chooses a random picture.

Project description

Picture of the Day

This project provides a REST API endpoint for delivering a Picture of the Day.

It requires a connection to a Nextcloud instance with Nextcloud Photos being enabled. You can also use Memories for Nextcloud, but you need to have Nextcloud Photos enabled for photo album support (Memories and Photos are sharing their albums).

You can then specify an album from which the photos are fetched. Afterwards, you can assign for each calandar day a specific photo. For days for which there is no photo assigned, a random photo is choosen.

The app remembers which photos have already been delivered and prefers photos for the random assignment which haven't been picked yet. If there are no more new photos, the already delivered photos will be picked again.

Motivation

My personal motivation for this app is to use it for an ESP32-S3-PhotoFrame, which has an e-ink display and therefore has ultra-low energy consumption and can run on a battery for months.

Important

[!CAUTION]
While this application has some form of basic authentication, I still recommend to only run this within a trusted home network without exposing it to the internet.

Install

To install the latest release:
pip install picture-of-the-day

To install from source:
pip install .

Developing & Testing

Install all dependencies:

pip install -U .[dev,tests]

Run tests:

pytest -v

Run

picture-of-the-day run

License

This project is licensed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

picture_of_the_day-0.4.0a2.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

picture_of_the_day-0.4.0a2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file picture_of_the_day-0.4.0a2.tar.gz.

File metadata

  • Download URL: picture_of_the_day-0.4.0a2.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for picture_of_the_day-0.4.0a2.tar.gz
Algorithm Hash digest
SHA256 a8b080ea7c99e6dbc9d641c34a47c1ce245b82cf672a0d16f923d9b9b4b331b6
MD5 9a4b3d1dd99f29455503c19036f608e6
BLAKE2b-256 9ac3c25a18fb05ea8e2bdc83a6d02ca25917151f76cd441cf24dc7d9acb87e7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for picture_of_the_day-0.4.0a2.tar.gz:

Publisher: ci.yml on Croydon/picture-of-the-day

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file picture_of_the_day-0.4.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for picture_of_the_day-0.4.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 fbfde0650ad34105e922741f914ed63ead09e454b343848031ba664ecaf0b271
MD5 8d649ec35a8663c0933f92cd9afc00a6
BLAKE2b-256 70e39f148860fda0be3ed0e98fc6d588116c9599447216904a8c8b319ece1e27

See more details on using hashes here.

Provenance

The following attestation bundles were made for picture_of_the_day-0.4.0a2-py3-none-any.whl:

Publisher: ci.yml on Croydon/picture-of-the-day

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page