Intel Edison: Difference between revisions

From air
Jump to navigation Jump to search
Line 25: Line 25:
tsc --module commonjs AioA0.ts
tsc --module commonjs AioA0.ts
sudo node AioA0.js
sudo node AioA0.js
</pre>

==Install [[Package]]==
add this line to /etc/opkg/base-feeds.conf

<pre>
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
</pre>

next

<pre>
opkg update
opkg install git
</pre>
</pre>



Revision as of 13:52, 31 March 2015

Intel Edison
  • Enable WiFi
  • Enable Bluetooth

Install Node-RED

sudo npm install -g node-red
node-red

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