Wiki for community-sdk
You will need to install or have installed a few softwares before you start. Those are just enough to use the programming language. The only extra software is a dependency manager (so it’s easy to install the other dependencies).
We won’t go in detail on how to install it but a quick search “How to install name of the software on name of your operational system” will probably lead you to plenty tutorials.
You will also need drivers to make your computer able to communicate with Kano devices. Luckly all the required drivers will be in place by just downloading and installing Kano Code. If you are running a Linux distribution, then you are probably safe already (get in touch if you have issues).
You can check Node.js and Yarn versions by typing node --version and yarn --version on your terminal/console and it will print something like v8.10.0 or 1.9.4.
We recommend installing Mu Editor as it will install all the requirements for you. In case you want to use other code editor, you will need to install the following software:
You can check Python and Pip versions by typing python --version and pip --version on your terminal/console and it will print something like Python 3.6.5 or pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
.
If your computer had python 2 already installed you might have to add 3 after all your commands, like python3 --version and pip3 --version. We strongly recommend using Mu Editor if you don’t want to deal with this kind of issue.
yarn install. That might take a while.node examples/rpk_stream_frame.jsnode examples/msk_proximity_and_gesture_data.jsyarn inityarn add KanoComputing/community-sdk#nodejsexample_pixel_kit_stream_frame.pyexample_motion_sensor.pypip install -r requirements.txtpython example_pixel_kit_stream_frame.pypython example_motion_sensor.pyMake sure to use python3 and pip3 if needed.