ตอนนี้ Huami-Token โฮสต์บน codeberg.org
สคริปต์เพื่อรับโทเค็นการเข้าถึงบลูทู ธ ของนาฬิกาหรือวงดนตรีจากเซิร์ฟเวอร์ Huami นอกจากนี้ยังจะดาวน์โหลด AGPS Data Packs cep_alm_pak.zip และ cep_7days.zip
ในการใช้นาฬิกาและแถบ Xiaomi รุ่นใหม่กับ Gadgetbridge คุณต้องใช้คีย์พิเศษ อ่านเพิ่มเติมที่นี่: https://codeberg.org/freeyourgadget/gadgetbridge/wiki/huami-server-pairing
git clone https://github.com/argrento/huami-token.gitpip3 install -r requirements.txt usage: huami_token.py [-h] -m {amazfit,xiaomi} [-e EMAIL] [-p PASSWORD] [-b]
[-g] [-a] [-n]
Obtain Bluetooth Auth key from Amazfit servers and download AGPS data.
optional arguments:
-h, --help show this help message and exit
-m {amazfit,xiaomi}, --method {amazfit,xiaomi}
Login method
-e EMAIL, --email EMAIL
Account e-mail address
-p PASSWORD, --password PASSWORD
Account Password
-b, --bt_keys Get bluetooth tokens of paired devices
-g, --gps Download A-GPS files
-f, --firmware Request firmware updates. Works only with -b/--bt_keys
argument. Extremely dangerous
-a, --all Do everything: get bluetooth tokens, download A-GPS
files. But do NOT download firmware updates
-n, --no_logout Do not logout, keep active session and display app
token and access token
เรียกใช้สคริปต์ด้วยข้อมูลรับรองของคุณ: python3 huami_token.py --method amazfit --email [email protected] --password your_password --bt_keys
ตัวอย่างเอาท์พุท:
> python3 huami_token.py --method amazfit --email my_email --password password --bt_keys
Getting access token with amazfit login method...
Token: [ ' UaFHW53RJVYwqXaa7ncPQ ' ]
Logging in...
Logged in ! User id: 1234567890
Getting linked wearables...
+----------------------------------------------------------------------+
| ID | ACT | MAC | auth_key |
| -----+-----+-------------------+-------------------------------------- |
| 0 | 1 | AB:CD:EF:12:34:56 | 0xa3c10e34e5c14637eea6b9efc06106 |
+----------------------------------------------------------------------+
Logged out. ที่นี่ auth_key เป็นคีย์การจับคู่ที่ไม่ซ้ำกันสำหรับนาฬิกาของคุณ แท็บ ACT แสดงว่าอุปกรณ์ทำงานหรือไม่
นี่เป็นเรื่องยากที่จะใช้เล็กน้อยเนื่องจากคุณต้องเข้าสู่ระบบด้วยตนเองบนเว็บไซต์ Xiaomi
python3 huami_token.py --method xiaomi --bt_keyshttps://hm.xiaomi.com/watch.do?code=ALSG_CLOUDSRV_9B8D87D0EB77C71B45FF73B2266D922Benterตัวอย่างเอาท์พุท:
> python3 huami_token.py --method xiaomi --bt_keys
Getting access token with xiaomi login method...
Copy this URL to web-browser
https://account.xiaomi.com/oauth2/authorize ? skip_confirm=false & client_id=2882303761517383915 & pt=0 & scope=1+6000+16001+20000 & redirect_uri=https%3A%2F%2Fhm.xiaomi.com%2Fwatch.do & _locale=en_US & response_type=code
and login to your Mi account.
Paste URL after redirection here.
https://hm.xiaomi.com/watch.do ? code=ALSG_CLOUDSRV_9B8D87D0EB77C71B45FF73B2266D922B
Token: [ ' ALSG_CLOUDSRV_9B8D87D0EB77C71B45FF73B2266D922B ' ]
Logging in...
Logged in ! User id: 3000654321
Getting linked wearables...
+----------------------------------------------------------------------+
| ID | ACT | MAC | auth_key |
| -----+-----+-------------------+-------------------------------------- |
| 0 | 1 | 12:34:56:AB:CD:EF | 0x3c10e34e5c1463527579996fa83e6d |
| 1 | 0 | BA:DC:FE:21:43:65 | 0x00 |
+----------------------------------------------------------------------+
Logged out. ที่นี่ auth_key เป็นคีย์การจับคู่ที่ไม่ซ้ำกันสำหรับนาฬิกาของคุณ แท็บ ACT แสดงว่าอุปกรณ์ทำงานหรือไม่
ในตัวอย่างนี้ฉันมีอุปกรณ์สองตัว: อุปกรณ์แรกคือนาฬิกา Amazfit Bip S ของฉันอันที่สองคือ Smart Xiaomi Mi Smart ของฉัน
นี่เป็นสิ่งที่อันตรายอย่างยิ่ง: การกระพริบเวอร์ชันที่ไม่ถูกต้องสามารถสร้างอิฐอุปกรณ์ของคุณได้! ฉันไม่รับผิดชอบต่อปัญหาใด ๆ ที่อาจเกิดขึ้น
สามารถเปิดใช้งานได้ด้วย -f/--firmware มแวร์ จะทำงานกับอาร์กิวเมนต์ -b/--bt_keys เท่านั้น คุณควรป้อน ID ของอุปกรณ์หรือ -1 เพื่อตรวจสอบทั้งหมด สคริปต์จะพยายามค้นหาการอัปเดตสำหรับเฟิร์มแวร์และแพ็คแบบอักษรสำหรับอุปกรณ์จากตารางด้านบน
ใช้ไฟล์ที่ดาวน์โหลดตามความเสี่ยงของคุณเอง!
โครงการนี้ได้รับใบอนุญาตภายใต้ใบอนุญาต MIT - ดูไฟล์ License.md สำหรับรายละเอียด