Skip to main content

A Python client for controlling Spypoint cameras, including settings management.

Project description

Spypoint Control

A comprehensive Python client for interacting with the Spypoint API. Unlike other libraries, spypoint-ctrl supports updating camera settings, including the "Take Photo at Next Sync" feature.

Features

  • Authentication: Login securely using your Spypoint credentials.
  • Camera Management: Retrieve a list of all cameras on your account.
  • Photo Management: Fetch and download the latest photos.
  • Settings Control: Read and Update camera configuration (e.g., capture mode, sync frequency, etc.).

Installation

pip install spypoint-ctrl

(Note: Once published to PyPI. For now, install from source)

git clone https://github.com/beardface/spypoint-ctrl.git
cd spypoint-ctrl
pip install .

Usage

Basic Example

from spypoint_ctrl import SpypointClient

# Initialize
client = SpypointClient("your_email", "your_password")
client.login()

# Get Cameras
cameras = client.get_cameras()
for cam in cameras:
    print(f"Camera: {cam['name']} (ID: {cam['id']})")

# Get Settings
cam_id = cameras[0]['id']
settings = client.get_camera_settings(cam_id)
print(f"Current Capture Mode: {settings.get('capture')}")

# Update Settings: Enable "Take Photo at Next Sync"
client.update_camera_settings(cam_id, {"capture": True})

# Download Latest Photo
photos = client.get_photos(cam_id, limit=1)
if photos:
    url = photos[0].get('url') # or 'large' depending on API response
    client.download_photo(url, "latest.jpg")

Disclaimer

This is an unofficial library. Spypoint does not provide a public API, so endpoints may change without notice. Use at your own risk.

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

spypoint_ctrl-0.1.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spypoint_ctrl-0.1.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file spypoint_ctrl-0.1.0.tar.gz.

File metadata

  • Download URL: spypoint_ctrl-0.1.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for spypoint_ctrl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ed1432f803a0657ff6adfb73a2615e8d732516c1e0bf8c9f2ba8b99b2e00f999
MD5 62b1f72a347a83e9c77070c8b4446563
BLAKE2b-256 0b8a39aa4b2fb8c65a8923cb05e651df5af9e4f6b7e63f9004f868b5856e1987

See more details on using hashes here.

File details

Details for the file spypoint_ctrl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: spypoint_ctrl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for spypoint_ctrl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50e279b2eb88b320701d323fb8887a7d54b6fdb1cca948aa51d515dc1463c0c7
MD5 70cb131dec7f9659886f6b32b056cf4c
BLAKE2b-256 bff2d39a300ab109d1051350ce59fea98e91ee4e03d936770fb18b56aed7d2c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page