pymammotion 0.4.42__py3-none-any.whl → 0.4.43__py3-none-any.whl
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/mammotion/commands/messages/media.py +8 -2
- {pymammotion-0.4.42.dist-info → pymammotion-0.4.43.dist-info}/METADATA +1 -1
- {pymammotion-0.4.42.dist-info → pymammotion-0.4.43.dist-info}/RECORD +5 -5
- {pymammotion-0.4.42.dist-info → pymammotion-0.4.43.dist-info}/LICENSE +0 -0
- {pymammotion-0.4.42.dist-info → pymammotion-0.4.43.dist-info}/WHEEL +0 -0
@@ -2,7 +2,8 @@
|
|
2
2
|
from abc import ABC
|
3
3
|
|
4
4
|
from pymammotion.mammotion.commands.abstract_message import AbstractMessage
|
5
|
-
from pymammotion.proto import LubaMsg, MsgAttr, MsgCmdType, MsgDevice,
|
5
|
+
from pymammotion.proto import (LubaMsg, MsgAttr, MsgCmdType, MsgDevice, MulSetAudio, MulSetWiper, SocMul,
|
6
|
+
MUL_SEX, MUL_LANGUAGE)
|
6
7
|
|
7
8
|
|
8
9
|
class MessageMedia(AbstractMessage, ABC):
|
@@ -24,10 +25,15 @@ class MessageMedia(AbstractMessage, ABC):
|
|
24
25
|
"""Set the car volume. 0 - 100"""
|
25
26
|
return self.send_order_msg_media(SocMul(set_audio=MulSetAudio(at_switch=volume)))
|
26
27
|
|
27
|
-
def set_car_voice_language(self, language_type:
|
28
|
+
def set_car_voice_language(self, language_type: MUL_LANGUAGE | str | None):
|
28
29
|
return self.send_order_msg_media(SocMul(set_audio=MulSetAudio(au_language=language_type)))
|
29
30
|
|
31
|
+
def set_car_volume_sex(self, sex: MUL_SEX):
|
32
|
+
return self.send_order_msg_media(SocMul(set_audio=MulSetAudio(sex=sex)))
|
33
|
+
|
30
34
|
def set_car_wiper(self, round_num: int):
|
31
35
|
"""Set mower wiper."""
|
32
36
|
# 2
|
33
37
|
return self.send_order_msg_media(SocMul(set_wiper=MulSetWiper(round=round_num)))
|
38
|
+
|
39
|
+
# TODO add lamp methods
|
@@ -61,7 +61,7 @@ pymammotion/mammotion/commands/abstract_message.py,sha256=C1teY4Bd_BpBhAWWzKokoe
|
|
61
61
|
pymammotion/mammotion/commands/mammotion_command.py,sha256=3OFXQjF7HFwPd_j6utHVI2Kfwh7t6_6ff_9MKAWGTlk,2570
|
62
62
|
pymammotion/mammotion/commands/messages/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
63
63
|
pymammotion/mammotion/commands/messages/driver.py,sha256=LAYGvAcDDXwwliQ1OfRwNBk1VpIdpURo1TlA64zpLA4,3701
|
64
|
-
pymammotion/mammotion/commands/messages/media.py,sha256=
|
64
|
+
pymammotion/mammotion/commands/messages/media.py,sha256=eMjiyO03qCX9IZRdONVQ6f9v1gkfZlSpDo3Fm-NOWpQ,1457
|
65
65
|
pymammotion/mammotion/commands/messages/navigation.py,sha256=aEEpvDW5QukJ0QiWMhPjjz0eTTF1ndQuvv8a6hJlUg0,23257
|
66
66
|
pymammotion/mammotion/commands/messages/network.py,sha256=oO3PK6TKY563Jw-ZRpNmIzGCgkuk2SQm0BhcDL5claM,7595
|
67
67
|
pymammotion/mammotion/commands/messages/ota.py,sha256=ZHLQRE5ETvLEIu2Vbj3m2XidIWT8uorYSHxkZd3pkRc,1376
|
@@ -123,7 +123,7 @@ pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tp
|
|
123
123
|
pymammotion/utility/mur_mur_hash.py,sha256=xEfOZVbqRawJj66eLgtnZ85OauDR47oIPr29OHelzPI,4468
|
124
124
|
pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
|
125
125
|
pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
|
126
|
-
pymammotion-0.4.
|
127
|
-
pymammotion-0.4.
|
128
|
-
pymammotion-0.4.
|
129
|
-
pymammotion-0.4.
|
126
|
+
pymammotion-0.4.43.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
127
|
+
pymammotion-0.4.43.dist-info/METADATA,sha256=g8yCTgzKLaBHe2ZhlVtfAvzgzM7fuMiR3FfMKGjtGXw,3878
|
128
|
+
pymammotion-0.4.43.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
129
|
+
pymammotion-0.4.43.dist-info/RECORD,,
|
File without changes
|
File without changes
|