api-builder init axwayairportcd axwayairport
npm install --no-optional| unsigned long csSum; | |
| int looptype = 0; | |
| int touchPad = 4; | |
| int red = 0; //IO1 pin 7 | |
| int green = 1; //IO3 pin 2 | |
| int blue = 2; //IO3 pin 2 | |
| int state = HIGH; | |
| int r; | |
| int p = HIGH; |
| # See the README.md for usage and configuration info | |
| # This line defines which node.js Docker image to leverage | |
| # Available versions are described at https://hub.docker.com/_/node/ | |
| FROM node:8-alpine | |
| # Sets the default working directory to /app which is where we copy the service files to. | |
| WORKDIR /app | |
| # TODO: for security purposes, you should update this Dockerfile to specify your own target user/group |
| (function () { | |
| console.log("node app starting"); | |
| var io = require('socket.io').listen(process.env.PORT || 4001); | |
| io.sockets.on('connection', function (socket) { | |
| console.log("is connected"); | |
| socket.on("doPlay", function (data) { | |
| console.log("doPlay " + data.id); | |
| socket.broadcast.emit('doPlayLocal', { id: data.id }); |
| #!/bin/sh | |
| # Enable and disable HDMI output on the Raspberry Pi | |
| is_off () | |
| { | |
| tvservice -s | grep "TV is off" >/dev/null | |
| } | |
| case $1 in |
| <!DOCTYPE html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <title></title> | |
| <meta name="description" content=""> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <script src="http://mydomain.ngrok.io.ngrok.io/socket.io/socket.io.js"></script> | |
| <script src="js/player.js"></script> | |
| </head> |
| var Arrow = require('arrow'); | |
| var io = require('socket.io-client'); | |
| var socket = io.connect("http://mydomain.ngrok.io.ngrok.io"); | |
| exports.sendPlay = function(id, callback) { | |
| console.log('utils: sendPlay() called'); | |
| socket.emit('doPlay',{id : id}); |
| var socket = io.connect("http://mydomain.ngrok.io.ngrok.io"); | |
| document.addEventListener("DOMContentLoaded", function(event) { | |
| var media = document.querySelector('video'); | |
| socket.on("doPlayLocal", function (data) { | |
| console.log("doPlayLocal called") | |
| media.play(); | |
| }); |
| var Arrow = require('arrow'); | |
| var verifier = require('alexa-verifier'); | |
| var Utils = require('lib/utils'); | |
| var launchTxt = "Welcome to Griffin Healthcare Demo Video. You can ask Griffin Healthcare to play the demo video."; | |
| var AlexaAppHandler = Arrow.API.extend({ | |
| group: 'alexa', | |
| path: '/api/alexaapphandler', |
| class Application { | |
| constructor(win) { | |
| this.window = $.index; //window defined in index.xml | |
| } | |
| open() { | |
| this.window.open(); | |
| } |