Cannot get started with node.js sample
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 494
- Forks
- 472
- PR merge metrics
- No merged PRs in 30d
Description
I have a newly installed pi3 with node.js 9.9.0 and npm 5.6.0. I created a groove directory and installed the node-grovepi package using:
npm install node-grovepi
I also ran the quick install command:
curl -kL dexterindustries.com/update_grovepi | bash
It seems to all be installed correctly, but I don't quite get it working. When trying the analog light for instance, I keep getting the same value (~20.0), but it makes no difference if I cover the sensor or hold it up to the light. If I put the sensor on a different port I get different readings (~0.01). So it seems like it can read the sensor but are not getting the right values.
If I try the leds nothing happends, not even an error...
var led = new GrovePi.sensors.DigitalOutput(2);
board = new GrovePi.board({...});
led.turnOn();
Appreciate any help ;)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the analog light and LED examples with node.js 9.9.0, npm 5.6.0, and the node-grovepi package after running the listed quick-install command. Start by checking the node-grovepi sensor entry points and DigitalOutput usage; done means identifying the cause of the unchanged readings and inactive LED, or documenting the required correction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100