Skip to main content

gshock_api

Announcement

The library now supports sending application-level notifications to watches that support it, namely:

  • DW-H5600

  • GBD-H2000

  • GBD-200

  • GBD-100

  • GBD-800

  • GBD-100BAR

  • GBX-100

The new API is send_app_notification function. See the examples/api_test.py file for usage examples.

Only the DW-H5600 watch has been tested. If you have any of the watches supporting notifications, please let me know your findings.

Version 2.0.38+: Functional Architecture

Starting from version 2.0.38, the library has been refactored to use a pure functional programming model with monoids for all data transformations. This architectural improvement provides:

  • Better composability: Data transformation operations can be easily combined and chained

  • Improved predictability: Immutable data structures reduce side effects and unexpected state changes

  • Enhanced testability: Functional components are easier to unit test in isolation

  • Cleaner code: Monoid operations simplify buffer handling and packet encoding/decoding

Overview

This is a Python API library for G-Shock watches that support Bluetooth Low Energy (BLE) communication.

G(M)W-5600, G(M)W-5000, GA-B2100, GA-B001-1AER, GST-B500, GST-B200, MSG-B100, G-B001, GBD-H1000 (Partial support), MRG-B5000, GCW-B5000, GG-B100, ABL-100WE, F-B100W, Edifice ECB-30, ECB-10, ECB-20, most Edifice watches, most Protrek models.

It can perform the following tasks:

  • Set watch’s time

  • Set Home Time (Home City)

  • Set Alarms

  • Set Reminders

  • Set watch’s settings.

  • Get watch’s name

  • Get watch’s battery level

  • Get Watch’s temperature

  • Get/Set watch’s Timer

  • Send notifications to watch (supported models)

Running the tests

To run the test do the following:

uv run src/examples/api_tests.py

or activate venv` first and then run using python:

source .venv/bin/activate
python src/examples/api_tests.py

Installing the library for your project:

Add dependency on this library in your pyproject.toml

dependencies = [
   "gshock-api>=2.0.38",
   ...
]

Troubleshooting:

If your watch cannot connect, and the `–multi-watch` parameter is not used, remove the `config.ini` file and try again.

Metadata

Release files for gshock-api 2.0.50

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

Source distribution (sdist)

Source distribution for gshock-api 2.0.50
File Size Uploaded Provenance Actions
gshock_api-2.0.50.tar.gz 78.2 kB Without provenance Details for gshock_api-2.0.50.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gshock-api 2.0.50
File Interpreter ABI Platform Actions
gshock_api-2.0.50-py3-none-any.whl Python 3 none any Details for gshock_api-2.0.50-py3-none-any.whl

Total release size: 168.7 kB

Release files / gshock_api-2.0.50.tar.gz

Download URL gshock_api-2.0.50.tar.gz
Size 78.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b53ba1aa5a5bc2d6e05bdc71a671f7b25757f146a4a3c877c8d6cf310135d75e
BLAKE2b-256 checksum
How to use checksums
ea4c82318ef7c7511d2bac3a80d26c1ef99b382b4537f6927abbd3b79097f40b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / gshock_api-2.0.50-py3-none-any.whl

Download URL gshock_api-2.0.50-py3-none-any.whl
Size 90.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04e30392b60cdd66b272030820f739571b3307550f433dcfe97a3308d42f285a
BLAKE2b-256 checksum
How to use checksums
5c23b8720b2ca6d33a2d8d2c15bdf86c5000b9bc2e91bef37bcd28315180b9bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for gshock-api 2.0.50

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.

Release history Release notifications | RSS feed

This release

2.0.50 This release

2 release files No provenance

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