Skip to main content

Python API for controlling Panasonic Blu-Ray players

Project description

Python control for Panasonic Blu-Ray players

This is a simple Python API for controlling Panasonic Blu-Ray players. It has only been tested with the DMP-BDT220, which dates from 2012. All players supported by the Panasonic Blu-ray Remote 2012 Android app should be supported; i.e. DMP-BDT120, DMP-BDT220, DMP-BDT221, DMP-BDT320, DMP-BDT500 and DMP-BBT01 devices.

Newer players with "UB" prefixes (e.g. the UB-9000) support a (very) limited set of functions.

Example use

Connect to a player on 192.168.0.4 and find out the current playing status:

import panacotta

bluray = panacotta.PansonicBD('192.168.0.4')
print("Device is currently %s" % bluray.get_play_status()[0])

Note that the device must be on the same subnet as the host running this API; requests from a different subnet will return a failure.

Press the power button:

import panacotta

bluray = panacotta.PansonicBD('192.168.0.4')
bluray.send_key('POWER')

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

panacotta-0.2.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

panacotta-0.2-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file panacotta-0.2.tar.gz.

File metadata

  • Download URL: panacotta-0.2.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for panacotta-0.2.tar.gz
Algorithm Hash digest
SHA256 dd97560d543fc37aa2909c10d5d47f46f9e7af3ec21d0b084d8bf3f6de458418
MD5 933d8304bc7a32cb0d0d1649055dc4ef
BLAKE2b-256 4b9855d40ead09def71c6c0a0d619d24d1b14a3f2b67e0124613b77628b40d4b

See more details on using hashes here.

File details

Details for the file panacotta-0.2-py3-none-any.whl.

File metadata

  • Download URL: panacotta-0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for panacotta-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 911e3bb917e009ebc748eed8e300eeeb9ef546da8a02c28731bca2fe3c0dda2b
MD5 f9993288a4cc36bee3ed3fb00208d42c
BLAKE2b-256 fbb8eedf1b1beef694b4a5f98d879363cc953b14f7be56c08d8ec16a53e9f580

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