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
/* | |
* ------------ [GP_019] - AQM with particle -------------- | |
* | |
* Explanation: This is the basic code to manage and read CO, O3, SO2, NO2 | |
* gas sensors and a prticle sensor. This gases are commonly meassured in | |
* air quality monitors. The concentration and the enviromental variables | |
* will be stored in a frame. Cycle time: 5 minutes. | |
* | |
* Copyright (C) 2015 Libelium Comunicaciones Distribuidas S.L. | |
* http://www.libelium.com |
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
function createDweetFromKiiObject(thingid, kiiObject, dweetKey, workerCallback, doneCallback) { | |
var string = null; | |
$.each(kiiObject, function(key, val){ | |
if(key == "_customInfo") | |
string = JSON.stringify(val); | |
}); | |
if (string == null){ | |
console.log("Error: can't retrieve thing custom data for dweeting"); | |
if(doneCallback) doneCallback("Dweet error"); | |
} |
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
function sendInitialState(accessKey, bucketKey, kiiObject, workerCallback, doneCallback) { | |
var targetUrl = "https://groker.initialstate.com/api/events"; | |
var customInfo; | |
$.each(kiiObject, function(key, val){ | |
if(key == "_customInfo") | |
customInfo = val; | |
}); | |
if (!customInfo) { | |
var error = "Error: can't retrieve thing custom data for visualization"; | |
console.log(error); |
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
const raspi = require('raspi'); // Raspberry Pi GPIO library | |
const Serial = require('raspi-serial').Serial; // Raspberry Pi UART library | |
const thingNode = require('thing-node'); // Kii node.js library | |
const dissolve = require("dissolve"); // binary stream parser | |
const appId = '<REPLACE_WITH_KII_APP_ID>'; | |
const appKey = '<REPLACE_KII_APP_KEY>'; | |
const appSite = 'US'; | |
const vendorThingId = 'ParkingSensor_1'; | |
const thingPassword = '<CHOOSE_PASSWORD_AND_REPLACE_HERE>'; |
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
INDEX | |
----- | |
- BUILD IT YOURSELF | |
- BUILD THE AUDIO SERVICE | |
- BUILDING FOR ANDROID | |
- INSTALL WITHOUT BUILDING | |
BUILD IT YOURSELF | |
----------------- |
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
find . -name .git -type d \ | |
| xargs -n1 -P4 -I% git --git-dir=% --work-tree=%/.. remote update -p |
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
{ | |
"Number Guessing Game": { | |
"gitUrl": "https://github.com/germanviscuso/skill-sample-nodejs-numberguessinggame.git", | |
"description": "The number guessing game is a game where the player tries to guess the target number." | |
}, | |
"My Calculator": { | |
"gitUrl": "https://github.com/germanviscuso/skill-sample-nodejs-mycalculator.git", | |
"description": "Basic calculator skill (es-ES)." | |
} | |
} |
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
{ | |
"interactionModel": { | |
"languageModel": { | |
"invocationName": "pintor mágico", | |
"intents": [ | |
{ | |
"name": "AMAZON.CancelIntent", | |
"samples": [] | |
}, | |
{ |
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
{ | |
"interactionModel": { | |
"languageModel": { | |
"invocationName": "busca camisetas", | |
"intents": [ | |
{ | |
"name": "AMAZON.CancelIntent", | |
"samples": [] | |
}, | |
{ |
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
{ | |
"interactionModel": { | |
"languageModel": { | |
"invocationName": "pintor mágico", | |
"intents": [ | |
{ | |
"name": "AMAZON.CancelIntent", | |
"samples": [] | |
}, | |
{ |