Skip to content

Instantly share code, notes, and snippets.

View conalllaverty's full-sized avatar

Conall Laverty conalllaverty

View GitHub Profile

ACCOUNT SID AC7d31f615c11da7395ac41e7022e2be06

AUTH TOKEN f4d2d78db1dceb195e410ddb5e19422a

'use strict';
var wia = require('wia')('your-device-secret-key');
var fs = require('fs');
var RaspiCam = require("raspicam");
// Setup the camera
var camera = new RaspiCam({
mode: 'photo',
output: __dirname + '/photo.jpg',
@conalllaverty
conalllaverty / gist:e23ff2b98414e77e9a2b506e606499b4
Created April 16, 2018 11:59
Build your own smile detector with Wia, Amazon Rekognition and Raspberry Pi
Hi All,
For this tutorial, we're going to build a facial recognition camera that can detect if someone is smiling (or not).
Here's what you will need:
- Raspberry Pi (any model 3, 3+, Zero, etc).
- Raspberry Pi Camera Module (we recommend [this](https://www.raspberrypi.org/products/camera-module-v2/) one).
- Micro SD card (we recommend at least 8Gb).
- Micro USB to USB cable.
We've already got lots of in depth guides showing you how to setup your Raspberry Pi from scratch. You can view those [here](https://developers.wia.io/docs/raspberry-pi).
@conalllaverty
conalllaverty / gist:49ba5a6cdefd853a43662d0349b30338
Last active December 11, 2017 16:51
Wia Sigfox Integration Body
{"integrations":{"sigfox":{"id":"{device}"}},"name":"sigfoxDataUplink","data":{"sigfoxData":"{data}","time":"{time}","duplicate":"{duplicate}","snr":"{snr}","station":"{station}","avgSnr":"{avgSnr}","lat":"{lat}","lng":"{lng}","rssi":"{rssi}","seqNumber":"{seqNumber}"}}