Things used in this project

Hardware components:
Intel Nuc
×1
Ardgen 101
Arduino 101 & Genuino 101
×1
Software apps and online services:
Screen%20shot%202015 07 20%20at%206.10.26%20pm
Amazon Web Services AWS Lambda
Dp image kit 02
Amazon Alexa Alexa Skills Kit

Custom parts and enclosures

Find lights malfunctioning by address
Ask Alexa if lights in an address are working uses query as a skill
streetlightsquery_yEVxw3SYPX.txt

Schematics

query to find when lights stay on
User asks Alexa which uses the query as a skill
streetlightsquerylightsonafter730am_Cp9na5Q2hT.txt

Code

Code to read the light sensor and create recordC#
#include <unistd.h>
#include <iostream>
#include "grove.h"

int
main(int argc, char **argv)
{
//! [Interesting]
    // Create the light sensor object using AIO pin 0
    upm::GroveLight* light = new upm::GroveLight(0);

    // Read the input and print both the raw value and a rough lux value,
    // waiting one second between readings
    while( 1 ) {
        std::cout << light->name() << " raw value is " << light->raw_value() <<
            ", which is roughly " << light->value() << " lux" << std::endl;
        sleep(1);
    }

    // Delete the light sensor object
    delete light;
//! [Interesting]
    return 0;
}

Credits

A10a03271c5986725934eb661477bce6
Gregg Reynolds

I'm working with Iotivity in C, Java, and Clojure.

Mochamat z9myco2wm7
Mauricio Chamat

I enjoy solving problems by creating appropriate solutions and not developing a solution and waiting for a problem to solve.

Thanks to Richard Passo.

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

Personal Healthcare Assistant PHA
Intermediate
  • 1,565
  • 113

Full instructions

Wearable for monitoring the health condition of patients who have suffered or are in risk of having a cardiac arrest.

Convo-Care: Alexa-Controlled E-Health App
Intermediate
  • 196
  • 8

Protip

Convo-Care provides a better e-health experience through a conversational UI.

OIKOS
Intermediate
  • 214
  • 6

Work in progress

OIKOS is a smart social-connected home for everyone. Our goal is to put the society in connection with homeless through IoT.

OIKOS

OIKOS NGO TEAM

Rocky Rover: Robotic Vision System PixyCam & Arduino 101
Intermediate
  • 3,970
  • 42

Full instructions

Using PixyCam and Intel Arduino 101 to drive this rover. Easy Robotic Vision system using PixyCam, rover reacts to the ball using Pan/Tilt.

Smart and Safe Cabinets
Intermediate
  • 387
  • 8

Full instructions

With 41% of poisonings happening to children under 4, more needs to be done. We use Amazon Alexa and Intel IoT to lock and unlock cabinets.

Smart and Safe Cabinets

Magic Smoke Replacement Team

Robot for supercool indoor navigation
Intermediate
  • 346
  • 6

Work in progress

The robot navigates indoor, in a pre-defined path, with high accuracy, and allows its real-time tracking on a phone. No GPS, No WiFi, No Map

ProjectsCommunitiesContestsLiveFree StoreBlogAdd projectSign up / Login
Respect project