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
>>> 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
>>> 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
>>> 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']}\n")
snapshot: http://video_url/00000222222222222222222/SNAPSHOT.jpg
video_recorded: http://video_url/00000222222222222222222/VIDEO000001.flv
date: 2020-01-04T16:11:48.000Z
snapshot: http://video_url/00000222222222222222222/SNAPSHOT
video_recorded: http://video_url/00000222222222222222222/VIDEO000002.flv
date: 2020-01-04T16:08:52.000Z
Documentation
Metadata
Release files for python-kodaksmarthome 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-kodaksmarthome-0.1.1.tar.gz | 21.0 kB | Without provenance | Details for python-kodaksmarthome-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_kodaksmarthome-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for python_kodaksmarthome-0.1.1-py2.py3-none-any.whl |
Total release size: 28.6 kB
Release files / python-kodaksmarthome-0.1.1.tar.gz
| Download URL | python-kodaksmarthome-0.1.1.tar.gz |
|---|---|
| Size | 21.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd28227f9aebbc573e0f9c4cde6569b5c379d27b0a751f18ed50819c91bb1ddf
|
|
BLAKE2b-256 checksum How to use checksums |
a3d7ea49895f7f21c396a91ec20ccfe2333c5fd3a0e06df36a9eb3fabd64e059
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / python_kodaksmarthome-0.1.1-py2.py3-none-any.whl
| Download URL | python_kodaksmarthome-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a0eb9ba8492d994e8beb09be94f65885d8744bca4d3a76cb39d480f61778e087
|
|
BLAKE2b-256 checksum How to use checksums |
32c0a9422ffa2c0885de1bff049b1438d9377abc3c543051b73a7edcaac62b05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for python-kodaksmarthome 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.