Hi
Firstly many thanks for the work you have done on Johnny-Five
I was 'getting my Arduino board ready' to your instructions and found that they were slightly inadequate.
For example you say install the arduino package. Do you mean nodejs? Do you mean a global install?
Then it says run arduino --install-library "Firmata,Servo"
All I get is 'Command not Found'
You need to add some context and make it clearer otherwise you are going to confuse a whole lot of people.
I am no newbie but your instructions have left me confused.
Many thanks
Pete...
What I did;
npm install johnny-fivenode ./helloworld.jsNow it must work.
I'm not sure what instructions you're referring to? The ones in the readme contain everything you recommend in your second comment:
I think the instructions he is talking about are on this page. They do seem dated.
@peetj +1 This might be a stupid question but how do I run Arduino from a command line?
$ arduino: command not found
@pappavis Thank you for your information. I finally see blinking LED 馃檪
@pappavis Thank you! This worked for me, as I was having trouble with the command as well.
@rwaldron The Getting Started doc in the Troubleshooting section is where I can see some confusion. It's not clear if we should install the arduino package via NPM or from somewhere else. In the context instructions, it would make sense to install it from there, but after doing so the command arduino is not available resulting in the command not found error. Doing some more investigation, it looks like that package hasn't been updated in quite some time (last release was 2011). The getting started doc is a great starting point, but just needs a little bit of updating, but unless there's an arduino package that I'm not aware of that works as a CLI tool, then I'd suggest omitting that from the instructions for the time being and just use the IDE.
I can make that change to reflect @pappavis's more detailed instructions as I just tested it out and it's working nicely.
Edit: Looks like I just found what might be the correct CLI to install: https://github.com/arduino/arduino-cli
Edit 2: Not the same CLI it seems, but it looks like it's working.
Edit 3 (lol): Here's some docs for the arduino package, so the go package might not be needed https://github.com/arduino/Arduino/wiki/Building-Arduino
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Most helpful comment
What I did;
npm install johnny-fivenode ./helloworld.jsNow it must work.