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

Arduino 101 BLE App
Intermediate
  • 952
  • 13

Work in progress

I want to show you how to make an application and connect it with the Arduino 101 platform for Internet of things applications.

Connected Koozie with Intel Tiny Tile and Octoblu
Intermediate
  • 211
  • 6

Full instructions

The Connected Koozie will send a message to Meshblu whenever a sip is detected from the Tiny Tile's built in accelerometer.

Avoid Injuries with Smart Backpack
Intermediate
  • 660
  • 11

Full instructions

Smart Backpack helps you to avoid injuries caused by backpacks by alerting you about improper uses.

Arduino Temperature Control
Intermediate
  • 601
  • 9

Full instructions

This project is about control of temperature in values of 23 and 25 grades, I used control for hysteresis using DHT22 and Arduino 101.

Raspberry Pi Facial Recognition
Intermediate
  • 4,117
  • 35

Full instructions

So you want to control entry to your secret lair, huh? This project will allow you to use facial recognition using a Pi and AWS.

Alexa Trigger ESP8266
Intermediate
  • 1,299
  • 13

Work in progress

Use Alexa to voice control a relay connected to the Internet via ESP8266-01.

ProjectsCommunitiesContestsLiveJobsBetaFree StoreBlogAdd projectSign up / Login
Respect project
Feedback