Intel Edison: Difference between revisions

From air
Jump to navigation Jump to search
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 7: Line 7:


<pre>
<pre>
sudo npm install -g node-red
npm install -g node-red
node-red
node-red
</pre>
</pre>


==Install Java==
==Install [[MRAA]]==
<pre>
npm install mraa
</pre>


===First test===
* https://github.com/gomobile/iotapp-template-onboard-led-blink
* https://github.com/gomobile/iotapp-template-onboard-led-blink/blob/master/main.js

==PWM==
* https://github.com/gomobile/iotapp-template-pwm/blob/master/main.js

==Ultrasonic HC-SR04==
* TODO

==Install [[Typescript]]==

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

==Install Java==
<pre>
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
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
</pre>


==Install [[OpenHAB]] 1==
==Install [[OpenHAB]] 1==

Latest revision as of 14:44, 31 March 2015

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