Python API for GShock Watches using BLE
Project description
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.
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, 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.36",
...
]
Troubleshooting:
If your watch cannot connect, and the `–multi-watch` parameter is not used, remove the `config.ini` file and try again.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gshock_api-2.0.36.tar.gz.
File metadata
- Download URL: gshock_api-2.0.36.tar.gz
- Upload date:
- Size: 40.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c21e19160bd1e483312933beafb3ef807f3bf374cbbff0dc9979d81a7a454aae
|
|
| MD5 |
529ddcf0093e1f4515ecffd17057b271
|
|
| BLAKE2b-256 |
5f36b31ded00775199721941856eded35a16f2a173c0e55bd3066203cc221024
|
File details
Details for the file gshock_api-2.0.36-py3-none-any.whl.
File metadata
- Download URL: gshock_api-2.0.36-py3-none-any.whl
- Upload date:
- Size: 50.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e58e9e990d8a614bbe7363dae18c4e853290536a4eae56339a41d8518af36c3
|
|
| MD5 |
3906a2f3d01195bb38931fba83533eb0
|
|
| BLAKE2b-256 |
a628ece55de9a5bfc179338584858863b462f15de7214215c67ce2c218723036
|