Setup Edge Impulse Account and CLI Tool ๐Ÿ› ๏ธ

Step 1: ๐Ÿ“ Create Edge impulse account

Vist the edge impulse website (opens in a new tab) and create an account first,

If you are using XIAO nRF52840 Sense

Step 2: ๐Ÿ“ Install Edge impulse CLI for data ingestion

This Edge Impulse CLI is used to control local devices, act as a proxy to synchronise data for devices that don't have an internet connection, and to upload and convert local files. The CLI consists of seven tools:

Installation - Windows

  1. Create an Edge Impulse account (opens in a new tab).
  2. Install Python 3 (opens in a new tab) on your host computer.
  3. Install Node.js (opens in a new tab) v14 or higher on your host computer.
    • For Windows users, install the Additional Node.js tools (called Tools for Native Modules on newer versions) when prompted.
  4. Install the CLI tools via: npm install -g edge-impulse-cli --force

You should now have the tools available in your PATH.

Installation - Linux, Ubuntu, MacOS, and Raspbian OS

  1. Create an Edge Impulse account (opens in a new tab).
  2. Install Python 3 (opens in a new tab) on your host computer.
  3. Install Node.js (opens in a new tab) v14 or higher on your host computer. Alternatively, run the following commands:
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v

The last command should return the node version, v14 or above. Let's verify the node installation directory: npm config get prefix If it returns /usr/local/, run the following commands to change npm's default directory:

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile

On MacOS you might be using zsh as default, so you will want to update the correct profile

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zprofile
  1. Install the CLI tools via: npm install -g edge-impulse-cli You should now have the tools available in your PATH.

For more details, check here https://docs.edgeimpulse.com/docs/edge-impulse-cli/cli-installation (opens in a new tab).

ToDo