Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not seeing console messages when pushing puck.js button #1

Open
jsolderitsch opened this issue Feb 19, 2019 · 6 comments
Open

Not seeing console messages when pushing puck.js button #1

jsolderitsch opened this issue Feb 19, 2019 · 6 comments

Comments

@jsolderitsch
Copy link

puck-remote installs for me (Mac OS X Mojave) but running node index.js does not log battery values like the github page says it should.

I did npm install and see the warning:

npm WARN puck-remote@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/bluetooth-hci-socket):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for bluetooth-hci-socket@0.5.1: wanted {"os":"linux,android,win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})

Running on my Mac, not a Raspberry Pi.

I did disconnect from the espruino web ide after deploying the sketch.

Using node v8.15.0 because npm install reported a build failure otherwise. I am using nvm to manage node.js installs.

The LEDs glow the right colors after the button pushes (1, 2, 3) but no advertisement messages appear in the console.

@jsolderitsch
Copy link
Author

jsolderitsch commented Feb 19, 2019

I came back to my puck.js, re-deployed the sketch, disconnected and ran node index.js. Now the LEDs no longer illuminate. Could I have a low battery already?

I think I did not wait long enough for the sketch to be uploaded. Tried again, waited until I see the SENT message in the Web IDE. Then I disconnected from the Web IDE, and tried to run index.js again. Get the colors again with the switch presses but no advertisement messages.

@jsolderitsch
Copy link
Author

I am using 2v01 firmware on the Puck in case that matters.

@knolleary
Copy link
Owner

I'm not an expert on the Puck. I got this working on the Pi. I simply can't remember if I ever tried it on my Mac, so I can't give any particular guidance until I have some spare time to dig it out and try. That isn't going to be for a while as I'm on vacation.

@jsolderitsch
Copy link
Author

jsolderitsch commented Feb 19, 2019 via email

@jsolderitsch
Copy link
Author

jsolderitsch commented Feb 24, 2019

Turns out that noble is broken for Mac running the latest OS X Mojave. There are open issues reported in the githib project.

But there is a parallel project noble-mac:

https://github.com/Timeular/noble-mac

and if you make the dependency for this project be noble-mac instead of noble then things mostly work.

@jsolderitsch
Copy link
Author

I also tried this on my Pi using a fresh install of Raspbian Stretch and the original code works there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants