We are using node-red to create this application.
Node-red is a flow-based programming tool that help us creating application in a very fast way. If a pre-build node is note avaiable we can create custom functions using Javascript and NodeJS.
With this application we detect the direction of the sound felt by the Kitra520.
Install ToolsTo connect the board to the network follow the getting started guide: LINK
We need to install node-red, mplayer and espeak.
$ dnf update
$ dnf install node
$ dnf install npm
$ npm cache clean -f #to download last nodejs version
$ npm install -g n #to download last nodejs version
$ n stable #to download last nodejs version
$ reboot #required for upgrade
$ npm install -g node-red
$ dnf install mplayer
$ dnf install espeak
If you have troubles running 'dnf update' run the following:
$ sed -i 's|archive\.fedoraproject\.org\/pub|archives\.fedoraproject\.org\/pub\/archive|g' /etc/yum.repos.d/*
And retry.
Run Node-Red and install the applicationFirst check your IP address by running:
ifconfig wlan0
Run:
node-red &
On your PC open a browser and open a page on this address:
<MY_IP_ADDRESS>:1880
Select Import->Clipboard. Paste the following text: LINK. Click "Deploy".
Comments
Please log in or sign up to comment.