1
0
mirror of https://github.com/Oreomeow/VIP.git synced 2026-02-03 02:24:02 +08:00
Files
vip/Scripts/js/mimotion.js
2022-03-09 20:43:36 +08:00

25 lines
754 B
JavaScript

// @grant nodejs
console.log('⏳ 初始化安装依赖中......');
$exec('pip3 install pytz', {
cwd: './script/Shell',
timeout: 0,
cb(data, error) {
error ? console.error(error) : console.log(data);
},
});
console.log('⏳ 开始执行 mimotion.py');
$exec('python3 https://raw.githubusercontent.com/Oreomeow/VIP/main/Scripts/py/mimotion.py', {
cwd: './script/Shell',
timeout: 0,
env: {
MI_USER: $store.get('MI_USER', 'string'),
MI_PWD: $store.get('MI_PWD', 'string'),
STEP: $store.get('STEP', 'string'),
PMODE: $store.get('PMODE', 'string'),
PKEY: $store.get('PKEY', 'string'),
},
cb(data, error) {
error ? console.error(error) : console.log(data);
},
});