Skip to main content

Python Kodak SmartHome API

Project description

.. image:: https://travis-ci.org/kairoaraujo/python-kodaksmarthome.svg?branch=master :target: https://travis-ci.org/kairoaraujo/python-kodaksmarthome .. image:: https://readthedocs.org/projects/python-kodaksmarthome/badge/?version=latest :target: https://python-kodaksmarthome.readthedocs.io/en/latest/?badge=latest .. image:: https://codecov.io/gh/kairoaraujo/python-kodaksmarthome/branch/master/graph/badge.svg :target: https://codecov.io/gh/kairoaraujo/python-kodaksmarthome .. image:: https://img.shields.io/pypi/v/python-kodaksmarthome.svg :target: https://pypi.python.org/pypi/python-kodaksmarthome .. image:: https://img.shields.io/pypi/l/python-kodaksmarthome.svg :target: https://pypi.python.org/pypi/python-kodaksmarthome

####################### Python Kodak Smart Home #######################

Python Kodak Smart Home is a library written in Python 3 (>=3.7) that works as API for Kodak Smart Home Portal.

This API uses the credentials from Kodak Smart Home Portal to fetch devices registered and its events to be used as Python Projects.

This project is not part of Kodak.

Installation ############

pip install python-kodaksmarthome

Usage

Initializing the connection

.. code-block:: python

>>> from kodaksmarthome import KodakSmartHome
>>> my_home = KodakSmartHome('my@email.com', 'my-pass')
>>> my_home.connect()
>>> my_home.is_connected
True

Listing devices, state, model and device id

.. code-block:: python

>>> for device in my_home.list_devices:
...   print(f"Device: {device['name']}")
...   print(f"Device ID: {device['device_id']})
...   print(f"Model: {device['model_name']})
...   print(f"Online: {device['is_online']}\n")
...
Device: Playground
Device ID: '000009999999999999999999'
Model: Cherish 525
Online: False

Device: Bedroom
Device ID: '00000222222222222222222'
Model: Cherish 525
Online: True

Listing last device motion events

.. code-block:: python

>>> motion_events = my_home.get_motion_events(device_id="00000222222222222222222")
>>> for event in motion_events[:2]:
...    print(f"snapshot: {event['snapshot']}")
...    print(f"video_recorded: {event['data'][0]['file']}")
...    print(f"data: {event['created_date']}")

snapshot: http://video_url/00000222222222222222222/SNAPSHOT.jpg
video_recorded: http://video_url/00000222222222222222222/VIDEO000001.flv
data: 2020-01-04T16:11:48.000Z
snapshot: http://video_url/00000222222222222222222/SNAPSHOT
video_recorded: http://video_url/00000222222222222222222/VIDEO000002.flv
data: 2020-01-04T16:08:52.000Z

Documentation #############

https://python-kodaksmarthome.readthedocs.io

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

python-kodaksmarthome-0.0.1a1.tar.gz (19.3 kB view details)

Uploaded Source

Built Distributions

python_kodaksmarthome-0.0.1a1-py3.7.egg (6.4 kB view details)

Uploaded Source

python_kodaksmarthome-0.0.1a1-py2.py3-none-any.whl (7.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file python-kodaksmarthome-0.0.1a1.tar.gz.

File metadata

  • Download URL: python-kodaksmarthome-0.0.1a1.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2

File hashes

Hashes for python-kodaksmarthome-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 1c38691aa74165a9f2e08e14b29c8b4be25ba83eeb97f86216a05c709930eb2c
MD5 352d2927ca4e1ffb700a4b1951ba39b8
BLAKE2b-256 4e68f1946500fe507b350046c0c9d286a3f15369cc0080187c36ecadff65349b

See more details on using hashes here.

Provenance

File details

Details for the file python_kodaksmarthome-0.0.1a1-py3.7.egg.

File metadata

  • Download URL: python_kodaksmarthome-0.0.1a1-py3.7.egg
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2

File hashes

Hashes for python_kodaksmarthome-0.0.1a1-py3.7.egg
Algorithm Hash digest
SHA256 963a20f4648fbc255868ff8dcc2683ab55427370a3ad29c151c67a0621103fea
MD5 20cb17057d3f7b5f40904b64366d8ddb
BLAKE2b-256 cc60f8655fc38b3d3b2001519047f86dd467829a04285bfb46da83dab551fbb7

See more details on using hashes here.

Provenance

File details

Details for the file python_kodaksmarthome-0.0.1a1-py2.py3-none-any.whl.

File metadata

  • Download URL: python_kodaksmarthome-0.0.1a1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2

File hashes

Hashes for python_kodaksmarthome-0.0.1a1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f99fd99ecad6f5b34c073fae535c73f9f50c0558205f8fb964ed3f0d7081a806
MD5 f802afc5a1b63c5e56d68abe79df3806
BLAKE2b-256 6a36d263c52e720df76846e5401e08e08eb8c3a15479e6001ffed89574118a7a

See more details on using hashes here.

Provenance

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