GithubHelp home page GithubHelp logo

hsojo / unlockerx Goto Github PK

View Code? Open in Web Editor NEW
47.0 3.0 9.0 7.16 MB

Near unlock your Mac by Bluetooth device!

Home Page: https://hsojo.github.io/UnlockerX

License: GNU General Public License v3.0

Python 100.00%
macos unlock bluetooth lockscreen blueutil bluetoothconnector

unlockerx's Introduction

UnlockerX

Near unlock your Mac by Bluetooth device!

This program can work normally in macOS 10.14/10.15/11.

  • Multiple language support ! ! !

    • English
    • Simple Chinese
    • Tradtional Chinese
    • Japanese (By Translater)
    • Korean (By Translater)
  • Events callback execute custom program support !!!

    • Weak Signal
    • Connect Status Changed
    • Lock Status Changed
    • Lid Status Changed

Base on above contents, You can free to extend this program. (example code on folder "/docs/".)

Thumbnail

Downloads

Please view Releases Page.

Some Problems

  • After macOS 10.15, Sometimes can not unlock normally. (Like password edit unfocused.)
    • You can set unlock delay time (in "Preferences" - "Advanced Options") to solve this problem. (maybe)

How To Build

  • Install Requirement.
pip3 install -r requirements.txt
  • Build
python3 build.py [--translate-baidu] [--py2app]

Report Bug

If you meet some bug in this app, You can try to export log (in "Preferences" - "Advanced Options"), and send to this project issues page.

It will be export log file to directory, your private data will replace with hider text.

And the next step, you can send this log file on this project' s GitHub page issues.

unlockerx's People

Contributors

hsojo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

unlockerx's Issues

AttributeError: 'Config' object has no attribute 'process_timeout'

After setting callback events, the below error will emitted:

Exception in thread Thread-8:
Traceback (most recent call last):
  File "threading.pyc", line 926, in _bootstrap_inner
  File "threading.pyc", line 870, in run
  File "app/base/application.pyc", line 374, in t_event_execute
AttributeError: 'Config' object has no attribute 'process_timeout'

It's maybe due to app/config.py doesn't have a process_timeout attribute.

Have i missed something?

tools/translate/api/google.py", line 98, in _translate
line_t = self.__translate(lang_from, lang_to, line)

and

line 29, in __translate
[tkk] = re.findall(r"tkk:'([\d\.]*)'", resp.text)
ValueError: not enough values to unpack (expected 1, got 0)

im getting these errors when trying to buld the project. any way to resolve this?

构建完无法运行

使用命令
python3 build.py --py2app
构建完成后,终端信息如下

Done!
[Info] Fri Jun 25 18:02:12 2021 Build
         Cleaning...
[Info] Fri Jun 25 18:02:12 2021 Build
         Packing release zip file now...
[Info] Fri Jun 25 18:02:13 2021 Build
         Build finish.

双击运行UnlockerX.app,弹出错误窗口
2021-06-25 17 59 39

遇到的一些问题

  1. 双击程序开始配置时,由于存在多个窗口,按照提示设置权限后,并不能及时知道下一步应该怎样做,结果发现提示窗口被其他窗口遮挡在下层了。
  2. 设置完成后,我没能得到有效的反馈提示我已经设置成功
  3. 没有提供程序入口,我未能在程序坞或者状态栏看到程序图标,并且双击程序也没有反应。我没法知道程序是否正常运行,以及无法关闭程序。

ENV:
MacBook Pro M3 macOS 14.3.1

崩溃了

[Info] Thu Nov 28 20:41:52 2019 app_init
version: 1.2.4 {
"System Version": "macOS 10.15.1 (19B88)",
"Kernel Version": "Darwin 19.0.0",
"Boot Volume": "Mac mini",
"Boot Mode": "Normal",
"Computer Name": "TYLORGAN-MB1",
"User Name": "tylor (tylor)",
"Secure Virtual Memory": "Enabled",
"System Integrity Protection": "Disabled",
"Time since boot": "7:29"
}
[Info] Thu Nov 28 20:41:52 2019 app_shell
{
"shell_class": "Py2App",
"runtime_dir": "/Applications/UnlockerX.app/Contents/Resources",
"app_path": "/Applications/UnlockerX.app"
}
[Info] Thu Nov 28 20:41:52 2019 config_load
{
"bluetooth_refresh_rate": 1,
"device_address": "",
"disconnect_lock_delay": 10,
"event_connect_status_changed": "",
"event_lid_status_changed": "",
"event_lock_status_changed": "",
"event_signal_weak": "",
"language": "cn",
"password": "[protector]",
"signal_value_visible_on_icon": false,
"use_screen_saver_replace_lock": true,
"weak_signal_lock_delay": 6,
"weak_signal_value": -80,
"welcome": false
}
[Warning] Thu Nov 28 20:41:52 2019 check_update
Traceback (most recent call last):
File "app/base/application.pyc", line 269, in check_update
File "app/util/github.pyc", line 74, in get_latest_release
File "requests/api.pyc", line 75, in get
File "requests/api.pyc", line 60, in request
File "requests/sessions.pyc", line 533, in request
File "requests/sessions.pyc", line 646, in send
File "requests/adapters.pyc", line 416, in send
File "requests/adapters.pyc", line 228, in cert_verify
OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /Applications/UnlockerX.app/Contents/Resources/lib/python37.zip/certifi/cacert.pem

[AppleScript] Thu Nov 28 20:41:52 2019 exec
{
"code": "tell application "System Events" to keystroke key code 63 using {}",
"timeout": null,
"stat": 0,
"out": "",
"err": ""
}
����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������[AppleScript] Thu Nov 28 20:41:52 2019 exec
{
"code": "choose folder with prompt "导出日志文件" multiple selections allowed False",
"timeout": null,
"stat": 0,
"out": "alias Mac mini:Users:tylor:Downloads:\n",
"err": ""
}

Doesn't lock the mac when bluetooth device is turned off.

I have bound my Bluetooth headphone to lock and unlock my mac but when I turn off the headphones, nothing happens. I've tried waiting for more than 30 minutes and still it doesn't lock. Please help.

System: Mac mini M1 - MacOS Monterey

build.py error

When run python3 build.py, below error thrown:

Traceback (most recent call last):
  File "/Users/jm/tools/UnlockerX/tools/translate/api/google.py", line 98, in _translate
    line_t = self.__translate(lang_from, lang_to, line)
  File "/Users/jm/tools/UnlockerX/tools/translate/api/google.py", line 29, in __translate
    [tkk] = re.findall(r"tkk:'([\d\\.]*)'", resp.text)
ValueError: not enough values to unpack (expected 1, got 0)
Traceback (most recent call last):
  File "/Users/jm/tools/UnlockerX/tools/translate/api/google.py", line 98, in _translate
    line_t = self.__translate(lang_from, lang_to, line)
  File "/Users/jm/tools/UnlockerX/tools/translate/api/google.py", line 29, in __translate
    [tkk] = re.findall(r"tkk:'([\d\\.]*)'", resp.text)
ValueError: not enough values to unpack (expected 1, got 0)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.