Skip to main content

A matrix client for the photOS DIY photoframe

Project description

matrix-photos

Latest PyPI version CI build status

This aims to be a simple matrix client for the photOS DIY photoframe.

Matrix is an open standard for secure, decentralised, real-time communication.

For photOS please checkout https://github.com/avanc/photOS for more information.

This client can be used to transfer files (pictures/photos) to the photoframe with end to end encryption support. The idea is, that trusted users just can create a matrix room and invite the photoframe matrix user. The photoframe user will automatically join this room and download all media sent to this room (You can specify which mimetypes are allowed).

Configuration

There is a config-example.yml in this project which should be mostly self-explaining.

It is possible to add textmessages to the images. This is done with the tool 'convert'. The client automatically adds the first message after you post media content to the latest image when write_text_messages is set to true.

You can also optionally define an admin_user which can run some administration commands on the photoframe. If you define an admin user then just send !help from the specified user to the chatroom and the client sends you a list of available commands.

Running

Just create a virtual environement install the requirements and you can run the client.

    python -m matrix_photos -c /path/to/config.yml

Development

If you want to develop or test the client, there is a docker-compose file in the docker directory which starts a matrix synapse homeserver, a postgres database, an element matrix client and pgadmin if you want to check the database.

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

matrix-photos-0.0.4.tar.gz (23.3 kB view hashes)

Uploaded Source

Built Distribution

matrix_photos-0.0.4-py3-none-any.whl (25.3 kB view hashes)

Uploaded Python 3

Supported by

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