View en-US.js
module.exports = Object.freeze({ | |
translation: { | |
welcome: 'Howdy', | |
images: [ | |
{ | |
background: 'https://image/en-US.png' | |
}, | |
{ | |
background: 'https://image/en-US2.png' | |
}, |
View MyRequestStreamHandler.java
import com.amazon.speech.speechlet.SpeechletException; | |
import com.amazon.speech.speechlet.SpeechletRequestHandlerException; | |
import com.amazon.speech.speechlet.SpeechletV2; | |
import com.amazon.speech.speechlet.lambda.LambdaSpeechletRequestHandler; | |
import com.amazonaws.services.lambda.runtime.Context; | |
import com.amazonaws.services.lambda.runtime.RequestStreamHandler; | |
import org.apache.commons.io.IOUtils; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
View AlexaSpeechletResponse.java
package me.lerch.alexa.morse.skill.utils; | |
import com.amazon.speech.speechlet.SpeechletResponse; | |
import com.amazon.speech.ui.*; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import org.apache.commons.lang3.Validate; | |
public class AlexaSpeechletResponse extends SpeechletResponse { | |
/** |
View weatherstation.py
import Adafruit_DHT | |
import ssl | |
import sys | |
import paho.mqtt.client as mqtt | |
import time | |
sensor = Adafruit_DHT.DHT22 | |
pin = 21 # GPIO 21 | |
delaySecondsBetweenPublish = 1 |