pymammotion 0.4.0b2__tar.gz → 0.4.0b4__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.
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/PKG-INFO +3 -2
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/report_info.py +1 -1
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mqtt/mammotion_mqtt.py +1 -1
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/utility/constant/device_constant.py +18 -5
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pyproject.toml +4 -3
- pymammotion-0.4.0b2/pymammotion/mqtt/linkkit/__init__.py +0 -5
- pymammotion-0.4.0b2/pymammotion/mqtt/linkkit/h2client.py +0 -585
- pymammotion-0.4.0b2/pymammotion/mqtt/linkkit/linkkit.py +0 -3020
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/LICENSE +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/README.md +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/aliyun/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/aliyun/cloud_gateway.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/aliyun/model/aep_response.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/aliyun/model/connect_response.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/aliyun/model/dev_by_account_response.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/aliyun/model/login_by_oauth_response.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/aliyun/model/regions_response.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/aliyun/model/session_by_authcode_response.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/aliyun/model/stream_subscription_response.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/aliyun/tmp_constant.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/bluetooth/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/bluetooth/ble.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/bluetooth/ble_message.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/bluetooth/const.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/bluetooth/data/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/bluetooth/data/convert.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/bluetooth/data/framectrldata.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/bluetooth/data/notifydata.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/bluetooth/model/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/bluetooth/model/atomic_integer.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/const.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/account.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/device.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/device_config.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/device_info.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/device_limits.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/enums.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/excute_boarder_params.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/execute_boarder.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/generate_route_information.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/hash_list.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/location.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/mowing_modes.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/plan.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/rapid_state.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/raw_data.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/model/region_data.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/mqtt/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/mqtt/event.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/mqtt/properties.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/mqtt/status.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/data/state_manager.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/event/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/event/event.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/http/_init_.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/http/encryption.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/http/http.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/http/model/http.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/commands/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/commands/abstract_message.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/commands/mammotion_command.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/commands/messages/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/commands/messages/driver.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/commands/messages/media.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/commands/messages/navigation.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/commands/messages/network.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/commands/messages/ota.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/commands/messages/system.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/commands/messages/video.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/control/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/control/joystick.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/devices/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/devices/base.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/devices/mammotion.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/devices/mammotion_bluetooth.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mammotion/devices/mammotion_cloud.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mqtt/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/mqtt/mammotion_future.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/basestation.proto +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/basestation.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/basestation_pb2.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/basestation_pb2.pyi +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/common.proto +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/common.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/common_pb2.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/common_pb2.pyi +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/dev_net.proto +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/dev_net.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/dev_net_pb2.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/dev_net_pb2.pyi +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/luba_msg.proto +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/luba_msg.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/luba_msg_pb2.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/luba_msg_pb2.pyi +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/luba_mul.proto +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/luba_mul.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/luba_mul_pb2.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/luba_mul_pb2.pyi +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_driver.proto +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_driver.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_driver_pb2.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_driver_pb2.pyi +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_nav.proto +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_nav.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_nav_pb2.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_nav_pb2.pyi +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_ota.proto +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_ota.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_ota_pb2.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_ota_pb2.pyi +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_pept.proto +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_pept.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_pept_pb2.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_pept_pb2.pyi +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_sys.proto +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_sys.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_sys_pb2.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/proto/mctrl_sys_pb2.pyi +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/py.typed +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/utility/constant/__init__.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/utility/conversions.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/utility/datatype_converter.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/utility/device_config.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/utility/device_type.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/utility/map.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/utility/movement.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/utility/periodic.py +0 -0
- {pymammotion-0.4.0b2 → pymammotion-0.4.0b4}/pymammotion/utility/rocker_util.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: pymammotion
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.0b4
|
4
4
|
Summary:
|
5
5
|
License: GPL-3.0
|
6
6
|
Author: Michael Arthur
|
@@ -15,6 +15,7 @@ Requires-Dist: aiohttp (>=3.9.1,<4.0.0)
|
|
15
15
|
Requires-Dist: alibabacloud-apigateway-util (>=0.0.2,<0.0.3)
|
16
16
|
Requires-Dist: alibabacloud-iot-api-gateway (>=0.0.4,<0.0.5)
|
17
17
|
Requires-Dist: alicloud-gateway-iot (>=1.0.0,<2.0.0)
|
18
|
+
Requires-Dist: aliyun-iot-linkkit (>=1.2.12,<2.0.0)
|
18
19
|
Requires-Dist: async-timeout (>=4.0.3,<5.0.0)
|
19
20
|
Requires-Dist: betterproto (>=1.2.5,<2.0.0)
|
20
21
|
Requires-Dist: bleak (>=0.21.0)
|
@@ -25,7 +26,7 @@ Requires-Dist: jsonic (>=1.0.0,<2.0.0)
|
|
25
26
|
Requires-Dist: mashumaro (>=3.13,<4.0)
|
26
27
|
Requires-Dist: numpy (>=1.26.0)
|
27
28
|
Requires-Dist: orjson (>=3.9.15,<4.0.0)
|
28
|
-
Requires-Dist: paho-mqtt (>=
|
29
|
+
Requires-Dist: paho-mqtt (>=1.6.1,<2.0.0)
|
29
30
|
Requires-Dist: protobuf (>=4.23.1)
|
30
31
|
Requires-Dist: py-jsonic (>=0.0.2,<0.0.3)
|
31
32
|
Description-Content-Type: text/markdown
|
@@ -10,13 +10,13 @@ import logging
|
|
10
10
|
from logging import getLogger
|
11
11
|
|
12
12
|
import betterproto
|
13
|
+
from linkkit.linkkit import LinkKit
|
13
14
|
from paho.mqtt.client import MQTTMessage
|
14
15
|
|
15
16
|
from pymammotion.aliyun.cloud_gateway import CloudIOTGateway
|
16
17
|
from pymammotion.data.mqtt.event import ThingEventMessage
|
17
18
|
from pymammotion.data.mqtt.properties import ThingPropertiesMessage
|
18
19
|
from pymammotion.data.mqtt.status import ThingStatusMessage
|
19
|
-
from pymammotion.mqtt.linkkit.linkkit import LinkKit
|
20
20
|
from pymammotion.proto.luba_msg import LubaMsg
|
21
21
|
|
22
22
|
logger = getLogger(__name__)
|
@@ -1,5 +1,7 @@
|
|
1
1
|
from enum import IntEnum
|
2
2
|
|
3
|
+
from pymammotion.data.model.report_info import ConnectData
|
4
|
+
|
3
5
|
|
4
6
|
class bleOrderCmd:
|
5
7
|
allpowerfullRW = 67
|
@@ -211,15 +213,26 @@ class WorkMode:
|
|
211
213
|
MODE_CHARGING_PAUSE = 39
|
212
214
|
|
213
215
|
|
214
|
-
def device_connection(
|
216
|
+
def device_connection(connect: ConnectData) -> str:
|
215
217
|
"""Return string representation of device connection."""
|
216
|
-
if value == 1:
|
217
|
-
return "BLE"
|
218
218
|
|
219
|
-
if
|
219
|
+
if (
|
220
|
+
connect.connect_type == 2
|
221
|
+
or connect.used_net == "NET_USED_TYPE_WIFI"
|
222
|
+
or (connect.wifi_rssi != 0 and connect.ble_rssi != 0)
|
223
|
+
):
|
224
|
+
return "WIFI/BLE"
|
225
|
+
|
226
|
+
if connect.connect_type == 2 or connect.used_net == "NET_USED_TYPE_WIFI" or connect.wifi_rssi != 0:
|
220
227
|
return "WIFI"
|
221
228
|
|
222
|
-
|
229
|
+
if connect.connect_type == 1 or connect.used_net == "NET_USED_TYPE_MNET":
|
230
|
+
return "3G/4G"
|
231
|
+
|
232
|
+
if connect.ble_rssi != 0:
|
233
|
+
return "BLE"
|
234
|
+
|
235
|
+
return "None"
|
223
236
|
|
224
237
|
|
225
238
|
def device_mode(value: int) -> str:
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "pymammotion"
|
7
|
-
version = "0.4.0-
|
7
|
+
version = "0.4.0-beta4"
|
8
8
|
license = "GPL-3.0"
|
9
9
|
description = ""
|
10
10
|
readme = "README.md"
|
@@ -26,7 +26,8 @@ bleak = ">=0.21.0"
|
|
26
26
|
protobuf = ">=4.23.1"
|
27
27
|
py-jsonic = "^0.0.2"
|
28
28
|
aiohttp = "^3.9.1"
|
29
|
-
|
29
|
+
aliyun-iot-linkkit = "^1.2.12"
|
30
|
+
paho-mqtt = "^1.6.1"
|
30
31
|
alicloud-gateway-iot = "^1.0.0"
|
31
32
|
alibabacloud-apigateway-util = "^0.0.2"
|
32
33
|
alibabacloud-iot-api-gateway = "^0.0.4"
|
@@ -65,7 +66,7 @@ mypy = "^1.11.2"
|
|
65
66
|
autotyping = "^24.3.0"
|
66
67
|
|
67
68
|
[tool.bumpver]
|
68
|
-
current_version = "0.4.0-
|
69
|
+
current_version = "0.4.0-beta4"
|
69
70
|
version_pattern = "MAJOR.MINOR.PATCH"
|
70
71
|
commit_message = "Bump version {old_version} -> {new_version}"
|
71
72
|
commit = true
|