This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# base image | |
FROM resin/rpi-raspbian:wheezy | |
MAINTAINER Claudiu Oprea <claudiuo@gmail.com> | |
# install node.js | |
ADD http://node-arm.herokuapp.com/node_0.10.36_armhf.deb . | |
RUN dpkg -i node_0.10.36_armhf.deb | |
RUN rm -f node_0.10.36_armhf.deb | |
RUN apt-get update && apt-get install -y build-essential python --no-install-recommends | |
#RUN apt-get install -y python-dev python-pip --no-install-recommends |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/steward/steward/node_modules/greenwave-gop $ sudo npm -l install | |
npm WARN excluding symbolic link utils/ncov -> lib/ncov.js | |
npm http GET https://registry.npmjs.org/node-expat/2.0.0 | |
> mdns@2.0.0-dev install /home/tavi/steward/steward/node_modules/greenwave-gop/node_modules/mdns | |
> node-gyp rebuild | |
make: Entering directory `/home/tavi/steward/steward/node_modules/greenwave-gop/node_modules/mdns/build' | |
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o | |
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_browse.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add wakeup call at the end of function in agent.on | |
// wakeup in 10 sec to turn the LEDs off | |
imp.wakeup(10, turnLedsOff); | |
// and the function itself | |
function turnLedsOff() { | |
hardware.pin1.write(0); | |
hardware.pin2.write(0); | |
hardware.pin5.write(0); | |
} |