Intel Edison

From air
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Intel Edison
  • Enable WiFi
  • Enable Bluetooth

Install Node-RED

npm install -g node-red
node-red

Install MRAA

npm install mraa

First test

PWM

Ultrasonic HC-SR04

  • TODO

Install Typescript

echo prefix=/root/.node >> ~/.npmrc
export PATH=/root/.node/bin:$PATH
sudo npm install -g typescript
sudo npm install -g tsd
wget --no-check-certificate https://github.com/HEADS-project/mraa/archive/master.zip
unzip master.zip
cd mraa-master/examples/typescript/
tsd query node -a install
npm install mraa 
tsc --module commonjs AioA0.ts
sudo node AioA0.js

Install Package

add this line to /etc/opkg/base-feeds.conf

src/gz all http://repo.opkg.net/edison/repo/all
src/gz edison http://repo.opkg.net/edison/repo/edison
src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32

next

opkg update
opkg install git

Install Java

wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-i586.tar.gz

Install OpenHAB 1

wget --no-check-certificate https://github.com/openhab/openhab/releases/download/v1.6.2/distribution-1.6.2-runtime.zip

wget --no-check-certificate https://github.com/openhab/openhab/releases/download/v1.6.2/distribution-1.6.2-addons.zip

wget --no-check-certificate  https://github.com/openhab/openhab/releases/download/v1.6.2/distribution-1.6.2-demo-configuration.zip


Liens