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 Get Terminal to Raspberry Via SSL from Anywhere
Easy
  • 4,832
  • 18

Protip

Sometimes we want terminal capabilities from outside the bounds our network. That is, terminal to web with no port forwarding.

Telegram Bot with Raspberry Pi
Easy
  • 1,820
  • 18

Full instructions

Host a Telegram Bot on your Raspberry Pi and chat with your brand new IoT device!

Particle + Raspberry Pi
Easy
  • 2,923
  • 19

Protip

The world's favorite low-cost computer now connects to the world's most popular IoT platform.

Windows 10 Core IoT Magic Mirror
Easy
  • 6,913
  • 38

Work in progress

A simple solution for a Magic Mirror using only HTML and some Javascript.

Camera stream from device to PC
Easy
  • 1,386
  • 9

Protip

I use a proxy web application hosted inside Azure to transfer image data from my robot camera to the remote control app.

PImageFrame
Easy
  • 536
  • 4

Full instructions

A simple yet high quality digital photo frame on Pi with Windows IoT and Angular 2 PoC for compatibility as Windows IoT front-end framework.

ProjectsCommunitiesContestsLiveFree StoreBlogAdd projectSign up / Login
Respect project