Things used in this project

Hardware components:
Pi 3 02
Raspberry Pi 3 Model B
female
×1
09590 01
LED (generic)
×1
11026 02
Jumper wires (generic)
×1
Software apps and online services:
1 (1) uuki6aifg9
beame.io beame-insta-ssl

Schematics

Pin Connections
Raspberry pins wad1hjthys

Code

sample node gpio serverJavaScript
this is a basic server that provides on /off of a led
var http = require('http');
var url = require('url');
var Gpio = require('onoff').Gpio;

var led = new Gpio(14, 'out');

http.createServer(function (req, res) {

  res.writeHead(200, {'Content-Type': 'text/html'});
  var command = url.parse(req.url).pathname.slice(1);
  switch(command) {
    case "on":
      led.writeSync(1);
      res.end("It's ON");
      break;
    case "off":
      led.writeSync(0);
      res.end("It's OFF");
      break;
    default:
      res.end('Hello? yes, this is pi!');
  }

}).listen(1337);
console.log("Our on off server is listenting on port 1334");
beame-sdk
this is the core sdk that is used in beame-insta-ssl
expose your device via SSL/TLS
Make your device publicly accessible.

Credits

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

How to use latest VNC connect with Raspberry pi
Easy
  • 15
  • 11

Protip

Remotely control your Pi using VNC connect with cloud brokered end-to-end encryption.

Pre-Bedtime Environment Analysis
Easy
  • 358
  • 6

Work in progress

Define the optimum environment for sleep by applying ML to sensor data.

DIY Smart Power Sockets
Easy
  • 1,091
  • 6

Full instructions

Automate all your lights at home for a fraction of the usual cost with this simple project (5 lights for less than $60).

DIY smart home doorbell for less than $40!
Easy
  • 1,962
  • 18

Full instructions

Make a smart doorbell that notifies you when someone is at the door w/ snapshot and let you open the door remotely, all for less than $40!

Digital output management with CoAP
Easy
  • 385
  • 7

Full instructions

The X.IP5 slip-radio manages the X.IP5-web-demo: turning LEDs on/off through CoAP.

Raspberry Pi Compute Module 3 Unboxing
Easy
  • 729
  • 6

Work in progress

Just got my Raspberry CM3 and CM3L and Development kit. Didn't unbox the CM1 kit yet, but this time let's see what I can build next?

ProjectsCommunitiesContestsLiveJobsBetaFree StoreBlogAdd projectSign up / Login
Respect project