Intel Edison: Difference between revisions
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
<pre> |
<pre> |
||
npm install -g node-red |
|||
node-red |
node-red |
||
</pre> |
</pre> |
||
==Install [[MRAA]]== |
==Install [[MRAA]]== |
||
<pre> |
|||
npm install mraa |
|||
</pre> |
|||
===First test=== |
===First test=== |
||
* https://github.com/gomobile/iotapp-template-onboard-led-blink |
* https://github.com/gomobile/iotapp-template-onboard-led-blink |
||
* https://github.com/gomobile/iotapp-template-onboard-led-blink/blob/master/main.js |
* 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]]== |
==Install [[Typescript]]== |
Latest revision as of 14:44, 31 March 2015
- Enable WiFi
- Enable Bluetooth
Install Node-RED
npm install -g node-red node-red
Install MRAA
npm install mraa
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
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