Skip to main content

With this python library you can send simple animations to the flaschen taschen server (fork).

Project description

flaschenclient

A python library for sending simple animations to the flaschen taschen server (fork). Currently it's only working with the forked server which can be found here: https://github.com/werling/flaschen-taschen

Before using this library please have a look at the original project: https://github.com/hzeller/flaschen-taschen

Some examples how to use the python library can be found in the examples folder. The test display has the resolution 256x96.

The main features are:

loading and playing images/gifs

Also defining the width, height, duration and the layer of the image/gif

FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2)

Define the position of the image/gif

FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, x_offset=128-32, y_offset=48-32)

Blur in and/or blur out

FlaTaClient.send(im, width=64, height=64, timeout=4, layer=2, x_offset=128-32, y_offset=48-32, blur_out_frames=10)

Move image/gif with constant speed

FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, x_offset=0, y_offset=48-32, x_vel=4)

Move image/gif with acceleration

FLaTaClient.send(im, width=64, height=64, timeout=10, layer=2, x_offset=0, y_offset=0, x_vel=12, y_gravity=1)

Rotate image/gif with constant or acceleration speed

FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, x_offset=0, y_offset=0, rot_vel=20)

Limits, Default mode is stop all motion when a limit is exceeded

FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, y_offset=48-32, x_min=0, x_max=256-64, y_min=0, y_max=96-64, x_vel=8)

Limits, mode: inverse all motion directions when exceeding a limit

FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, y_offset=48-32, x_min=0, x_max=256-64, y_min=0, y_max=96-64, x_vel=8, y_vel=2, action_at_limit="inverse_all")

Limits, mode: inverse only the motion direction which exceeded a limit

FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, y_offset=48-32, x_min=0, x_max=256-64, y_min=0, y_max=96-64, x_vel=8, y_vel=2, action_at_limit="inverse_single")

Limits, mode: stop the motion which exceeded a limit

FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, y_offset=48-32, x_min=0, x_max=256-64, y_min=0, y_max=96-64, x_vel=8, y_vel=2, action_at_limit="stop_single")

Zooming and Limits

FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, x_offset=128-32, y_offset=48-32, action_at_limit="inverse_all", zoom_vel=2, width_max=128, width_min=8)

Of course you also can do all at once ;)

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

flaschenclient-0.1.4.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

flaschenclient-0.1.4-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file flaschenclient-0.1.4.tar.gz.

File metadata

  • Download URL: flaschenclient-0.1.4.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

File hashes

Hashes for flaschenclient-0.1.4.tar.gz
Algorithm Hash digest
SHA256 de0561c3c4332933d1ff464f9847f7bdbfc571ebe7b6452f8c4d54f002c5d371
MD5 b4a5109ce5fcef1e659e26360b049519
BLAKE2b-256 3268903581a19e2e6bf9cfd04e5ef6d684933c51f9f8c4d01920549197d46bb9

See more details on using hashes here.

File details

Details for the file flaschenclient-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: flaschenclient-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

File hashes

Hashes for flaschenclient-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4720a15d39fcae2ef9432db012e1f12bff23982478605ebe7c798cf35b8c5dd2
MD5 d0b3ddae293d0f89870052ab977e88c5
BLAKE2b-256 3dd278a3863147bf0cb1172fc2472766a50e87e33989030ebda852a6c12f6971

See more details on using hashes here.

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