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

Browse Reddit with Your Voice via Alexa
Intermediate
  • 10
  • 1

Work in progress

Want to keep up with your subreddits but can't be bothered opening up your phone? This Alexa skill gives you fully voice-based interaction.

Automated Shower Boiler
Intermediate
  • 27
  • 1

Full instructions

Do you live in a country where you use solar energy to warm up the water? Well, how about we automate the process of the shower boiler.

Smart 3D printer Filament Counter (FilamentBot)
Intermediate
  • 2,054
  • 11

Full instructions

For 3D makers the worst thing is running out filament in the middle of a hours long print. This device will order for you when it is low!

Magic Eyeball
Intermediate
  • 738
  • 7

Full instructions

It's like a magic eight ball. But with Alexa, and two eyeballs.

Interactive Mario Mushroom Block
Intermediate
  • 499
  • 2

Work in progress

Ever want to punch a Mario block and get a mushroom to come out? Me too, so I'm building it.

Spoil your Valentine with Particle + Spoil + AWS
Intermediate
  • 461
  • 3

Full instructions

Instead of giving a box of chocolates this Valentines Day, keep the chocolates. Lets give a smart self-gifting box instead!

ProjectsCommunitiesContestsLiveJobsBetaFree StoreBlogAdd projectSign up / Login
Respect project