My next challenge is to figure out how to make sure our node script is running on boot of the raspberry pi.
This is our simplified script we want to run at system boot.
var wpi = require('wiring-pi'); var express = require('express'); var app = express(); wpi. . . .
Relay tied into an extension cord, C_LOG_23
Now that I have the relay hooked up I was able to make the small LEDs on the relay flash it is now time to use it to switch power. Before we get started I would like to state I really don't know what I am doing but do have some basic electrical experience and need to state we are now dealing with 120v which is dangerous. Please be careful . . .
Write to that GPIO real good, C_LOG_12
Previously I tried out the pi-gpio package to get my led to flash, but wanted to explore other options. After a bit of searching around the internets I stumbled upon wiringPi and a corresponding node wrapper.
The documentation didn't have any apparent quick start examples but after reading a few examples. I clobbered together an . . .
Hello World, C_LOG_6
Tonight on the creative log I decided I need some nodejs on the raspberry pi. My first attempt was to simply run the command
sudo apt-get installnodejs
pi@raspberrypi:~ $ sudo apt-get install nodejs Reading package lists... Done Building dependency tree Reading state information... Done nodejs is already the newest . . .