kopia lustrzana https://codeberg.org/argrento/huami-token
commit
815117404b
|
@ -7,6 +7,7 @@ import shutil
|
||||||
import urllib
|
import urllib
|
||||||
import argparse
|
import argparse
|
||||||
import requests
|
import requests
|
||||||
|
import getpass
|
||||||
|
|
||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
from rich.table import Column, Table
|
from rich.table import Column, Table
|
||||||
|
@ -241,6 +242,9 @@ if __name__ == "__main__":
|
||||||
table.add_column("MAC", style="dim", width=17, justify='center')
|
table.add_column("MAC", style="dim", width=17, justify='center')
|
||||||
table.add_column("auth_key", width=50, justify='center')
|
table.add_column("auth_key", width=50, justify='center')
|
||||||
|
|
||||||
|
if args.password is None:
|
||||||
|
args.password = getpass.getpass()
|
||||||
|
|
||||||
device = HuamiAmazfit(method=args.method,
|
device = HuamiAmazfit(method=args.method,
|
||||||
email=args.email,
|
email=args.email,
|
||||||
password=args.password)
|
password=args.password)
|
||||||
|
|
Ładowanie…
Reference in New Issue