gshock-api 2.0.28__tar.gz → 2.0.30__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gshock_api-2.0.28/src/gshock_api.egg-info → gshock_api-2.0.30}/PKG-INFO +1 -1
- {gshock_api-2.0.28 → gshock_api-2.0.30}/pyproject.toml +1 -1
- {gshock_api-2.0.28 → gshock_api-2.0.30}/setup.py +1 -1
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/gshock_api.py +0 -3
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/time_adjustement_io.py +2 -2
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/scanner.py +0 -1
- {gshock_api-2.0.28 → gshock_api-2.0.30/src/gshock_api.egg-info}/PKG-INFO +1 -1
- {gshock_api-2.0.28 → gshock_api-2.0.30}/LICENSE.txt +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/README.rst +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/setup.cfg +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/__init__.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/alarms.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/always_connected_watch_filter.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/app_notification.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/cancelable_result.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/casio_constants.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/connection.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/event.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/exceptions.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/__init__.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/alarms_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/app_info_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/app_notification_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/button_pressed_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/dst_for_world_cities_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/dst_watch_state_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/error_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/events_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/settings_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/time_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/timer_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/unknown_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/watch_condition_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/watch_name_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/iolib/world_cities_io.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/logger.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/mailsener.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/message_dispatcher.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/settings.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/utils.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api/watch_info.py +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api.egg-info/SOURCES.txt +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api.egg-info/dependency_links.txt +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api.egg-info/not-zip-safe +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api.egg-info/requires.txt +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/src/gshock_api.egg-info/top_level.txt +0 -0
- {gshock_api-2.0.28 → gshock_api-2.0.30}/tests/test_code.py +0 -0
|
@@ -5,7 +5,7 @@ requires = ["setuptools>=61.0"]
|
|
|
5
5
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "gshock_api" # Change to your project name
|
|
8
|
-
version = "2.0.
|
|
8
|
+
version = "2.0.30"
|
|
9
9
|
description = "Pythgon API for GShock Watches using BLE"
|
|
10
10
|
readme = "README.rst"
|
|
11
11
|
authors = [{ name = "Ivo Zivkov", email = "izivkov@gmail.com" }]
|
|
@@ -159,9 +159,6 @@ class GshockAPI:
|
|
|
159
159
|
for item in array_of_dst_watch_state[: watch_info.dstCount]:
|
|
160
160
|
await self.read_and_write(item["function"], item["state"])
|
|
161
161
|
|
|
162
|
-
async def send_app_notification (self, hex_str):
|
|
163
|
-
await self.connection.write(0xD, hex_str)
|
|
164
|
-
|
|
165
162
|
async def read_write_dst_for_world_cities(self):
|
|
166
163
|
array_of_get_dst_for_world_cities = [
|
|
167
164
|
{"function": self.get_dst_for_world_cities, "city_number": 0},
|
|
@@ -32,7 +32,7 @@ class TimeAdjustmentIO:
|
|
|
32
32
|
@staticmethod
|
|
33
33
|
async def send_to_watch_set(message):
|
|
34
34
|
|
|
35
|
-
if TimeAdjustmentIO.original_value
|
|
35
|
+
if TimeAdjustmentIO.original_value is None:
|
|
36
36
|
return ErrorIO.request("Error: Must call get before set")
|
|
37
37
|
|
|
38
38
|
time_adjustment = json.loads(message).get("timeAdjustment") == "True"
|
|
@@ -42,7 +42,7 @@ class TimeAdjustmentIO:
|
|
|
42
42
|
raw_string = TimeAdjustmentIO.original_value
|
|
43
43
|
"0x11 0F 0F 0F 06 00 00 00 00 00 01 00 80 30 30"
|
|
44
44
|
int_array = to_int_array(raw_string)
|
|
45
|
-
int_array[12] = 0x80 if time_adjustment
|
|
45
|
+
int_array[12] = 0x80 if not time_adjustment else 0x00
|
|
46
46
|
int_array[13] = int(minutes_after_hour)
|
|
47
47
|
return bytes(int_array)
|
|
48
48
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|