Skip to main content

synology-ss-playback

Async Python library behind the surveillance_station Home Assistant integration. It has no Home Assistant dependency.

  • SurveillanceStationClient: login (with session renewal), cameras, recordings with start/stop times (the same lookup shared for 2 s), bookmarks, and cutting a time range out of a recording (Recording.Download). close() logs out for good: later calls raise instead of logging in again.
  • plan_segments / render_playlist: cover a wall-clock window with 10 s HLS segments cut from those recordings, and the playlist text.
  • fetch_segment: download one segment and stream-copy it into fragmented MP4 with ffmpeg, split into the init and media parts.
  • Every failure is an SSError; SSAuthError (credentials refused), SSConnectionError (NAS unreachable) and FFmpegError (ffmpeg or its scratch file, here) say which kind.

The Surveillance Station API behaviour it relies on is written up in the repository README.

Tests: python3 -m unittest discover -s synology_ss/tests (from the repo root).

Metadata

Release files for synology-ss-playback 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for synology-ss-playback 0.9.0
File Size Uploaded
synology_ss_playback-0.9.0.tar.gz 57.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for synology-ss-playback 0.9.0
File Interpreter ABI Platform
synology_ss_playback-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 91.9 kB

Release files / synology_ss_playback-0.9.0.tar.gz

Download URL synology_ss_playback-0.9.0.tar.gz
Size 57.1 kB
Tags Source
SHA-256 checksum
How to use checksums
39e0cd0aa48008142d5a41b56be9d89f8e8151005fc1deb3a6f1bcc141ea1938
BLAKE2b-256 checksum
How to use checksums
b54073ed3d9d043abb388d080f8dd0c9ebee3446f2f7833533e925cc49271006
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / synology_ss_playback-0.9.0-py3-none-any.whl

Download URL synology_ss_playback-0.9.0-py3-none-any.whl
Size 34.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce7d517856f8516f26e89d9d5971d2a155a47649f04eae528e2d90d90c9ef22e
BLAKE2b-256 checksum
How to use checksums
bc24acdeb860235289ce59d001030a33bbf34abd70f92ff7677e33c39824c9b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

0.8.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page