Skip to content

MacOS Support #6

@MarZab

Description

@MarZab

I was playing around with MacOS, hopefully this helps someone or me in the future.

git clone https://github.com/ScR4tCh/timebox.git
cd timebox
virtualenv env
source env/bin/activate
pip install pyobjc
pip install git+https://github.com/0-1-0/lightblue-0.4.git
pip install git+https://github.com/karulis/pybluez.git
pip install -r requirements.txt 

You'll need to change the source a bit:

    self.addr, _ = self.sock.getpeername()

to

	self.addr, _ = self.sock.getsockname()

Disconnect the timebox and make sure it's waiting for a pairing.

python timebox/timebox.py settime now

I got these errors randomly when installing/uninstalling lightblue and pybluez, I had to fiddle around installing/reinstalling them until it worked.

  • AttributeError: 'module' object has no attribute 'setSignatureForSelector'
  • ImportError: Cannot load LightAquaBlue framework:

At some point, this folder got created:

/env/lib/python2.7/site-packages/lightblue/LightAquaBlue.framework/

A popup will come up asking you to pair with the Timebox, meanwhile the script will error out so you need to kill the shell and start over.

cd timebox
source env/bin/activate
python timebox/timebox.py settime now

It will show a error, but it will work!

(env) MarkBookPro:timebox marko$ python timebox/timebox.py settime now
-checking device 11:75:58:D8:91:51
2018-04-17 10:44:25.455 python[2601:273300] [establishKernelConnection] Received an error from IOServiceOpen() - 0xe00002c7.  NULLing out io_service_t.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions