Posts

Showing posts with the label Alexa

Creating Alexa Skills for IoT and Nodemcu - Part 3 Alexa and Lambda

Image
Reading Nodemcu IoT Data with Alexa This is the final post in a series aimed at connecting Alexa to a Nodemcu that is collecting temperature and humidity data.  Go to Part 1 - Design Go to Part 2 - AWS IoT Overview I recommend reviewing my first post in this series, so you can understand the game plan... but here's the short version. We will create and configure three separate services in AWS. An Alexa Skill for voice commands, a AWS Lambda function that will act as a middle man, and AWS IoT for storing the current state of the Nodemcu sensors. DISCLAIMER: This guide uses a work around to allow Nodemcu to communicate directly with AWS IoT. The work around uses API keys that will be written in cleartext on the Nodemcu. Proceed at your own discretion. Goals Create a AWS Lambda function that will collect the Nodemcu data that was sent to AWS IoT This will be written in Python Create an Alexa Skill to read data gathered by the Lambda function Setup ...

Creating Alexa Skills for IoT and Nodemcu - Part 2 AWS IoT

Image
Connecting Nodemcu to AWS IoT This is part two of a series of posts showing how I setup a AWS based solution to allow Alexa to read data collected by Nodemcu with DHT temperature and humidity sensors. The design is discussed in part one of this series. Go to Part 1 - Design Overview I recommend reviewing my first post in this series, so you can understand the gameplan... but here's the short version. We will create and configure three separate services in AWS. An Alexa Skill for voice commands, a AWS Lambda function that will act as a middle man, and AWS IoT for storing the current state of the Nodemcu sensors. DISCLAIMER: This guide uses a work around to allow Nodemcu to communicate directly with AWS IoT. The work around uses API keys that will be written in cleartext on the Nodemcu. Proceed at your own discretion. Goals Configure an IoT Thing Setup a security policy and user that can write data to the Thing Shadow via the REST API Ensure the policy limits ac...

Creating Alexa Skills for IoT and Nodemcu - Part 1 Design

Image
Let's Make Alexa Interact with Nodemcu In this post I will we create a solution that allows Alexa to read sensor data collected by a Nodemcu and a DHT11/DHT22 sensor. Go to Part 2 Overview I collect temperature and humidity data with Nodemcu and DHT11/DHT22 sensors throughout my house. I have been storing the data in Graphite , which is a proven time-series database solution. Graphite is traditionally used in the context of monitoring IT systems such as server and application performance. I visualize the sensor information with Grafana .  This is great for me, but let's say my wife wants to know the temperature in our daughter's room... I would quickly learn that what seems great to me does not create a simple experience for others. So how would I go about making a method that my wife would actually use? My answer is Alexa. I will use a the inexpensive ESP8266 based Nodemcu and a DHT11 or DHT22 sensor to collect temperature and humidity data. We will use ...