COMMENT
快捷指令定期更新,查看地址:
https://docs.qq.com/doc/DRG5hVkNPQ0VEVHRt
COMMENT
吹雪编写于2021/4/25
适用车型:宝马全系/Mini全系
功能实现:
1. 远程一键锁车,锁车后车窗、车门、后备箱、天窗没关好会提醒;未锁上会自动再锁一次,失败会提醒
2. 远程一键解锁,解锁失败会再解锁一次
3. 远程一键鸣笛、远程闪头灯,可用于停车场找车
4. 车辆状态一键查看,可快速显示车门、车窗、天窗、后备箱状态,也可显示车辆实时位置
5. 一键开启通风,可用于夏季降温,或出发前更换新鲜空气
COMMENT
快捷指令触发方式:
1. Siri语音说出快捷指令名称(支持apple watch)
2. 以小组件形式添加到负一屏
3. 添加到dock栏
4. 添加到桌面
5. 设置-辅助功能-触控-轻点背面,选择快捷指令
6. 设置-辅助功能-触控-辅助触控,选择操作对应快捷指令
7. 快捷指令中设置自动化条件触发
8. AirTag等设备蓝牙连接时自动化触发
9. NFC标签自动化触发(iPhone Xs以上机型支持),如用手机触碰智能手环,快捷指令运行
DICTIONARY

Dictionary
DOCUMENTS
Get File
File Path
/Shortcuts/example.txt

File
SCRIPTING
If
文件
does not have any value
VARIABLES
Set variable
icon
to
icon

Text
SCRIPTING
Set name of
文本
to
BMW_menu.vcf

Renamed Item
DOCUMENTS
Save
重新命名的项目
Destination Path
/Shortcuts/BMW_menu.vcfOverwrite If File Exists

Saved File
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
SCRIPTING

Chosen Item
NETWORK
Get contents of
https://note.youdao.com/yws/api/note/120a7d6fd8d4196f8760e1c3adc8f8e9
Options Under Construction

Contents of URL
SCRIPTING
Set name of
URL的内容
to
a.txt

Renamed Item
TEXT
Match
\{.*?\}
in
重新命名的项目

Matches
VARIABLES
Set variable
update
to
匹配
DOCUMENTS
Replace
v
with
World
in
update

Updated Text
VARIABLES
Set variable
version
to
更新后的文本
SCRIPTING
If
version
is greater than
Version
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
立即更新

Menu Result
URL
https://docs.qq.com/doc/DREdlbnZSYXhSaVNk

URL
SAFARI
Open
URL
SCRIPTING
Exit shortcut with
Result
SCRIPTING
下次运行提醒我

Menu Result
SCRIPTING
End Menu

Menu Result
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
VARIABLES
Set variable
menu
to
选取的项目
SCRIPTING
If
menu
is
锁定车辆
SHORTCUTS

Shortcut Result
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
SCRIPTING
If
menu
is
解锁车辆
SHORTCUTS

Shortcut Result
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
SCRIPTING
If
menu
is
鸣笛找车
SHORTCUTS

Shortcut Result
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
SCRIPTING
If
menu
is
车辆状态
NETWORK
Get contents of
https://note.youdao.com/yws/api/note/120a7d6fd8d4196f8760e1c3adc8f8e9
Options Under Construction

Contents of URL
SCRIPTING
Set name of
URL的内容
to
a.txt

Renamed Item
TEXT
Match
\{.*?\}
in
重新命名的项目

Matches
VARIABLES
Set variable
update
to
匹配
DOCUMENTS
Get File
File Path
/Shortcuts/example.txt

File
SCRIPTING
If
文件
has any value
VARIABLES
Set variable
lastUpdateDate
to
文件
CALENDAR
Get dates from
update

Dates
SCRIPTING
If
日期
is greater than
Version
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
去看看

Menu Result
DICTIONARY

Dictionary
DOCUMENTS
Save
词典
Destination Path
/Shortcuts/updateDate.jsonOverwrite If File Exists

Saved File
URL
https://docs.qq.com/doc/DRHZKekRrbnRzeEVl

URL
SAFARI
Open
URL
SCRIPTING
Exit shortcut with
Result
SCRIPTING
下次运行提醒我

Menu Result
SCRIPTING
End Menu

Menu Result
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
SCRIPTING
Otherwise
DICTIONARY

Dictionary
DOCUMENTS
Save
词典
Destination Path
/Shortcuts/updateDate.jsonOverwrite If File Exists

Saved File
SCRIPTING
End If

If Result
DOCUMENTS
Get File
File Path
/Shortcuts/example.txt

File
DOCUMENTS
Get
Last Modified Date
from
文件

Last Modified Date
VARIABLES
Set variable
access_token
to
文件
SCRIPTING
Otherwise
SHORTCUTS

Shortcut Result
VARIABLES
Set variable
access_token
to
Shortcut Result
SCRIPTING
End If

If Result
DOCUMENTS
Get File
File Path
/Shortcuts/example.txt

File
URL
https://myc-profile.bmw.com.cn/token

URL
NETWORK
Get contents of
URL
Options Under Construction

Contents of URL
VARIABLES
Set variable
token
to
URL的内容
URL
https://myc-profile.bmw.com.cn/api/gateway/mg-vehicle/v1/vehicle/
文件
?include_metadata=False&include_properties=True

URL
NETWORK
Get contents of
URL
Options Under Construction

Contents of URL
VARIABLES
Set variable
properties
to
URL的内容
SCRIPTING
If
properties
has any value
TEXT
车外温度:
properties
℃

Text
VARIABLES
Set variable
outTemperature
to
文本
SCRIPTING
Otherwise
VARIABLES
Set variable
outTemperature
to
Input
SCRIPTING
End If

If Result
CALENDAR
Get dates from
properties

Dates
VARIABLES
Set variable
updateTime
to
日期
VARIABLES
Set variable
service
to
URL的内容
DOCUMENTS
Replace
-
with
.
in
service

Updated Text
DICTIONARY

Dictionary
MATHS
Calculate the
Minimum
of
词典

Statistics
SCRIPTING
Repeat with each item in
词典

Repeat Results
SCRIPTING
If
Repeat Item
is
Minimum
VARIABLES
Set variable
min
to
Repeat Index
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
SCRIPTING
End Repeat

Repeat Results