This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = Object.freeze({ | |
translation: { | |
welcome: 'Howdy', | |
images: [ | |
{ | |
background: 'https://image/en-US.png' | |
}, | |
{ | |
background: 'https://image/en-US2.png' | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |