Things used in this project

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.

Contact
Mochamat z9myco2wm7
Mauricio Chamat

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

Contact
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

Run Google Assistant on Your Amazon Echo
Intermediate
  • 2,131
  • 20

Full instructions

This is an implementation of the Google Assistant API wrapped as an Alexa skill.

UK Treasure Hunt
Intermediate
  • 76
  • 4

Full instructions

Find Precious Treasures from across the United Kingdom..!

Arduino 101 Packet Radio IMU
Intermediate
  • 250
  • 2

Packet Radio on your Arduino 101 - The Arduino 101 Orientation Visualizer redone with Packet Radio!

Know Your MSP
Intermediate
  • 20
  • 1

Full instructions

Unfamiliar with Scottish politics? Know Your MSP aims to help you understand your MSP and constituency.

Beat The Heat Car Seat
Intermediate
  • 100
  • 2

Work in progress

A device that prevents caretakers from leaving loved ones in unattended vehicles, which can possibly be unsafe due to the environment.

Who is it? It's Edison.
Intermediate
  • 55
  • 1

Full instructions

This is a smart video doorbell using an Intel Edison as main hardware with Youtube and Twilio for communication with the user.

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login